OSDN Git Service

KVM: x86: Move uret MSR slot management to common x86
authorSean Christopherson <seanjc@google.com>
Tue, 4 May 2021 17:17:32 +0000 (10:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 May 2021 10:06:19 +0000 (06:06 -0400)
commite5fda4bbadb053e3b5164476146cf43092785c0b
tree7ef0f3493989addc52baa9b6a04bd40881376bd0
parent9cc39a5a43c05f8eda206bf9e144119820ecf5c8
KVM: x86: Move uret MSR slot management to common x86

Now that SVM and VMX both probe MSRs before "defining" user return slots
for them, consolidate the code for probe+define into common x86 and
eliminate the odd behavior of having the vendor code define the slot for
a given MSR.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210504171734.1434054-14-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c