VirtualBox

Changeset 46482 in vbox


Ignore:
Timestamp:
Jun 10, 2013 5:36:54 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: AMD-V bits.

File:
1 edited

Legend:

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

    r46481 r46482  
    13261326}
    13271327
     1328
     1329/**
     1330 * Posts a pending event (trap or external interrupt). An injected event should only
     1331 * be written to the VMCB immediately before VMRUN, otherwise we might have stale events
     1332 * injected across VM resets and suchlike. See @bugref{6220}.
     1333 *
     1334 * @param   pVCpu       Pointer to the VMCPU.
     1335 * @param   pEvent      Pointer to the SVM event.
     1336 */
     1337DECLINLINE(void) hmR0SvmSetPendingEvent(PVMCPU pVCpu, SVMEVENT *pEvent)
     1338{
     1339    Log4(("SVM: Set pending event: intInfo=%#RX64\n", pEvent->u));
     1340
     1341    /* If there's an event pending already, we're in trouble... */
     1342    Assert(!pVCpu->hm.s.Event.fPending);
     1343
     1344    /* Set pending event state. */
     1345    pVCpu->hm.s.Event.u64IntrInfo = pEvent->u;
     1346    pVCpu->hm.s.Event.fPending    = true;
     1347}
     1348
Note: See TracChangeset for help on using the changeset viewer.

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