Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

gmm.h File Reference


Detailed Description

GMM - The Global Memory Manager.

Definition in file gmm.h.

#include <VBox/types.h>
#include <VBox/gvmm.h>
#include <VBox/sup.h>

Go to the source code of this file.

Classes

struct  GMMALLOCATEPAGESREQ
struct  GMMBALLOONEDPAGESREQ
struct  GMMFREEPAGEDESC
struct  GMMFREEPAGESREQ
struct  GMMINITIALRESERVATIONREQ
struct  GMMMAPUNMAPCHUNKREQ
struct  GMMPAGEDESC
struct  GMMUPDATERESERVATIONREQ

Defines

#define GMM_CHUNK_NUM_PAGES   (1U << (GMM_CHUNK_SHIFT - PAGE_SHIFT))
#define GMM_CHUNK_SHIFT   20
#define GMM_CHUNK_SIZE   (1U << GMM_CHUNK_SHIFT)
#define GMM_CHUNKID_LAST   (GMM_PAGEID_LAST >> GMM_CHUNKID_SHIFT)
#define GMM_CHUNKID_SHIFT   (GMM_CHUNK_SHIFT - PAGE_SHIFT)
#define GMM_GCPHYS_UNSHAREABLE   (RTHCPHYS)(0xfffffff0)
#define GMM_PAGEID_IDX_MASK   ((1U << GMM_CHUNKID_SHIFT) - 1)
#define GMM_PAGEID_LAST   (RT_BIT_32(28) - 1)
#define GMMR0DECL(type)   DECLIMPORT(type) VBOXCALL
#define GMMR3DECL(type)   DECLIMPORT(type) VBOXCALL
#define NIL_GMM_CHUNKID   0
#define NIL_GMM_PAGEID   0

Typedefs

typedef GMMALLOCATEPAGESREQPGMMALLOCATEPAGESREQ
typedef GMMBALLOONEDPAGESREQPGMMBALLOONEDPAGESREQ
typedef GMMFREEPAGEDESCPGMMFREEPAGEDESC
typedef GMMFREEPAGESREQPGMMFREEPAGESREQ
typedef GMMINITIALRESERVATIONREQPGMMINITIALRESERVATIONREQ
typedef GMMMAPUNMAPCHUNKREQPGMMMAPUNMAPCHUNKREQ
typedef GMMPAGEDESCPGMMPAGEDESC
typedef GMMUPDATERESERVATIONREQPGMMUPDATERESERVATIONREQ

Enumerations

enum  GMMACCOUNT {
  GMMACCOUNT_INVALID = 0, GMMACCOUNT_BASE, GMMACCOUNT_SHADOW, GMMACCOUNT_FIXED,
  GMMACCOUNT_END, GMMACCOUNT_32BIT_HACK = 0x7fffffff
}
enum  GMMOCPOLICY {
  GMMOCPOLICY_INVALID = 0, GMMOCPOLICY_NO_OC, GMMOCPOLICY_TBD, GMMOCPOLICY_END,
  GMMOCPOLICY_32BIT_HACK = 0x7fffffff
}
enum  GMMPRIORITY {
  GMMPRIORITY_INVALID = 0, GMMPRIORITY_HIGH, GMMPRIORITY_NORMAL, GMMPRIORITY_LOW,
  GMMPRIORITY_END, GMMPRIORITY_32BIT_HACK = 0x7fffffff
}

Functions

 AssertCompileSize (GMMPAGEDESC, 16)
 GMMR0DECL (void) GMMR0Term(void)
 GMMR0DECL (int) GMMR0Init(void)

Variables

uint32_t cBalloonedPages
uint64_t cBasePages
uint64_t uint32_t uint32_t cFixedPages
uint32_t cPages
uint32_t uint32_t cPagesToAlloc
uint32_t uint32_t cPagesToFree
uint32_t cPagesToUpdate
uint64_t uint32_t cShadowPages
uint32_t PGMMPAGEDESC GMMACCOUNT enmAccount
uint64_t uint32_t uint32_t
GMMOCPOLICY 
enmPolicy
uint64_t uint32_t uint32_t
GMMOCPOLICY GMMPRIORITY 
enmPriority
uint32_t uint32_t
PGMMFREEPAGEDESC bool 
fCompleted
uint32_t idChunkMap
uint32_t uint32_t idChunkUnmap
uint32_t uint32_t PGMMPAGEDESC paPages
uint32_t uint32_t PRTR3PTR ppvR3
PGMMINITIALRESERVATIONREQ pReq
RTR3PTR pvR3


Generated by  Doxygen 1.6.0   Back to index