VirtualBox

Changeset 45485 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Apr 11, 2013 2:46:04 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84947
Message:
  • *: Where possible, drop the #ifdef VBOX_WITH_RAW_RING1 when EMIsRawRing1Enabled is used.
  • SELM: Don't shadow TSS.esp1/ss1 unless ring-1 compression is enabled (also fixed a log statement there).
  • SELM: selmGuestToShadowDesc should not push ring-1 selectors into ring-2 unless EMIsRawRing1Enabled() holds true.
  • REM: Don't set CPU_INTERRUPT_EXTERNAL_EXIT in helper_ltr() for now.
Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r45291 r45485  
    491491
    492492
    493 /**
    494  * Get the current privilege level of the guest.
    495  *
    496  * @returns CPL
    497  * @param   pVCpu       The current virtual CPU.
    498  * @param   pRegFrame   Pointer to the register frame.
    499  */
    500493VMMDECL(uint32_t)       CPUMRCGetGuestCPL(PVMCPU pVCpu, PCPUMCTXCORE pRegFrame);
    501 
    502494#ifdef VBOX_WITH_RAW_RING1
    503 /**
    504  * Transforms the guest CPU state to raw-ring mode.
    505  *
    506  * This function will change the any of the cs and ss register with DPL=0 to DPL=1.
    507  *
    508  * @returns VBox status. (recompiler failure)
    509  * @param   pVCpu       Pointer to the VMCPU.
    510  * @param   pCtxCore    The context core (for trap usage).
    511  * @see     @ref pg_raw
    512  */
    513 VMMDECL(void)         CPUMRCRecheckRawState(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore);
     495VMMDECL(void)           CPUMRCRecheckRawState(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore);
    514496#endif
    515497
  • trunk/include/VBox/vmm/em.h

    r45276 r45485  
    122122 * @param   pVM         The VM to operate on.
    123123 */
    124 #define EMIsRawRing3Enabled(pVM) (!(pVM)->fRecompileUser)
     124#define EMIsRawRing3Enabled(pVM)            (!(pVM)->fRecompileUser)
    125125
    126126/**
     
    131131 * @param   pVM         The VM to operate on.
    132132 */
    133 #define EMIsRawRing0Enabled(pVM) (!(pVM)->fRecompileSupervisor)
     133#define EMIsRawRing0Enabled(pVM)            (!(pVM)->fRecompileSupervisor)
    134134
    135135#ifdef VBOX_WITH_RAW_RING1
     
    141141 * @param   pVM         The VM to operate on.
    142142 */
    143 #define EMIsRawRing1Enabled(pVM) ((pVM)->fRawRing1Enabled)
     143# define EMIsRawRing1Enabled(pVM)          ((pVM)->fRawRing1Enabled)
    144144#else
    145 #define EMIsRawRing1Enabled(pVM) false
     145# define EMIsRawRing1Enabled(pVM)          false
    146146#endif
    147147
     
    153153 * @param   pVM         The VM to operate on.
    154154 */
    155 #define EMIsHwVirtExecutionEnabled(pVM) (!(pVM)->fRecompileSupervisor && !(pVM)->fRecompileUser)
     155#define EMIsHwVirtExecutionEnabled(pVM)     (!(pVM)->fRecompileSupervisor && !(pVM)->fRecompileUser)
    156156
    157157/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette