]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ac7b95621fdb6dd8c539acb4ac6e9296c48f1db
tree7ef0f3493989addc52baa9b6a04bd40881376bd0
parentbb87d25fbfd17d36f4679d638d7fef62a4018e5c
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