VirtualBox

Changeset 93655 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 8, 2022 1:56:01 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149810
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

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gvm.h

    r93650 r93655  
    287287        TMR0PERVM           s;
    288288#endif
    289         uint8_t             padding[128];
     289        uint8_t             padding[192];
    290290    } tmr0;
    291291
     
    300300    /** Padding so aCpus starts on a page boundrary.  */
    301301#ifdef VBOX_WITH_NEM_R0
    302     uint8_t         abPadding2[16384 - 64 - 4352 - 1024 - 256 - 256 - 64 - 3008 - 1920 - 512 - 64 - 1024 - 128 - 704 - sizeof(PGVMCPU) * VMM_MAX_CPU_COUNT];
     302    uint8_t         abPadding2[16384 - 64 - 4352 - 1024 - 256 - 256 - 64 - 3008 - 1920 - 512 - 64 - 1024 - 192 - 704 - sizeof(PGVMCPU) * VMM_MAX_CPU_COUNT];
    303303#else
    304     uint8_t         abPadding2[16384 - 64 - 4352 - 1024 - 256 -       64 - 3008 - 1920 - 512 - 64 - 1024 - 128 - 704 - sizeof(PGVMCPU) * VMM_MAX_CPU_COUNT];
     304    uint8_t         abPadding2[16384 - 64 - 4352 - 1024 - 256 -       64 - 3008 - 1920 - 512 - 64 - 1024 - 192 - 704 - sizeof(PGVMCPU) * VMM_MAX_CPU_COUNT];
    305305#endif
    306306
     
    340340#endif /* !VBOX_INCLUDED_vmm_gvm_h */
    341341
     342
  • trunk/include/VBox/vmm/vmcc.h

    r93115 r93655  
    122122
    123123
     124/**
     125 * Used to pick ring-0 or ring-3 VM component data.
     126 *
     127 * @code{.cpp}
     128 *    pVM->VMCC_CTX(pdm).s.pfnWorker
     129 * @endcode
     130 */
     131#ifdef IN_RING0
     132# define VMCC_CTX(a_Name)   a_Name ## r0
     133#else
     134# define VMCC_CTX(a_Name)   a_Name
     135#endif
     136
    124137#endif /* !VBOX_INCLUDED_vmm_vmcc_h */
    125138
Note: See TracChangeset for help on using the changeset viewer.

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