Changeset 80014 in vbox for trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
- Timestamp:
- Jul 26, 2019 4:12:06 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r80003 r80014 56 56 #include "../VMMR0/GMMR0Internal.h" 57 57 #include "../VMMR0/GVMMR0Internal.h" 58 #ifdef VBOX_WITH_RAW_MODE59 # include "CSAMInternal.h"60 # include "PATMInternal.h"61 #endif62 58 #include <VBox/vmm/vm.h> 63 59 #include <VBox/vmm/uvm.h> … … 222 218 PRINT_OFFSET(VM, pdm.s.CritSect); 223 219 CHECK_PADDING_VM(64, iom); 224 #ifdef VBOX_WITH_RAW_MODE225 CHECK_PADDING_VM(64, patm);226 CHECK_PADDING_VM(64, csam);227 #endif228 220 CHECK_PADDING_VM(64, em); 229 221 /*CHECK_PADDING_VM(64, iem);*/ … … 262 254 #endif 263 255 264 CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16);265 PRINT_OFFSET(VM, selm.s.Tss);266 256 PVM pVM = NULL; NOREF(pVM); 267 if ((RT_UOFFSETOF(VM, selm.s.Tss) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.Tss))268 {269 printf("error! SELM:Tss is crossing a page!\n");270 rc++;271 }272 PRINT_OFFSET(VM, selm.s.TssTrap08);273 #if 0 // irrelevant now, remove later.274 if ((RT_UOFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) > PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08))275 {276 printf("error! SELM:TssTrap08 is crossing a page!\n");277 rc++;278 }279 #endif280 257 CHECK_MEMBER_ALIGNMENT(VM, trpm.s.aIdt, 16); 281 258 CHECK_MEMBER_ALIGNMENT(VM, aCpus[0], PAGE_SIZE); … … 373 350 374 351 /* pgm */ 375 #if defined(VBOX_WITH_2X_4GB_ADDR_SPACE) || defined(VBOX_WITH_RAW_MODE)352 #if defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 376 353 CHECK_MEMBER_ALIGNMENT(PGMCPU, AutoSet, 8); 377 354 #endif … … 402 379 CHECK_PADDING3(EMCPU, u.FatalLongJump, u.achPaddingFatalLongJump); 403 380 CHECK_SIZE_ALIGNMENT(VMMR0JMPBUF, 8); 404 #ifdef VBOX_WITH_RAW_MODE405 CHECK_SIZE_ALIGNMENT(PATCHINFO, 8);406 #endif407 381 #if 0 408 382 PRINT_OFFSET(VM, fForcedActions); … … 459 433 CHECK_PADDING_UVMCPU(32, vm); 460 434 461 #ifdef VBOX_WITH_RAW_MODE462 /*463 * Compare HC and RC.464 */465 printf("tstVMStructSize: Comparing HC and RC...\n");466 # include "tstVMStructRC.h"467 #endif /* VBOX_WITH_RAW_MODE */468 469 435 CHECK_PADDING_GVM(4, gvmm); 470 436 CHECK_PADDING_GVM(4, gmm);
Note:
See TracChangeset
for help on using the changeset viewer.