Changeset 49725 in vbox for trunk/include/VBox
- Timestamp:
- Nov 29, 2013 2:03:10 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm.h
r48591 r49725 38 38 39 39 RT_C_DECLS_BEGIN 40 41 /** @def VMCPU_HMCF_CLEAR42 * Clears a HM-context flag for the given VCPU.43 *44 * @param pVCpu Pointer to the VMCPU.45 * @param fFlag The flag to clear.46 */47 #define VMCPU_HMCF_CLEAR(pVCpu, fFlag) ((pVCpu)->hm.s.fContextUseFlags &= ~(fFlag))48 49 /** @def VMCPU_FF_SET50 * Sets a HM-context flag for the given VCPU.51 *52 * @param pVCpu Pointer to the VMCPU.53 * @param fFlag The flag to set.54 */55 #define VMCPU_HMCF_SET(pVCpu, fFlag) ((pVCpu)->hm.s.fContextUseFlags |= (fFlag))56 57 /** @def VMCPU_HMCF_IS_SET58 * Checks if all the flags in the specified HM-context set is pending.59 *60 * @param pVCpu Pointer to the VMCPU.61 * @param fFlag The flag to check.62 */63 #define VMCPU_HMCF_IS_SET(pVCpu, fFlag) (((pVCpu)->hm.s.fContextUseFlags & (fFlag)) == (fFlag))64 65 /** @def VMCPU_HMCF_IS_PENDING66 * Checks if one or more of the flags in the specified HM-context set is67 * pending.68 *69 * @param pVCpu Pointer to the VMCPU.70 * @param fFlags The flags to check for.71 */72 #define VMCPU_HMCF_IS_PENDING(pVCpu, fFlags) RT_BOOL((pVCpu)->hm.s.fContextUseFlags & (fFlags))73 74 /** @def VMCPU_HMCF_IS_PENDING_ONLY75 * Checks if -only- one or more of the specified HM-context flags is pending.76 *77 * @param pVCpu Pointer to the VMCPU.78 * @param fFlags The flags to check for.79 */80 #define VMCPU_HMCF_IS_PENDING_ONLY(pVCpu, fFlags) !RT_BOOL((pVCpu)->hm.s.fContextUseFlags & ~(fFlags))81 82 /** @def VMCPU_HMCF_IS_SET_ONLY83 * Checks if -only- all the flags in the specified HM-context set is pending.84 *85 * @param pVCpu Pointer to the VMCPU.86 * @param fFlags The flags to check for.87 */88 #define VMCPU_HMCF_IS_SET_ONLY(pVCpu, fFlags) ((pVCpu)->hm.s.fContextUseFlags == (fFlags))89 90 /** @def VMCPU_HMCF_RESET_TO91 * Resets the HM-context flags to the specified value.92 *93 * @param pVCpu Pointer to the VMCPU.94 * @param fFlags The new value.95 */96 #define VMCPU_HMCF_RESET_TO(pVCpu, fFlags) ((pVCpu)->hm.s.fContextUseFlags = (fFlags))97 98 /** @def VMCPU_HMCF_VALUE99 * Returns the current HM-context flags value.100 *101 * @param pVCpu Pointer to the VMCPU.102 */103 #define VMCPU_HMCF_VALUE(pVCpu) ((pVCpu)->hm.s.fContextUseFlags)104 105 40 106 41 /**
Note:
See TracChangeset
for help on using the changeset viewer.