Changeset 19333 in vbox for trunk/include
- Timestamp:
- May 4, 2009 3:57:43 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46811
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.