OSDN Git Service

KVM: SVM: Don't manually emulate RDPMC if nrips=0
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:49 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:21 +0000 (04:43 -0400)
commit32c23c7d5275d41818807801be44cbba03045fc8
treeeb18a283ff1e1a406e6ac27d6aab2904222e0d1d
parentc483c45471b94f59c76cf45b676eb08318a9519a
KVM: SVM: Don't manually emulate RDPMC if nrips=0

Remove bizarre code that causes KVM to run RDPMC through the emulator
when nrips is disabled.  Accelerated emulation of RDPMC doesn't rely on
any additional data from the VMCB, and SVM has generic handling for
updating RIP to skip instructions when nrips is disabled.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c