KVM: x86: Prepare MSR bitmaps for userspace tracked MSRs
authorAaron Lewis <aaronlewis@google.com>
Fri, 25 Sep 2020 14:34:18 +0000 (16:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:58:05 +0000 (07:58 -0400)
commit476c9bd8e997b495524500cd82471e59b3aac20e
tree9ff634f40331ea009514302cdd4db603bd4a5949
parent51de8151bd21bae0ce76f604eec6a7176f7093b3
KVM: x86: Prepare MSR bitmaps for userspace tracked MSRs

Prepare vmx and svm for a subsequent change that ensures the MSR permission
bitmap is set to allow an MSR that userspace is tracking to force a vmx_vmexit
in the guest.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
[agraf: rebase, adapt SVM scheme to nested changes that came in between]
Signed-off-by: Alexander Graf <graf@amazon.com>
Message-Id: <20200925143422.21718-5-graf@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h