VirtualBox

Ignore:
Timestamp:
Feb 8, 2022 1:56:01 PM (3 years ago)
Author:
vboxsync
Message:

VMM/TM,VMM/*: Moved RTTIMENANOTSDATAR0 into the ring-0 only part of the VM structure. Added a VMCC_CTX macro for selecting between tm and tmr0 VM components depending on the compilation context. Added a bunch of missing padding checks for GVM. bugref:10094

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0.cpp

    r93557 r93655  
    11601160VMMR0_INT_DECL(int) HMR0InitVM(PVMCC pVM)
    11611161{
     1162    AssertCompile(sizeof(pVM->hm.s) <= sizeof(pVM->hm.padding));
     1163    AssertCompile(sizeof(pVM->hmr0.s) <= sizeof(pVM->hmr0.padding));
     1164    AssertCompile(sizeof(pVM->aCpus[0].hm.s) <= sizeof(pVM->aCpus[0].hm.padding));
     1165    AssertCompile(sizeof(pVM->aCpus[0].hmr0.s) <= sizeof(pVM->aCpus[0].hmr0.padding));
    11621166    AssertReturn(pVM, VERR_INVALID_PARAMETER);
    11631167
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