Changeset 49755 in vbox for trunk/include/VBox
- Timestamp:
- Dec 3, 2013 2:09:51 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91060
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r49701 r49755 53 53 * @{ 54 54 */ 55 56 /** @def HMVMXCPU_GST_SET_UPDATED 57 * Sets a guest-state-updated flag. 58 * 59 * @param pVCpu Pointer to the VMCPU. 60 * @param fFlag The flag to set. 61 */ 62 #define HMVMXCPU_GST_SET_UPDATED(pVCpu, fFlag) (ASMAtomicUoOrU32(&(pVCpu)->hm.s.vmx.fUpdatedGuestState, (fFlag))) 63 64 /** @def HMVMXCPU_GST_IS_SET 65 * Checks if all the flags in the specified guest-state-updated set is pending. 66 * 67 * @param pVCpu Pointer to the VMCPU. 68 * @param fFlag The flag to check. 69 */ 70 #define HMVMXCPU_GST_IS_SET(pVCpu, fFlag) ((ASMAtomicUoReadU32(&(pVCpu)->hm.s.vmx.fUpdatedGuestState) & (fFlag)) == (fFlag)) 71 72 /** @def HMVMXCPU_GST_IS_UPDATED 73 * Checks if one or more of the flags in the specified guest-state-updated set 74 * is updated. 75 * 76 * @param pVCpu Pointer to the VMCPU. 77 * @param fFlags The flags to check for. 78 */ 79 #define HMVMXCPU_GST_IS_UPDATED(pVCpu, fFlags) RT_BOOL(ASMAtomicUoReadU32(&(pVCpu)->hm.s.vmx.fUpdatedGuestState) & (fFlags)) 80 81 /** @def HMVMXCPU_GST_RESET_TO 82 * Resets the guest-state-updated flags to the specified value. 83 * 84 * @param pVCpu Pointer to the VMCPU. 85 * @param fFlags The new value. 86 */ 87 #define HMVMXCPU_GST_RESET_TO(pVCpu, fFlags) (ASMAtomicUoWriteU32(&(pVCpu)->hm.s.vmx.fUpdatedGuestState, (fFlags))) 88 89 /** @def HMVMXCPU_GST_VALUE 90 * Returns the current guest-state-updated flags value. 91 * 92 * @param pVCpu Pointer to the VMCPU. 93 */ 94 #define HMVMXCPU_GST_VALUE(pVCpu) (ASMAtomicUoReadU32(&(pVCpu)->hm.s.vmx.fUpdatedGuestState)) 55 95 56 96 /** @name Host-state restoration flags.
Note:
See TracChangeset
for help on using the changeset viewer.