VirtualBox

Changeset 19611 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 12, 2009 12:23:08 PM (16 years ago)
Author:
vboxsync
Message:

Change the EM state to EMSTATE_HALTED after receiving the startup IPI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r19141 r19611  
    8585 *
    8686 * @returns Current status.
     87 * @param   pVCpu         The VMCPU to operate on.
    8788 */
    8889VMMDECL(EMSTATE) EMGetState(PVMCPU pVCpu)
     
    9091    return pVCpu->em.s.enmState;
    9192}
     93
     94/**
     95 * Sets the current execution manager status. (use only when you know what you're doing!)
     96 *
     97 * @param   pVCpu         The VMCPU to operate on.
     98 */
     99VMMDECL(void)    EMSetState(PVMCPU pVCpu, EMSTATE enmNewState)
     100{
     101    /* Only allowed combination: */
     102    Assert(pVCpu->em.s.enmState == EMSTATE_WAIT_SIPI && enmNewState == EMSTATE_HALTED);
     103    pVCpu->em.s.enmState = enmNewState;
     104}
     105
    92106
    93107#ifndef IN_RC
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