OSDN Git Service

kvm: nVMX: small cleanup in handle_exception
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Jun 2019 12:57:25 +0000 (14:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:01 +0000 (11:46 +0200)
commit2ea72039808d50c909c2eb00eaebfaaaa743927a
treea285544f0c8751878b4a15d437319a772e06c6e1
parentbeb8d93b3e423043e079ef3dda19dad7b28467a8
kvm: nVMX: small cleanup in handle_exception

The reason for skipping handling of NMI and #MC in handle_exception is
the same, namely they are handled earlier by vmx_complete_atomic_exit.
Calling the machine check handler (which just returns 1) is misleading,
don't do it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c