VirtualBox

Changeset 5031 in vbox for trunk/include


Ignore:
Timestamp:
Sep 25, 2007 10:27:37 PM (17 years ago)
Author:
vboxsync
Message:

Use GVMMR3CreateVM. the new GVM structure is a ring-0 only VM structure. the old VM structure is the shared ring-0, ring-3 and GC VM structure.

Location:
trunk/include/VBox
Files:
1 added
4 edited

Legend:

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

    r5026 r5031  
    2222#include <VBox/cdefs.h>
    2323#include <VBox/types.h>
     24#include <VBox/sup.h>
    2425
    2526/** @defgroup grp_GVMM  GVMM - The Global VM Manager.
     
    4647#define NIL_GVM_HANDLE 0
    4748
    48 GVMMR0DECL(int)  GVMMR0Init(void);
    49 GVMMR0DECL(void) GVMMR0Term(void);
    50 GVMMR0DECL(int)  GVMMR0RegisterVM(PVM pVM);
    51 GVMMR0DECL(int)  GVMMR0DeregisterVM(PVM pVM);
    52 GVMMR0DECL(PGVM) GVMMR0ByHandle(uint32_t hGVM);
    53 GVMMR0DECL(PVM)  GVMMR0GetVMByEMT(RTNATIVETHREAD hEMT);
    54 GVMMR0DECL(PVM)  GVMMR0GetVMByHandle(uint32_t hGVM);
     49GVMMR0DECL(int)     GVMMR0Init(void);
     50GVMMR0DECL(void)    GVMMR0Term(void);
     51
     52GVMMR0DECL(int)     GVMMR0CreateVM(PSUPDRVSESSION pSession, PVM *ppVM);
     53GVMMR0DECL(int)     GVMMR0CreateVMReq(PSUPVMMR0REQHDR pReqHdr);
     54GVMMR0DECL(int)     GVMMR0DestroyVM(PVM pVM);
     55GVMMR0DECL(int)     GVMMR0AssociateEMTWithVM(PVM pVM);
     56GVMMR0DECL(int)     GVMMR0DisassociateEMTFromVM(PVM pVM);
     57GVMMR0DECL(PGVM)    GVMMR0ByHandle(uint32_t hGVM);
     58GVMMR0DECL(PGVM)    GVMMR0ByVM(PVM pVM);
     59GVMMR0DECL(PVM)     GVMMR0GetVMByHandle(uint32_t hGVM);
     60GVMMR0DECL(PVM)     GVMMR0GetVMByEMT(RTNATIVETHREAD hEMT);
     61
     62/**
     63 * Request packet for calling GVMMR0CreateVM.
     64 */
     65typedef struct GVMMCREATEVMREQ
     66{
     67    /** The request header. */
     68    SUPVMMR0REQHDR  Hdr;
     69    /** The support driver session. (IN) */
     70    PSUPDRVSESSION  pSession;
     71    /** Pointer to the ring-3 mapping of the shared VM structure on return. (OUT) */
     72    PVMR3           pVMR3;
     73    /** Pointer to the ring-0 mapping of the shared VM structure on return. (OUT) */
     74    PVMR0           pVMR0;
     75} GVMMCREATEVMREQ;
     76/** Pointer to a GVMMR0CreateVM request packet. */
     77typedef GVMMCREATEVMREQ *PGVMMCREATEVMREQ;
    5578
    5679
  • trunk/include/VBox/log.h

    r4236 r5031  
    169169    /** EM group. */
    170170    LOG_GROUP_EM,
     171    /** GMM group. */
     172    LOG_GROUP_GMM,
    171173    /** GUI group. */
    172174    LOG_GROUP_GUI,
     175    /** GVMM group. */
     176    LOG_GROUP_GVMM,
    173177    /** HGCM group */
    174178    LOG_GROUP_HGCM,
     
    343347    "DRV_VUSB",     \
    344348    "EM",           \
     349    "GMM",          \
    345350    "GUI",          \
     351    "GVMM",         \
    346352    "HGCM",         \
    347353    "HWACCM",       \
  • trunk/include/VBox/pdmapi.h

    r4071 r5031  
    11/** @file
    22 * PDM - Pluggable Device Manager, Core API.
    3  * 
    4  * The 'Core API' has been put in a different header because everyone 
     3 *
     4 * The 'Core API' has been put in a different header because everyone
    55 * is currently including pdm.h. So, pdm.h is for including all of the
    66 * PDM stuff, while pdmapi.h is for the core stuff.
     
    101101 * @{
    102102 */
     103
     104PDMR3DECL(int)  PDMR3LdrLoadVMMR0(void **ppvOpaque);
     105PDMR3DECL(void) PDMR3LdrLoadVMMR0Part2(PVM pVM, void *pvOpaque);
    103106
    104107/**
  • trunk/include/VBox/vmm.h

    r4970 r5031  
    356356    VMMR0_DO_NOP = SUP_VMMR0_DO_NOP,
    357357
     358    /** Ask GVMM to create a new VM. */
     359    VMMR0_DO_GVMM_CREATE_VM,
     360    /** Ask GVMM to destroy the VM. */
     361    VMMR0_DO_GVMM_DESTROY_VM,
    358362    /** Call VMMR0 Per VM Init. */
    359363    VMMR0_DO_VMMR0_INIT,
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