VirtualBox

Changeset 91249 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Sep 15, 2021 12:37:46 PM (3 years ago)
Author:
vboxsync
Message:

VMM/PGM: Kicked out unused structure offset members. bugref:9517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r91248 r91249  
    29112911
    29122912/**
    2913  * Converts a PGM pointer into a VM pointer.
    2914  * @returns Pointer to the VM structure the PGM is part of.
    2915  * @param   pPGM   Pointer to PGM instance data.
    2916  */
    2917 #define PGM2VM(pPGM)  ( (PVM)((char*)pPGM - pPGM->offVM) )
    2918 
    2919 /**
    29202913 * PGM Data (part of VM)
    29212914 */
    29222915typedef struct PGM
    29232916{
    2924     /** Offset to the VM structure. */
    2925     int32_t                         offVM;
    2926     /** Offset of the PGMCPU structure relative to VMCPU. */
    2927     int32_t                         offVCpuPGM;
    2928 
    29292917    /** @cfgm{/RamPreAlloc, boolean, false}
    29302918     * Indicates whether the base RAM should all be allocated before starting
     
    31033091    uint32_t                        cDeprecatedPageLocks;
    31043092    /** Alignment padding. */
    3105     uint32_t                        au32Alignment2[1];
     3093    uint32_t                        au32Alignment2[1+2];
    31063094
    31073095
     
    33073295
    33083296#ifdef VBOX_WITH_STATISTICS
     3297/**
     3298 * Per CPU statistis for PGM (used to be on the heap).
     3299 */
    33093300typedef struct PGMCPUSTATS
    33103301{
     
    34963487
    34973488/**
    3498  * Converts a PGMCPU pointer into a VM pointer.
    3499  * @returns Pointer to the VM structure the PGM is part of.
    3500  * @param   pPGM    Pointer to PGMCPU instance data.
    3501  */
    3502 #define PGMCPU2VM(pPGM)         ( (PVM)((char*)(pPGM) - (pPGM)->offVM) )
    3503 
    3504 /**
    3505  * Converts a PGMCPU pointer into a PGM pointer.
    3506  * @returns Pointer to the VM structure the PGM is part of.
    3507  * @param   pPGMCpu Pointer to PGMCPU instance data.
    3508  */
    3509 #define PGMCPU2PGM(pPGMCpu)     ( (PPGM)((char *)(pPGMCpu) - (pPGMCpu)->offPGM) )
    3510 
    3511 /**
    35123489 * PGMCPU Data (part of VMCPU).
    35133490 */
    35143491typedef struct PGMCPU
    35153492{
    3516     /** Offset to the VM structure. */
    3517     int32_t                         offVM;
    3518     /** Offset to the VMCPU structure. */
    3519     int32_t                         offVCpu;
    3520     /** Offset of the PGM structure relative to VMCPU. */
    3521     int32_t                         offPGM;
    3522     uint32_t                        uPadding0;      /**< structure size alignment. */
    3523 
    35243493    /** A20 gate mask.
    35253494     * Our current approach to A20 emulation is to let REM do it and don't bother
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