aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2021-06-08 16:48:09 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-22 15:58:28 +1000
commit48482f4dd3432e5e62873bf0f2e254cfb8ce2ac2 (patch)
tree5f01b9034a38f971a76eb16a30e87a9eab8ffd8d /ipc
parentpowerpc/powernv: Get STF barrier requirements from device-tree (diff)
downloadlinux-dev-48482f4dd3432e5e62873bf0f2e254cfb8ce2ac2.tar.xz
linux-dev-48482f4dd3432e5e62873bf0f2e254cfb8ce2ac2.zip
selftests/powerpc: Better reporting in spectre_v2
In commit f3054ffd71b5 ("selftests/powerpc: Return skip code for spectre_v2"), the spectre_v2 selftest is updated to be aware of cases where the vulnerability status reported in sysfs is incorrect, skipping the test instead. This happens because qemu can misrepresent the mitigation status of the host to the guest. If the count cache is disabled in the host, and this is correctly reported to the guest, then the guest won't apply mitigations. If the guest is then migrated to a new host where mitigations are necessary, it is now vulnerable because it has not applied mitigations. Update the selftest to report when we see excessive misses, indicative of the count cache being disabled. If software flushing is enabled, also warn that these flushes are just wasting performance. Signed-off-by: Russell Currey <ruscur@russell.cc> [mpe: Rebase and update change log appropriately] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210608064809.199116-1-ruscur@russell.cc
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions