VirtualBox

Ignore:
Timestamp:
Mar 19, 2013 4:01:32 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: HM old-code segregation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.h

    r44528 r45091  
    135135
    136136/**
     137 * Does Ring-0 global VT-x initialization.
     138 *
     139 * @returns VBox status code.
     140 * @param   pVM         Pointer to the VM.
     141 */
     142VMMR0DECL(int) VMXR0GlobalInit(void);
     143
     144/**
     145 * Does Ring-0 global VT-x termination.
     146 *
     147 * @returns VBox status code.
     148 * @param   pVM         Pointer to the VM.
     149 */
     150VMMR0DECL(void) VMXR0GlobalTerm(void);
     151
     152/**
    137153 * Does Ring-0 per VM VT-x initialization.
    138154 *
     
    299315#endif
    300316
    301 /**
    302  * Return value of cached VMCS read for performance reasons (Darwin) and for
    303  * running 64 bits guests on 32-bit hosts.
    304  *
    305  * @param   idxField    VMCS field index.
    306  * @param   pVal        Value pointer (out).
    307  */
    308 #ifdef VMX_USE_CACHED_VMCS_ACCESSES
    309 # define VMXReadCachedVmcs(idxField, pVal)              VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal)
     317#ifdef VBOX_WITH_OLD_VTX_CODE
     318# ifdef VMX_USE_CACHED_VMCS_ACCESSES
     319#  define VMXReadCachedVmcs(idxField, pVal)              VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal)
     320# else
     321#  define VMXReadCachedVmcs                              VMXReadVmcsField
     322# endif
     323#  define VMXReadVmcs                                    VMXReadVmcsField
    310324#else
    311 # define VMXReadCachedVmcs(idxField, pVal)              VMXReadVmcs(idxField, pVal)
     325# if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     326# define VMXReadVmcsHstN                                 VMXReadVmcs64
     327# define VMXReadVmcsGstN                                 VMXReadVmcs64
     328# else
     329# define VMXReadVmcsHstN                                 VMXReadVmcs32
     330# define VMXReadVmcsGstN(idxField, pVal)                 VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal)
     331# endif
    312332#endif
    313333
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