aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorPawan Gupta <[email protected]>2024-03-11 19:29:43 +0000
committerDave Hansen <[email protected]>2024-03-11 20:13:50 +0000
commit2a0180129d726a4b953232175857d442651b55a0 (patch)
tree5ea4ad5ba07c2966d49d4c00d4c2ca0798b37214 /tools/perf/util/annotate.c
parentx86/rfds: Mitigate Register File Data Sampling (RFDS) (diff)
downloadkernel-2a0180129d726a4b953232175857d442651b55a0.tar.gz
kernel-2a0180129d726a4b953232175857d442651b55a0.zip
KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests
Mitigation for RFDS requires RFDS_CLEAR capability which is enumerated by MSR_IA32_ARCH_CAPABILITIES bit 27. If the host has it set, export it to guests so that they can deploy the mitigation. RFDS_NO indicates that the system is not vulnerable to RFDS, export it to guests so that they don't deploy the mitigation unnecessarily. When the host is not affected by X86_BUG_RFDS, but has RFDS_NO=0, synthesize RFDS_NO to the guest. Signed-off-by: Pawan Gupta <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Acked-by: Josh Poimboeuf <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions