]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Invert emulation re-execute behavior to make it opt-in
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 23 Aug 2018 20:56:48 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:41:22 +0000 (22:41 +0200)
commit172c718af8b2323a597d373508f0da313fea4282
tree4997cb8bf317adf2a2e343f61313302259acdc4f
parent9a89243cb1c74764c28a6e4fc50ec5efab594fbe
KVM: x86: Invert emulation re-execute behavior to make it opt-in

commit 8065dbd1ee0ef04321d80da7999b4f0086e0a407 upstream.

Re-execution of an instruction after emulation decode failure is
intended to be used only when emulating shadow page accesses.  Invert
the flag to make allowing re-execution opt-in since that behavior is
by far in the minority.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c