VirtualBox

Changeset 17547 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 9, 2009 2:48:02 AM (16 years ago)
Author:
vboxsync
Message:

GMM: executed the GMM_GCPHYS_LAST todo, fixed GMM_GCPHYS_UNSHAREABLE, and make sure the RAM isn't above GMM_GCPHYS_LAST.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/gmm.h

    r17432 r17547  
    108108
    109109
     110/** @def GMM_GCPHYS_LAST
     111 * The last of the valid guest physical address as it applies to GMM pages.
     112 *
     113 * This must reflect the constraints imposed by the RTGCPHYS type and
     114 * the guest page frame number used internally in GMMPAGE.
     115 *
     116 * @note    Note this corresponds to GMM_PAGE_PFN_LAST. */
     117#if HC_ARCH_BITS == 64
     118# define GMM_GCPHYS_LAST            UINT64_C(0x00000fffffff0000)    /* 2^44 (16TB) - 0x10000 */
     119#else
     120# define GMM_GCPHYS_LAST            UINT64_C(0x0000000fffff0000)    /* 2^36 (64GB) - 0x10000 */
     121#endif
     122
    110123/**
    111124 * Over-commitment policy.
     
    241254typedef GMMPAGEDESC *PGMMPAGEDESC;
    242255
    243 /** GMMPAGEDESC::HCPhysGCPhys value that indicates that the page is shared. */
    244 #define GMM_GCPHYS_UNSHAREABLE  (RTHCPHYS)(0xfffffff0)
     256/** GMMPAGEDESC::HCPhysGCPhys value that indicates that the page is unsharable.
     257 * @note    This corresponds to GMM_PAGE_PFN_UNSHAREABLE. */
     258#if HC_ARCH_BITS == 64
     259# define GMM_GCPHYS_UNSHAREABLE     UINT64_C(0x00000fffffff1000)
     260#else
     261# define GMM_GCPHYS_UNSHAREABLE     UINT64_C(0x0000000fffff1000)
     262#endif
    245263
    246264GMMR0DECL(int)  GMMR0Init(void);
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