]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Skip intercepted PAUSE instructions after emulation
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:50 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:22 +0000 (04:43 -0400)
commita8bc46a313785924dfe5120c9733f3474ffed64b
treedf8d23b482969446568c3e31b47c79ad206237fd
parentaf70a8fee12ddc84be25acd38dd20b47374a1926
KVM: SVM: Skip intercepted PAUSE instructions after emulation

Skip PAUSE after interception to avoid unnecessarily re-executing the
instruction in the guest, e.g. after regaining control post-yield.
This is a benign bug as KVM disables PAUSE interception if filtering is
off, including the case where pause_filter_count is set to zero.

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