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>
Mon, 15 Mar 2021 08:43:20 +0000 (04:43 -0400)
commitc483c45471b94f59c76cf45b676eb08318a9519a
treed956e60d4fbbc7c70ecd7fa9971cb53f2397c61f
parent5ff3a351f687fdd23051e7474f62788c57a7a613
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