]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6dba4e6887c9d93ed064346fcd1af5a37c24534d
treeeb18a283ff1e1a406e6ac27d6aab2904222e0d1d
parent8f89af7ccdc034c5d07b0a2612ec8845d0eac10d
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