VirtualBox

Changeset 67983 in vbox


Ignore:
Timestamp:
Jul 16, 2017 2:39:47 PM (7 years ago)
Author:
vboxsync
Message:

VMMR0OPERATION: Spread the enum values out so we can safely add new ones without worrying about temporary effects of skews. Hope the compilers doesn't generate too terrible switch code now...

File:
1 edited

Legend:

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

    r67955 r67983  
    367367
    368368    /** Ask the GVMM to create a new VM. */
    369     VMMR0_DO_GVMM_CREATE_VM,
     369    VMMR0_DO_GVMM_CREATE_VM = 32,
    370370    /** Ask the GVMM to destroy the VM. */
    371371    VMMR0_DO_GVMM_DESTROY_VM,
     372    /** Call GVMMR0RegisterVCpu(). */
     373    VMMR0_DO_GVMM_REGISTER_VMCPU,
     374    /** Call GVMMR0DeregisterVCpu(). */
     375    VMMR0_DO_GVMM_DEREGISTER_VMCPU,
    372376    /** Call GVMMR0SchedHalt(). */
    373377    VMMR0_DO_GVMM_SCHED_HALT,
     
    384388    /** Call GVMMR0ResetStatistics(). */
    385389    VMMR0_DO_GVMM_RESET_STATISTICS,
    386     /** Call GVMMR0RegisterVCpu(). */
    387     VMMR0_DO_GVMM_REGISTER_VMCPU,
    388390
    389391    /** Call VMMR0 Per VM Init. */
    390     VMMR0_DO_VMMR0_INIT,
     392    VMMR0_DO_VMMR0_INIT = 64,
    391393    /** Call VMMR0 Per VM Termination. */
    392394    VMMR0_DO_VMMR0_TERM,
     395
    393396    /** Setup the hardware accelerated raw-mode session. */
    394     VMMR0_DO_HM_SETUP_VM,
     397    VMMR0_DO_HM_SETUP_VM = 128,
    395398    /** Attempt to enable or disable hardware accelerated raw-mode. */
    396399    VMMR0_DO_HM_ENABLE,
    397     /** Calls function in the hypervisor.
    398      * The caller must setup the hypervisor context so the call will be performed.
    399      * The difference between VMMR0_DO_RUN_GC and this one is the handling of
    400      * the return GC code. The return code will not be interpreted by this operation.
    401      */
    402     VMMR0_DO_CALL_HYPERVISOR,
    403400
    404401    /** Call PGMR0PhysAllocateHandyPages(). */
    405     VMMR0_DO_PGM_ALLOCATE_HANDY_PAGES,
     402    VMMR0_DO_PGM_ALLOCATE_HANDY_PAGES = 192,
    406403    /** Call PGMR0PhysFlushHandyPages(). */
    407404    VMMR0_DO_PGM_FLUSH_HANDY_PAGES,
     
    412409
    413410    /** Call GMMR0InitialReservation(). */
    414     VMMR0_DO_GMM_INITIAL_RESERVATION,
     411    VMMR0_DO_GMM_INITIAL_RESERVATION = 256,
    415412    /** Call GMMR0UpdateReservation(). */
    416413    VMMR0_DO_GMM_UPDATE_RESERVATION,
     
    446443    VMMR0_DO_GMM_RESET_STATISTICS,
    447444
     445    /** Call PDMR0DriverCallReqHandler. */
     446    VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER = 320,
     447    /** Call PDMR0DeviceCallReqHandler. */
     448    VMMR0_DO_PDM_DEVICE_CALL_REQ_HANDLER,
     449
     450    /** Calls function in the hypervisor.
     451     * The caller must setup the hypervisor context so the call will be performed.
     452     * The difference between VMMR0_DO_RUN_GC and this one is the handling of
     453     * the return GC code. The return code will not be interpreted by this operation.
     454     */
     455    VMMR0_DO_CALL_HYPERVISOR = 384,
     456
    448457    /** Set a GVMM or GMM configuration value. */
    449     VMMR0_DO_GCFGM_SET_VALUE,
     458    VMMR0_DO_GCFGM_SET_VALUE = 400,
    450459    /** Query a GVMM or GMM configuration value. */
    451460    VMMR0_DO_GCFGM_QUERY_VALUE,
    452461
    453     /** Call PDMR0DriverCallReqHandler. */
    454     VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER,
    455     /** Call PDMR0DeviceCallReqHandler. */
    456     VMMR0_DO_PDM_DEVICE_CALL_REQ_HANDLER,
    457 
    458462    /** The start of the R0 service operations. */
    459     VMMR0_DO_SRV_START,
     463    VMMR0_DO_SRV_START = 448,
    460464    /** Call IntNetR0Open(). */
    461465    VMMR0_DO_INTNET_OPEN,
     
    478482
    479483    /** Forward call to the PCI driver */
    480     VMMR0_DO_PCIRAW_REQ,
     484    VMMR0_DO_PCIRAW_REQ = 512,
    481485
    482486    /** The end of the R0 service operations. */
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