KVM: x86: Propagate AMD's IbrsSameMode to the guest
authorYosry Ahmed <yosry.ahmed@linux.dev>
Fri, 21 Feb 2025 16:33:51 +0000 (16:33 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:18:31 +0000 (11:18 -0700)
commit65ca2872015c232d6743b497e3c08ff96596b917
tree1cab3fa1b09a73e6ac3d9d5e667e6d6041a50864
parent9a7cb00a8ff7380a09fa75287a3f2642c472d562
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 <yosry.ahmed@linux.dev>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20250221163352.3818347-3-yosry.ahmed@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c