]> git.baikalelectronics.ru Git - kernel.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>
Mon, 15 Mar 2021 08:43:20 +0000 (04:43 -0400)
commit8f89af7ccdc034c5d07b0a2612ec8845d0eac10d
treed956e60d4fbbc7c70ecd7fa9971cb53f2397c61f
parent315c2d332291f2ee055b8c9ab17ee3e0aa986ed7
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