• Avi Kivity's avatar
    KVM: VMX: Fix interrupt loss during race with NMI · bd2b3ca7
    Avi Kivity authored
    If an interrupt cannot be injected for some reason (say, page fault
    when fetching the IDT descriptor), the interrupt is marked for
    reinjection.  However, if an NMI is queued at this time, the NMI
    will be injected instead and the NMI will be lost.
    
    Fix by deferring the NMI injection until the interrupt has been
    injected successfully.
    
    Analyzed by Jan Kiszka.
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    bd2b3ca7
vmx.c 90.9 KB