KVM: VMX: refactor IRQ and NMI window enabling
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 26 Sep 2008 07:30:50 +0000 (09:30 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:41 +0000 (16:51 +0200)
commitf460ee43e250b675376246b1c4c9fe9b9af4ab16
tree1d34055070abe9894f0290d5f3dc51566cb98719
parent33f089ca5a61f7aead26e8e1866dfc961dd88a9e
KVM: VMX: refactor IRQ and NMI window enabling

do_interrupt_requests and vmx_intr_assist go different way for
achieving the same: enabling the nmi/irq window start notification.
Unify their code over enable_{irq|nmi}_window, get rid of a redundant
call to enable_intr_window instead of direct enable_nmi_window
invocation and unroll enable_intr_window for both in-kernel and user
space irq injection accordingly.

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