VirtualBox

Ignore:
Timestamp:
Jul 26, 2019 4:12:06 PM (5 years ago)
Author:
vboxsync
Message:

VMM: Kicking out raw-mode (work in progress). bugref:9517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp

    r80003 r80014  
    5656#include "../VMMR0/GMMR0Internal.h"
    5757#include "../VMMR0/GVMMR0Internal.h"
    58 #ifdef VBOX_WITH_RAW_MODE
    59 # include "CSAMInternal.h"
    60 # include "PATMInternal.h"
    61 #endif
    6258#include <VBox/vmm/vm.h>
    6359#include <VBox/vmm/uvm.h>
     
    222218    PRINT_OFFSET(VM, pdm.s.CritSect);
    223219    CHECK_PADDING_VM(64, iom);
    224 #ifdef VBOX_WITH_RAW_MODE
    225     CHECK_PADDING_VM(64, patm);
    226     CHECK_PADDING_VM(64, csam);
    227 #endif
    228220    CHECK_PADDING_VM(64, em);
    229221    /*CHECK_PADDING_VM(64, iem);*/
     
    262254#endif
    263255
    264     CHECK_MEMBER_ALIGNMENT(VM, selm.s.Tss, 16);
    265     PRINT_OFFSET(VM, selm.s.Tss);
    266256    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 #endif
    280257    CHECK_MEMBER_ALIGNMENT(VM, trpm.s.aIdt, 16);
    281258    CHECK_MEMBER_ALIGNMENT(VM, aCpus[0], PAGE_SIZE);
     
    373350
    374351    /* pgm */
    375 #if defined(VBOX_WITH_2X_4GB_ADDR_SPACE)  || defined(VBOX_WITH_RAW_MODE)
     352#if defined(VBOX_WITH_2X_4GB_ADDR_SPACE)
    376353    CHECK_MEMBER_ALIGNMENT(PGMCPU, AutoSet, 8);
    377354#endif
     
    402379    CHECK_PADDING3(EMCPU, u.FatalLongJump, u.achPaddingFatalLongJump);
    403380    CHECK_SIZE_ALIGNMENT(VMMR0JMPBUF, 8);
    404 #ifdef VBOX_WITH_RAW_MODE
    405     CHECK_SIZE_ALIGNMENT(PATCHINFO, 8);
    406 #endif
    407381#if 0
    408382    PRINT_OFFSET(VM, fForcedActions);
     
    459433    CHECK_PADDING_UVMCPU(32, vm);
    460434
    461 #ifdef VBOX_WITH_RAW_MODE
    462     /*
    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 
    469435    CHECK_PADDING_GVM(4, gvmm);
    470436    CHECK_PADDING_GVM(4, gmm);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette