KVM: nSVM: inject exceptions via svm_check_nested_events
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 16 May 2020 12:42:28 +0000 (08:42 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2020 15:46:17 +0000 (11:46 -0400)
commit7c86663b68bab393633d8312a0d25a3d004de182
treee7a6628ef6228b0b0729be8ede85106e973a6d0a
parentc9d40913ac5a21eb2b976bb221a4677540e84eba
KVM: nSVM: inject exceptions via svm_check_nested_events

This allows exceptions injected by the emulator to be properly delivered
as vmexits.  The code also becomes simpler, because we can just let all
L0-intercepted exceptions go through the usual path.  In particular, our
emulation of the VMX #DB exit qualification is very much simplified,
because the vmexit injection path can use kvm_deliver_exception_payload
to update DR6.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/x86.c