VirtualBox

Changeset 80024 in vbox for trunk/include/VBox/vmm/em.h


Ignore:
Timestamp:
Jul 28, 2019 1:30:53 PM (5 years ago)
Author:
vboxsync
Message:

VMM: Kicking out raw-mode (work in progress) - em config. bugref:9517

File:
1 edited

Legend:

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

    r78712 r80024  
    128128/** @}  */
    129129
    130 
    131 /**
    132  * Checks if raw ring-3 execute mode is enabled.
    133  *
    134  * @returns true if enabled.
    135  * @returns false if disabled.
    136  * @param   pVM         The cross context VM structure.
    137  */
    138 #define EMIsRawRing3Enabled(pVM)            (!(pVM)->fRecompileUser)
    139 
    140 /**
    141  * Checks if raw ring-0 execute mode is enabled.
    142  *
    143  * @returns true if enabled.
    144  * @returns false if disabled.
    145  * @param   pVM         The cross context VM structure.
    146  */
    147 #define EMIsRawRing0Enabled(pVM)            (!(pVM)->fRecompileSupervisor)
    148 
    149 #ifdef VBOX_WITH_RAW_RING1
    150 /**
    151  * Checks if raw ring-1 execute mode is enabled.
    152  *
    153  * @returns true if enabled.
    154  * @returns false if disabled.
    155  * @param   pVM         The cross context VM structure.
    156  */
    157 # define EMIsRawRing1Enabled(pVM)           ((pVM)->fRawRing1Enabled)
    158 #else
    159 # define EMIsRawRing1Enabled(pVM)           false
    160 #endif
    161 
    162 /**
    163  * Checks if execution with hardware assisted virtualization is enabled.
    164  *
    165  * @returns true if enabled.
    166  * @returns false if disabled.
    167  * @param   pVM         The cross context VM structure.
    168  */
    169 #define EMIsHwVirtExecutionEnabled(pVM)     (!(pVM)->fRecompileSupervisor && !(pVM)->fRecompileUser)
    170 
    171 /**
    172  * Checks if execution of supervisor code should be done in the
    173  * recompiler or not.
    174  *
    175  * @returns true if enabled.
    176  * @returns false if disabled.
    177  * @param   pVM         The cross context VM structure.
    178  */
    179 #define EMIsSupervisorCodeRecompiled(pVM) ((pVM)->fRecompileSupervisor)
    180 
    181130VMMDECL(void)                   EMSetInhibitInterruptsPC(PVMCPU pVCpu, RTGCUINTPTR PC);
    182131VMMDECL(RTGCUINTPTR)            EMGetInhibitInterruptsPC(PVMCPU pVCpu);
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