KVM: VMX: Move interrupt post-processing to vmx_complete_interrupts()
authorAvi Kivity <avi@qumranet.com>
Thu, 3 Jul 2008 13:14:28 +0000 (16:14 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:13 +0000 (10:15 +0200)
commitf7d9238f5dc9306fd3bf1653c2939eef72f94d06
tree2f3e03f2b6ed46450e27bc465efa8f4926cd373f
parent937a7eaef9f08342958d17055a350982b7bd92cb
KVM: VMX: Move interrupt post-processing to vmx_complete_interrupts()

Instead of looking at failed injections in the vm entry path, move
processing to the exit path in vmx_complete_interrupts().  This simplifes
the logic and removes any state that is hidden in vmx registers.

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