Changeset 22887 in vbox for trunk/include
- Timestamp:
- Sep 9, 2009 10:23:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r22886 r22887 110 110 RTCPUID volatile idHostCpu; 111 111 112 /** Align the next bit on a 64-byte boundary. 112 /** Align the next bit on a 64-byte boundary and make sure it starts at the same 113 * offset in both 64-bit and 32-bit builds. 113 114 * 114 115 * @remarks The aligments of the members that are larger than 48 bytes should be … … 211 212 212 213 /** Align at page boundrary. */ 213 uint8_t abReserved[ HC_ARCH_BITS == 32 ? 448 :960];214 uint8_t abReserved[960]; 214 215 } VMCPU; 215 216 … … 810 811 STAMPROFILEADV StatSwitcherTSS; 811 812 812 /** @todo Realign everything on 64 byte boundaries to better match the 813 * cache-line size. */ 814 /* padding - the unions must be aligned on 32 bytes boundraries. */ 815 uint32_t padding[HC_ARCH_BITS == 32 ? 4+8 : 6]; 813 /** Padding - the unions must be aligned on a 64 bytes boundrary and the unions 814 * must start at the same offset on both 64-bit and 32-bit hosts. */ 815 uint32_t padding[HC_ARCH_BITS == 32 ? 4+8 : 6]; 816 816 817 817 /** CPUM part. */ … … 969 969 { 970 970 #ifdef ___VMInternal_h 971 struct VMINT 971 struct VMINT s; 972 972 #endif 973 973 uint8_t padding[24]; /* multiple of 8 */ 974 974 } vm; 975 975 976 /** CFGM part. */ 977 union 978 { 979 #ifdef ___CFGMInternal_h 980 struct CFGM s; 981 #endif 982 uint8_t padding[8]; /* multiple of 8 */ 983 } cfgm; 984 976 985 /** PARAV part. */ 977 986 union … … 983 992 } parav; 984 993 985 /** CFGM part. */ 986 union 987 { 988 #ifdef ___CFGMInternal_h 989 struct CFGM s; 990 #endif 991 uint8_t padding[8]; /* multiple of 8 */ 992 } cfgm; 993 994 /** Padding for aligning the cpu array on a 64 byte boundrary. */ 995 uint8_t abReserved2[8 + (HC_ARCH_BITS == 32 ? 3712 : 2112)]; 994 /** Padding for aligning the cpu array on a page boundrary. */ 995 uint8_t abReserved2[2120]; 996 996 997 997 /* ---- end small stuff ---- */
Note:
See TracChangeset
for help on using the changeset viewer.