VirtualBox

Changeset 37362 in vbox


Ignore:
Timestamp:
Jun 7, 2011 6:41:01 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72131
Message:

PGMNotifyNxeChanged: Another try.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r37357 r37362  
    645645#endif
    646646
    647 /** @def VMCPU_ASSERT_EMT_OR_RESET
     647/** @def VMCPU_ASSERT_EMT_OR_NOT_RUNNING
    648648 * Asserts that the current thread IS the emulation thread (EMT) of the
    649  * specified virtual CPU.
     649 * specified virtual CPU when the VM is running.
    650650 */
    651651#if defined(IN_RC) || defined(IN_RING0)
    652 # define VMCPU_ASSERT_EMT_OR_RESET(pVCpu)   Assert(   VMCPU_IS_EMT(pVCpu) \
    653                                                    || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RESETTING \
    654                                                    || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RESETTING_LS )
     652# define VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu) \
     653    Assert(   VMCPU_IS_EMT(pVCpu) \
     654           || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING \
     655           || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING_LS \
     656           || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING_FT )
    655657#else
    656 # define VMCPU_ASSERT_EMT_OR_RESET(pVCpu) \
     658# define VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu) \
    657659    AssertMsg(   VMCPU_IS_EMT(pVCpu) \
    658               || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RESETTING \
    659               || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RESETTING_LS, \
     660              || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING \
     661              || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING_LS \
     662              || pVCpu->CTX_SUFF(pVM)->enmVMState == VMSTATE_RUNNING_FT, \
    660663              ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd idCpu=%#x\n", \
    661664               RTThreadNativeSelf(), (pVCpu)->hNativeThread, (pVCpu)->idCpu))
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r37357 r37362  
    22322232VMM_INT_DECL(void) PGMNotifyNxeChanged(PVMCPU pVCpu, bool fNxe)
    22332233{
    2234     VMCPU_ASSERT_EMT_OR_RESET(pVCpu);
     2234    VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu);
    22352235    Log(("PGMNotifyNxeChanged: fNxe=%RTbool\n", fNxe));
    22362236
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