VirtualBox

Changeset 6581 in vbox for trunk


Ignore:
Timestamp:
Jan 29, 2008 11:53:36 PM (17 years ago)
Author:
vboxsync
Message:

Added some ring-3 wrapper functions for the (ring-0) GMM APIs.

Location:
trunk
Files:
1 added
2 edited

Legend:

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

    r5999 r6581  
    4949#else
    5050# define GMMR0DECL(type)    DECLIMPORT(type) VBOXCALL
     51#endif
     52
     53/** @def IN_GMM_R3
     54 * Used to indicate whether we're inside the same link module as the ring 3
     55 * part of the Global Memory Manager or not.
     56 */
     57/** @def GMMR3DECL
     58 * Ring 3 GMM export or import declaration.
     59 * @param   type    The return type of the function declaration.
     60 */
     61#ifdef IN_GMM_R3
     62# define GMMR3DECL(type)    DECLEXPORT(type) VBOXCALL
     63#else
     64# define GMMR3DECL(type)    DECLIMPORT(type) VBOXCALL
    5165#endif
    5266
     
    236250
    237251
     252GMMR3DECL(int)  GMMR3InitialReservation(PVM pVM, uint64_t cBasePages, uint32_t cShadowPages, uint32_t cFixedPages,
     253                                        GMMOCPOLICY enmPolicy, GMMPRIORITY enmPriority);
     254GMMR3DECL(int)  GMMR3UpdateReservation(PVM pVM, uint64_t cBasePages, uint32_t cShadowPages, uint32_t cFixedPages);
     255GMMR3DECL(int)  GMMR3DeflatedBalloon(PVM pVM, uint32_t cPages);
     256GMMR3DECL(int)  GMMR3MapUnmapChunk(PVM pVM, uint32_t idChunkMap, uint32_t idChunkUnmap, PRTR3PTR ppvR3);
     257GMMR3DECL(int)  GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3);
     258
     259
     260
    238261/**
    239262 * Request buffer for GMMR0InitialReservationReq / VMMR0_DO_GMM_INITIAL_RESERVATION.
  • trunk/src/VBox/VMM/Makefile.kmk

    r5999 r6581  
    3737VMMR3_TEMPLATE  = VBOXR3
    3838VMMR3_DEFS      = IN_VMM_R3  IN_PDM_R3  IN_CFGM_R3 IN_IOM_R3  IN_VM_R3   IN_CPUM_R3 IN_SELM_R3 IN_PGM_R3 IN_TRPM_R3 IN_MM_R3 IN_DBG_R3 \
    39                   IN_DBGF_R3 IN_PATM_R3 IN_DIS_R3  IN_STAM_R3 IN_CSAM_R3 IN_EM_R3   IN_TM_R3   IN_SSM_R3 IN_HWACCM_R3
     39                  IN_DBGF_R3 IN_PATM_R3 IN_DIS_R3  IN_STAM_R3 IN_CSAM_R3 IN_EM_R3   IN_TM_R3   IN_SSM_R3 IN_HWACCM_R3 IN_GMM_R3
    4040ifdef VBOX_WITH_IDT_PATCHING
    4141VMMR3_DEFS     += VBOX_WITH_IDT_PATCHING
     
    6363        EM.cpp \
    6464        IOM.cpp \
     65        GMM.cpp \
    6566        MM.cpp \
    6667        MMHeap.cpp \
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