Changeset 80191 in vbox for trunk/include
- Timestamp:
- Aug 8, 2019 12:36:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r80135 r80191 990 990 * Asserts that the current thread IS emulation thread \#0 (EMT0). 991 991 */ 992 #define VM_ASSERT_EMT0(pVM) VMCPU_ASSERT_EMT(&(pVM)->aCpus[0]) 992 #if defined(VBOX_BUGREF_9217_PART_I) && defined(IN_RING3) 993 # define VM_ASSERT_EMT0(a_pVM) VMCPU_ASSERT_EMT((a_pVM)->apCpusR3[0]) 994 #else 995 # define VM_ASSERT_EMT0(a_pVM) VMCPU_ASSERT_EMT(&(a_pVM)->aCpus[0]) 996 #endif 993 997 994 998 /** @def VM_ASSERT_EMT0_RETURN … … 1425 1429 } cfgm; 1426 1430 1427 #ifdef VBOX_BUGREF_92171428 1431 /** Padding for aligning the structure size on a page boundrary. */ 1429 # ifdef VBOX_WITH_REM 1430 uint8_t abAlignment2[3030 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT]; 1431 # else 1432 uint8_t abAlignment2[3286 - sizeof(PVMCPUR3) * VMM_MAX_CPU_COUNT]; 1433 # endif 1434 #else 1435 /** Padding for aligning the cpu array on a page boundary. */ 1436 # ifdef VBOX_WITH_REM 1437 uint8_t abAlignment2[3030]; 1438 # else 1439 uint8_t abAlignment2[3286]; 1440 # endif 1432 #ifdef VBOX_WITH_REM 1433 uint8_t abAlignment2[2520]; 1434 #else 1435 uint8_t abAlignment2[2520 + 256]; 1441 1436 #endif 1442 1437 1443 1438 /* ---- end small stuff ---- */ 1444 1439 1445 #ifdef VBOX_BUGREF_92171446 1440 /** Array of VMCPU pointers. */ 1447 PVMCPUR3 apCpus [VMM_MAX_CPU_COUNT];1448 # else1441 PVMCPUR3 apCpusR3[VMM_MAX_CPU_COUNT]; 1442 #if !defined(VBOX_BUGREF_9217) && !defined(VBOX_BUGREF_9217_PART_I) 1449 1443 /** VMCPU array for the configured number of virtual CPUs. 1450 1444 * Must be aligned on a page boundary for TLB hit reasons as well as
Note:
See TracChangeset
for help on using the changeset viewer.