Re: [PATCH] selftests/powerpc: Add a test of spectre_v2 mitigations

2019-11-06 Thread Michael Ellerman
On Mon, 2019-05-20 at 10:55:20 UTC, Michael Ellerman wrote: > This test uses the PMU to count branch prediction hits/misses for a > known loop, and compare the result to the reported spectre v2 > mitigation. > > This gives us a way of sanity checking that the reported mitigation is > actually in e

[PATCH] selftests/powerpc: Add a test of spectre_v2 mitigations

2019-05-20 Thread Michael Ellerman
This test uses the PMU to count branch prediction hits/misses for a known loop, and compare the result to the reported spectre v2 mitigation. This gives us a way of sanity checking that the reported mitigation is actually in effect. Sample output for some cases, eg: Power9: sysfs reports: