diff options
author | Pawan Gupta <[email protected]> | 2024-03-11 12:29:43 -0700 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2024-03-11 13:13:50 -0700 |
commit | 2a0180129d726a4b953232175857d442651b55a0 (patch) | |
tree | 5ea4ad5ba07c2966d49d4c00d4c2ca0798b37214 /net/core/utils.c | |
parent | 8076fcde016c9c0e0660543e67bff86cb48a7c9c (diff) |
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 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions