VirtualBox

Changeset 19360 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 5, 2009 10:14:15 AM (16 years ago)
Author:
vboxsync
Message:

Split up GVM and introduced GVMCPU.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r8155 r19360  
    3636#include <iprt/thread.h>
    3737
     38/** @defgroup grp_gvm   GVMCPU - The Global VMCPU Data
     39 * @{
     40 */
     41
     42typedef struct GVMCPU
     43{
     44    /* VCPU id (0 - (pVM->cCPUs - 1) */
     45    uint32_t        idCpu;
     46
     47    /** The GVMM per vcpu data. */
     48    struct
     49    {
     50#ifdef ___GVMMR0Internal_h
     51        struct GVMMPERVCPU  s;
     52#endif
     53        uint8_t             padding[64];
     54    } gvmm;
     55} GVMCPU;
     56/** Pointer to the GVMCPU data. */
     57typedef GVMCPU *PGVMCPU;
     58
     59/** @} */
    3860
    3961/** @defgroup grp_gvm   GVM - The Global VM Data
     
    6082    /** The ring-0 mapping of the VM structure. */
    6183    PVM             pVM;
     84    /** Number of VCPUs (same as pVM->cCPUs) */
     85    uint32_t        cCPUs;
     86    uint32_t        padding;
    6287
    6388    /** The GVMM per vm data. */
     
    79104    } gmm;
    80105
     106    /** GVMCPU array for the configured number of virtual CPUs. */
     107    GVMCPU          aCpus[1];
    81108} GVM;
    82109
  • trunk/include/VBox/gvmm.h

    r14811 r19360  
    135135GVMMR0DECL(PVM)     GVMMR0GetVMByHandle(uint32_t hGVM);
    136136GVMMR0DECL(PVM)     GVMMR0GetVMByEMT(RTNATIVETHREAD hEMT);
    137 GVMMR0DECL(int)     GVMMR0SchedHalt(PVM pVM, uint64_t u64ExpireGipTime);
    138 GVMMR0DECL(int)     GVMMR0SchedWakeUp(PVM pVM);
     137GVMMR0DECL(int)     GVMMR0SchedHalt(PVM pVM, unsigned idCpu, uint64_t u64ExpireGipTime);
     138GVMMR0DECL(int)     GVMMR0SchedWakeUp(PVM pVM, unsigned idCpu);
    139139GVMMR0DECL(int)     GVMMR0SchedPoll(PVM pVM, bool fYield);
    140140GVMMR0DECL(int)     GVMMR0QueryStatistics(PGVMMSTATS pStats, PSUPDRVSESSION pSession, PVM pVM);
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