From: Yosry Ahmed Date: Fri, 21 Feb 2025 16:33:51 +0000 (+0000) Subject: KVM: x86: Propagate AMD's IbrsSameMode to the guest X-Git-Tag: v6.16-rc1~78^2~9^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65ca2872015c232d6743b497e3c08ff96596b917;p=thirdparty%2Flinux.git 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 Reviewed-by: Jim Mattson Link: https://lore.kernel.org/r/20250221163352.3818347-3-yosry.ahmed@linux.dev Signed-off-by: Sean Christopherson --- diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index e92263fbbad68..f678cbda6ebf5 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -1093,6 +1093,7 @@ void kvm_set_cpu_caps(void) F(AMD_SSB_NO), F(AMD_STIBP), F(AMD_STIBP_ALWAYS_ON), + F(AMD_IBRS_SAME_MODE), F(AMD_PSFD), F(AMD_IBPB_RET), );