• Jan Kiszka's avatar
    KVM: VMX: refactor IRQ and NMI window enabling · f460ee43
    Jan Kiszka authored
    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: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    f460ee43
vmx.c 90.7 KB