]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Suppress userspace access failures on unsupported, "emulated" MSRs
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 18:19:35 +0000 (11:19 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 19:07:39 +0000 (12:07 -0700)
commit44dd0f5732b466a6e4d2a9b3aad1678f43f061af
tree2ba069335f03e3f27c0088aab9b1b7eac151dcaa
parent64a5d7a1091ff6ee70d2155b9dccfe8107d35ffa
KVM: x86: Suppress userspace access failures on unsupported, "emulated" MSRs

Extend KVM's suppression of userspace MSR access failures to MSRs that KVM
reports as emulated, but are ultimately unsupported, e.g. if the VMX MSRs
are emulated by KVM, but are unsupported given the vCPU model.

Suggested-by: Weijiang Yang <weijiang.yang@intel.com>
Reviewed-by: Weijiang Yang <weijiang.yang@intel.com>
Link: https://lore.kernel.org/r/20240802181935.292540-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c