VirtualBox

Changeset 20838 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jun 23, 2009 2:15:46 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48977
Message:

NMI updates

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r20769 r20838  
    426426    }
    427427
    428     if (pVM->hwaccm.s.fInjectNMI)
     428    if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI_BIT))
    429429    {
    430430        SVM_EVENT Event;
    431431
     432        Log(("CPU%d: injecting #NMI\n", pVCpu->idCpu));
    432433        Event.n.u8Vector     = X86_XCPT_NMI;
    433434        Event.n.u1Valid      = 1;
     
    436437
    437438        SVMR0InjectEvent(pVCpu, pVMCB, pCtx, &Event);
    438         pVM->hwaccm.s.fInjectNMI = false;
    439439        return VINF_SUCCESS;
    440440    }
     441
     442    /* @todo SMI interrupts. */
    441443
    442444    /* When external interrupts are pending, we should exit the VM when IF is set. */
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r20769 r20838  
    754754    }
    755755
    756     if (pVM->hwaccm.s.fInjectNMI)
     756    if (VMCPU_FF_TESTANDCLEAR(pVCpu, VMCPU_FF_INTERRUPT_NMI_BIT))
    757757    {
    758758        RTGCUINTPTR intInfo;
     759
     760        Log(("CPU%d: injecting #NMI\n", pVCpu->idCpu));
    759761
    760762        intInfo  = X86_XCPT_NMI;
     
    765767        AssertRC(rc);
    766768
    767         pVM->hwaccm.s.fInjectNMI = false;
    768769        return VINF_SUCCESS;
    769770    }
     771
     772    /* @todo SMI interrupts. */
    770773
    771774    /* When external interrupts are pending, we should exit the VM when IF is set. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette