Skip to content

Commit 65ca287

Browse files
yosrym93sean-jc
authored andcommitted
KVM: x86: Propagate AMD's IbrsSameMode to the guest
If IBRS provides same mode (kernel/user or host/guest) protection on the host, then by definition it also provides same mode protection in the guest. In fact, all different modes from the guest's perspective are the same mode from the host's perspective anyway. Propagate IbrsSameMode to the guests. Signed-off-by: Yosry Ahmed <[email protected]> Reviewed-by: Jim Mattson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 9a7cb00 commit 65ca287

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/cpuid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ void kvm_set_cpu_caps(void)
10931093
F(AMD_SSB_NO),
10941094
F(AMD_STIBP),
10951095
F(AMD_STIBP_ALWAYS_ON),
1096+
F(AMD_IBRS_SAME_MODE),
10961097
F(AMD_PSFD),
10971098
F(AMD_IBPB_RET),
10981099
);

0 commit comments

Comments
 (0)