- Timestamp:
- May 4, 2009 3:57:43 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r19326 r19333 37 37 #include <VBox/vmapi.h> 38 38 #include <VBox/sup.h> 39 #include <VBox/vmm.h> 39 40 40 41 … … 428 429 #ifdef IN_RC 429 430 # define VM_IS_EMT(pVM) true 430 #elif defined(IN_RING0)431 # define VM_IS_EMT(pVM) true432 431 #else 433 /** @todo need to rework this macro for the case of multiple emulation threads for SMP */ 434 # define VM_IS_EMT(pVM) (VMR3GetVMCPUNativeThread(pVM) == RTThreadNativeSelf()) 432 # define VM_IS_EMT(pVM) (VMMGetCpu(pVM) != NULL) 435 433 #endif 436 434 … … 441 439 #ifdef IN_RC 442 440 # define VMCPU_IS_EMT(pVCpu) true 443 #elif defined(IN_RING0)444 # define VMCPU_IS_EMT(pVCpu) fixme - need to call HWACCM I think... /** @todo SMP */445 441 #else 446 /** @todo need to rework this macro for the case of multiple emulation threads for SMP */ 447 # define VMCPU_IS_EMT(pVCpu) ((pVCpu)->hNativeThread == RTThreadNativeSelf()) 442 # define VMCPU_IS_EMT(pVCpu) (pVCpu && (pVCpu == VMMGetCpu(pVCpu->CTX_SUFF(pVM)))) 448 443 #endif 449 444 -
trunk/src/VBox/VMM/PGMPool.cpp
r19300 r19333 526 526 * We cannot flush a page if we're in an async thread because of REM notifications. 527 527 */ 528 if (! VM_IS_EMT(pVM))528 if (!pVCpu) 529 529 { 530 530 Log(("pgmR3PoolAccessHandler: async thread, requesting EMT to flush the page: %p:{.Core=%RHp, .idx=%d, .GCPhys=%RGp, .enmType=%d}\n",
Note:
See TracChangeset
for help on using the changeset viewer.