]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Export the number of uret MSRs to vendor modules
authorSean Christopherson <seanjc@google.com>
Tue, 4 May 2021 17:17:31 +0000 (10:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 May 2021 10:06:18 +0000 (06:06 -0400)
commit1219de75f62c67b65484e5871478fc7f0756369f
treec36f674f5a3dbbf08d22f4c39e5e197971bc9906
parentd08dd7337681980b1ea28242394ebf31a57cfa64
KVM: x86: Export the number of uret MSRs to vendor modules

Split out and export the number of configured user return MSRs so that
VMX can iterate over the set of MSRs without having to do its own tracking.
Keep the list itself internal to x86 so that vendor code still has to go
through the "official" APIs to add/modify entries.

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