KVM: VMX: Split up vmx_complete_interrupts()
authorAvi Kivity <avi@redhat.com>
Tue, 20 Jul 2010 11:31:20 +0000 (14:31 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:51 +0000 (10:52 +0200)
commit51aa01d13d4a64422cf8095205fc4a02322aca2c
tree362110e17562f7f1e89c114af5447c8f0275bac3
parent3842d135ff246b6543f1df77f5600e12094a6845
KVM: VMX: Split up vmx_complete_interrupts()

vmx_complete_interrupts() does too much, split it up:
 - vmx_vcpu_run() gets the "cache important vmcs fields" part
 - a new vmx_complete_atomic_exit() gets the parts that must be done atomically
 - a new vmx_recover_nmi_blocking() does what its name says
 - vmx_complete_interrupts() retains the event injection recovery code

This helps in reducing the work done in atomic context.

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