KVM: SVM: Passthrough MSR_IA32_PRED_CMD based purely on host+guest CPUID
authorSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 01:14:37 +0000 (18:14 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Apr 2023 17:37:36 +0000 (13:37 -0400)
commitbff903e8cd743cddb42ef1690edd33130f12c40a
tree8e47cfc6ef9e99a0ccd173d926fd375ef037017f
parent9a4c4850137e929d49958fb62d4275bd2f5b8c7a
KVM: SVM: 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>
Message-Id: <20230322011440.2195485-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c