VirtualBox

Changeset 12968 in vbox for trunk/src/VBox/VMM/MMInternal.h


Ignore:
Timestamp:
Oct 3, 2008 12:16:13 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37400
Message:

#1865: MM done for now (needs revisiting later).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMInternal.h

    r12967 r12968  
    351351 * related to a MMPAGESUBPOOL node in one chunk. That means that after the
    352352 * bitmap (which is of variable size) comes the SUPPAGE records and then
    353  * follows the lookup tree nodes.
     353 * follows the lookup tree nodes. (The heap in question is the hyper heap.)
    354354 */
    355355typedef struct MMPAGESUBPOOL
    356356{
    357357    /** Pointer to next sub pool. */
    358     struct MMPAGESUBPOOL   *pNext;
     358    R3R0PTRTYPE(struct MMPAGESUBPOOL *) pNext;
    359359    /** Pointer to next sub pool in the free chain.
    360360     * This is NULL if we're not in the free chain or at the end of it. */
    361     struct MMPAGESUBPOOL   *pNextFree;
     361    R3R0PTRTYPE(struct MMPAGESUBPOOL *) pNextFree;
    362362    /** Pointer to array of lock ranges.
    363363     * This is allocated together with the MMPAGESUBPOOL and thus needs no freeing.
     
    365365     * The reserved field is a pointer to this structure.
    366366     */
    367     PSUPPAGE                paPhysPages;
     367    R3R0PTRTYPE(PSUPPAGE)   paPhysPages;
    368368    /** Pointer to the first page. */
    369     void                   *pvPages;
     369    R3R0PTRTYPE(void *)     pvPages;
    370370    /** Size of the subpool. */
    371371    unsigned                cPages;
     
    387387{
    388388    /** List of subpools. */
    389     PMMPAGESUBPOOL          pHead;
     389    R3R0PTRTYPE(PMMPAGESUBPOOL) pHead;
    390390    /** Head of subpools with free pages. */
    391     PMMPAGESUBPOOL          pHeadFree;
     391    R3R0PTRTYPE(PMMPAGESUBPOOL) pHeadFree;
    392392    /** AVLPV tree for looking up HC virtual addresses.
    393393     * The tree contains MMLOOKUPVIRTPP records.
    394394     */
    395     PAVLPVNODECORE          pLookupVirt;
     395    R3R0PTRTYPE(PAVLPVNODECORE) pLookupVirt;
    396396    /** Tree for looking up HC physical addresses.
    397397     * The tree contains MMLOOKUPPHYSHC records.
    398398     */
    399     AVLHCPHYSTREE           pLookupPhys;
     399    R3R0PTRTYPE(AVLHCPHYSTREE)  pLookupPhys;
    400400    /** Pointer to the VM this pool belongs. */
    401     PVM                     pVM;
     401    R3R0PTRTYPE(PVM)        pVM;
    402402    /** Flag indicating the allocation method.
    403403     * Set: SUPLowAlloc().
     
    601601            R3PTRTYPE(void *)       pvR3;
    602602            /** Host context ring-0 pointer. */
     603            /** @todo #1865: Check if this actually works (doubt it) */
    603604            RTR0PTR                 pvR0;
    604605            /** Pointer to the locked mem record. */
     
    611612            /** Host context pointer. */
    612613            R3PTRTYPE(void *)       pvR3;
     614            /** @todo #1865: Add a pvR0 here! */
    613615            /** HC physical address corresponding to pvR3. */
    614616            RTHCPHYS                HCPhys;
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