Changeset 90380 in vbox for trunk/include/VBox/vmm/gvm.h
- Timestamp:
- Jul 28, 2021 9:38:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/gvm.h
r90379 r90380 57 57 58 58 /** VCPU id (0 - (pVM->cCpus - 1). */ 59 VMCPUID idCpu;59 VMCPUID idCpu; 60 60 /** Padding. */ 61 uint32_t uPadding;61 uint32_t uPadding0; 62 62 63 63 /** Handle to the EMT thread. */ 64 RTNATIVETHREAD hEMT;64 RTNATIVETHREAD hEMT; 65 65 66 66 /** Pointer to the global (ring-0) VM structure this CPU belongs to. */ 67 R0PTRTYPE(PGVM) pGVM;67 R0PTRTYPE(PGVM) pGVM; 68 68 /** Pointer to the GVM structure, for CTX_SUFF use in VMMAll code. */ 69 PGVM pVMR0;69 PGVM pVMR0; 70 70 /** The ring-3 address of this structure (only VMCPU part). */ 71 PVMCPUR3 pVCpuR3; 71 PVMCPUR3 pVCpuR3; 72 73 /** Padding so the noisy stuff on a 64 byte boundrary. 74 * @note Keeping this working for 32-bit header syntax checking. */ 75 uint8_t abPadding1[HC_ARCH_BITS == 32 ? 40 : 24]; 76 77 /** Which host CPU ID is this EMT running on. 78 * Only valid when in RC or HMR0 with scheduling disabled. */ 79 RTCPUID volatile idHostCpu; 80 /** The CPU set index corresponding to idHostCpu, UINT32_MAX if not valid. 81 * @remarks Best to make sure iHostCpuSet shares cache line with idHostCpu! */ 82 uint32_t volatile iHostCpuSet; 72 83 73 84 /** Padding so gvmm starts on a 64 byte boundrary. 74 85 * @note Keeping this working for 32-bit header syntax checking. */ 75 uint8_t abPadding[HC_ARCH_BITS == 32 ? 40 : 24];86 uint8_t abPadding2[56]; 76 87 77 88 /** The GVMM per vcpu data. */ … … 109 120 struct VMMR0PERVCPU s; 110 121 #endif 111 uint8_t padding[ 128];122 uint8_t padding[64]; 112 123 } vmmr0; 113 124 114 125 /** Padding the structure size to page boundrary. */ 115 126 #ifdef VBOX_WITH_NEM_R0 116 uint8_t abPadding 2[4096 - 64 - 64 - 1024 - 64 - 128];127 uint8_t abPadding3[4096 - 64*2 - 64 - 1024 - 64 - 64]; 117 128 #else 118 uint8_t abPadding 2[4096 - 64 - 64 - 1024 - 128];129 uint8_t abPadding3[4096 - 64*2 - 64 - 1024 - 64]; 119 130 #endif 120 131 } GVMCPU;
Note:
See TracChangeset
for help on using the changeset viewer.