KVM: VMX: Move nmi injection failure processing to vm exit path
authorAvi Kivity <avi@qumranet.com>
Wed, 2 Jul 2008 06:28:55 +0000 (09:28 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:13 +0000 (10:15 +0200)
commit668f612fa0d8d4120ec5dc0725d7e1ca3152a954
treeb1daa43b36d544abe32f0bb787fc459c85a6f766
parentcf393f75661f4b17451377b353833eb5502a9688
KVM: VMX: Move nmi injection failure processing to vm exit path

Instead of processing nmi injection failure in the vm entry path, move
it to the vm exit path (vm_complete_interrupts()).  This separates nmi
injection from nmi post-processing, and moves the nmi state from the VT
state into vcpu state (new variable nmi_injected specifying an injection
in progress).

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c
include/asm-x86/kvm_host.h