Changeset 48130 in vbox for trunk/src/VBox/VMM/include/HMInternal.h
- Timestamp:
- Aug 28, 2013 5:14:38 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88510
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/HMInternal.h
r48044 r48130 136 136 | HM_CHANGED_GUEST_DEBUG) 137 137 /** @} */ 138 139 /** Disables preemption if required. */140 # define HM_DISABLE_PREEMPT_IF_NEEDED() \141 RTTHREADPREEMPTSTATE PreemptStateInternal = RTTHREADPREEMPTSTATE_INITIALIZER; \142 bool fPreemptDisabledInternal = false; \143 if (RTThreadPreemptIsEnabled(NIL_RTTHREAD)) \144 { \145 Assert(VMMR0ThreadCtxHooksAreRegistered(pVCpu)); \146 RTThreadPreemptDisable(&PreemptStateInternal); \147 fPreemptDisabledInternal = true; \148 }149 150 /** Restores preemption if previously disabled by HM_DISABLE_PREEMPT(). */151 # define HM_RESTORE_PREEMPT_IF_NEEDED() \152 do \153 { \154 if (fPreemptDisabledInternal) \155 RTThreadPreemptRestore(&PreemptStateInternal); \156 } while (0)157 138 158 139 /** Maximum number of page flushes we are willing to remember before considering a full TLB flush. */
Note:
See TracChangeset
for help on using the changeset viewer.