KVM: VMX: Passthrough MSR_IA32_PRED_CMD based purely on host+guest CPUID
authorSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 01:14:36 +0000 (18:14 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Apr 2023 17:37:36 +0000 (13:37 -0400)
commit9a4c4850137e929d49958fb62d4275bd2f5b8c7a
treed28123ae21a73c8e91e1ad2c15d772ed45c0d331
parent52887af5650e35ea78b37602722313ff7b3c0c30
KVM: VMX: Passthrough MSR_IA32_PRED_CMD based purely on host+guest CPUID

Passthrough MSR_IA32_PRED_CMD based purely on whether or not the MSR is
supported and enabled, i.e. don't wait until the first write.  There's no
benefit to deferred passthrough, and the extra logic only adds complexity.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20230322011440.2195485-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c