Changeset 45701 in vbox for trunk/include/VBox/vmm/hm.h
- Timestamp:
- Apr 24, 2013 2:21:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm.h
r45618 r45701 40 40 41 41 /** 42 * Query HM state (enabled/disabled)42 * Checks whether HM (VT-x/AMD-V) is being used by this VM. 43 43 * 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. 46 48 * @sa HMIsEnabledNotMacro, HMR3IsEnabled 47 49 * @internal … … 51 53 #else 52 54 # 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) 53 71 #endif 54 72
Note:
See TracChangeset
for help on using the changeset viewer.