Changeset 37362 in vbox
- Timestamp:
- Jun 7, 2011 6:41:01 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72131
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r37357 r37362 645 645 #endif 646 646 647 /** @def VMCPU_ASSERT_EMT_OR_ RESET647 /** @def VMCPU_ASSERT_EMT_OR_NOT_RUNNING 648 648 * 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. 650 650 */ 651 651 #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 ) 655 657 #else 656 # define VMCPU_ASSERT_EMT_OR_ RESET(pVCpu) \658 # define VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu) \ 657 659 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, \ 660 663 ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd idCpu=%#x\n", \ 661 664 RTThreadNativeSelf(), (pVCpu)->hNativeThread, (pVCpu)->idCpu)) -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r37357 r37362 2232 2232 VMM_INT_DECL(void) PGMNotifyNxeChanged(PVMCPU pVCpu, bool fNxe) 2233 2233 { 2234 VMCPU_ASSERT_EMT_OR_ RESET(pVCpu);2234 VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu); 2235 2235 Log(("PGMNotifyNxeChanged: fNxe=%RTbool\n", fNxe)); 2236 2236
Note:
See TracChangeset
for help on using the changeset viewer.