VirtualBox

Changeset 45701 in vbox for trunk/include/VBox/vmm/hm.h


Ignore:
Timestamp:
Apr 24, 2013 2:21:09 PM (12 years ago)
Author:
vboxsync
Message:

VMM: SELM and VMM early HM init changes.

File:
1 edited

Legend:

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

    r45618 r45701  
    4040
    4141/**
    42  * Query HM state (enabled/disabled)
     42 * Checks whether HM (VT-x/AMD-V) is being used by this VM.
    4343 *
    44  * @returns 0 - disabled, 1 - enabled
    45  * @param   a_pVM       Pointer to the shared VM structure.
     44 * @retval  @c true if used.
     45 * @retval  @c false if software virtualization (raw-mode) is used.
     46 *
     47 * @param   a_pVM       The cross context VM structure.
    4648 * @sa      HMIsEnabledNotMacro, HMR3IsEnabled
    4749 * @internal
     
    5153#else
    5254# define HMIsEnabled(a_pVM)   ((a_pVM)->fHMEnabled)
     55#endif
     56
     57/**
     58 * Checks whether raw-mode context is required for any purpose.
     59 *
     60 * @retval  @c true if required either by raw-mode itself or by HM for doing
     61 *          switching the cpu to 64-bit mode.
     62 * @retval  @c false if not required.
     63 *
     64 * @param   a_pVM       The cross context VM structure.
     65 * @internal
     66 */
     67#if HC_ARCH_BITS == 64
     68# define HMIsRawModeCtxNeeded(a_pVM)   (!HMIsEnabled(a_pVM))
     69#else
     70# define HMIsRawModeCtxNeeded(a_pVM)   (!HMIsEnabled(a_pVM) || (a_pVM)->fHMNeedRawModeCtx)
    5371#endif
    5472
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