]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Move RDPMC emulation to common code
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:48 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Feb 2021 13:36:05 +0000 (08:36 -0500)
commit80c78ccc01abf003c952b9cbadc8ed9ea3e03c84
tree1f6d18ea8f8dfcc192c253c8522da322acb7f136
parent16cc943a88e46b92bee50c875cb717908456f74b
KVM: x86: Move RDPMC emulation to common code

Move the entirety of the accelerated RDPMC emulation to x86.c, and assign
the common handler directly to the exit handler array for VMX.  SVM has
bizarre nrips behavior that prevents it from directly invoking the common
handler.  The nrips goofiness will be addressed in a future patch.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-8-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