Changeset 77358 in vbox for trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
- Timestamp:
- Feb 19, 2019 11:02:39 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h
r77319 r77358 165 165 /** Enables/disables IEM-only EM execution policy in and from ring-3. */ 166 166 # if defined(VBOX_WITH_NESTED_HWVIRT_ONLY_IN_IEM) && defined(IN_RING3) 167 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(a_pVCpu, a_pszLogPrefix, a_rc Ret) \167 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(a_pVCpu, a_pszLogPrefix, a_rcStrictRet) \ 168 168 do { \ 169 169 Log(("%s: Enabling IEM-only EM execution policy!\n", (a_pszLogPrefix))); \ 170 return EMR3SetExecutionPolicy((a_pVCpu)->CTX_SUFF(pVM)->pUVM, EMEXECPOLICY_IEM_ALL, true); \ 170 int rcSched = EMR3SetExecutionPolicy((a_pVCpu)->CTX_SUFF(pVM)->pUVM, EMEXECPOLICY_IEM_ALL, true); \ 171 if (rcSched != VINF_SUCCESS) \ 172 iemSetPassUpStatus(pVCpu, rcSched); \ 173 return (a_rcStrictRet); \ 171 174 } while (0) 172 175 173 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_DISABLE_RET(a_pVCpu, a_pszLogPrefix, a_rc Ret) \176 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_DISABLE_RET(a_pVCpu, a_pszLogPrefix, a_rcStrictRet) \ 174 177 do { \ 175 178 Log(("%s: Disabling IEM-only EM execution policy!\n", (a_pszLogPrefix))); \ 176 return EMR3SetExecutionPolicy((a_pVCpu)->CTX_SUFF(pVM)->pUVM, EMEXECPOLICY_IEM_ALL, false); \ 179 int rcSched = EMR3SetExecutionPolicy((a_pVCpu)->CTX_SUFF(pVM)->pUVM, EMEXECPOLICY_IEM_ALL, false); \ 180 if (rcSched != VINF_SUCCESS) \ 181 iemSetPassUpStatus(pVCpu, rcSched); \ 182 return (a_rcStrictRet); \ 177 183 } while (0) 178 184 # else 179 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(a_pVCpu, a_pszLogPrefix, a_rc Ret) do { return (a_rcRet); } while (0)180 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_DISABLE_RET(a_pVCpu, a_pszLogPrefix, a_rc Ret) do { return (a_rcRet); } while (0)185 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_ENABLE_RET(a_pVCpu, a_pszLogPrefix, a_rcStrictRet) do { return (a_rcRet); } while (0) 186 # define IEM_VMX_R3_EXECPOLICY_IEM_ALL_DISABLE_RET(a_pVCpu, a_pszLogPrefix, a_rcStrictRet) do { return (a_rcRet); } while (0) 181 187 # endif 182 188
Note:
See TracChangeset
for help on using the changeset viewer.