]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Exit to userspace if fastpath triggers one on instruction skip
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 19:51:18 +0000 (12:51 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 30 Aug 2024 02:50:21 +0000 (19:50 -0700)
commitf7f39c50edb9d336274371953275e0d3503b9b75
tree995de606a2daba4cfeb408cc89a3806eff92eaa2
parentea60229af7fbdcdd06d798f8340a7a9b40770c53
KVM: x86: Exit to userspace if fastpath triggers one on instruction skip

Exit to userspace if a fastpath handler triggers such an exit, which can
happen when skipping the instruction, e.g. due to userspace
single-stepping the guest via KVM_GUESTDBG_SINGLESTEP or because of an
emulation failure.

Fixes: 404d5d7bff0d ("KVM: X86: Introduce more exit_fastpath_completion enum values")
Link: https://lore.kernel.org/r/20240802195120.325560-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c