Changeset 38324 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Aug 5, 2011 2:02:53 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73340
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp
r35346 r38324 128 128 } 129 129 if (!gpVM) 130 {131 130 return E_FAIL; 132 } 133 134 EMRAWMODE rawModeFlag = enable ? EMRAW_RING3_DISABLE : EMRAW_RING3_ENABLE; 135 int rcVBox = VMR3ReqCallWait(gpVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, gpVM, rawModeFlag); 136 if (RT_SUCCESS(rcVBox)) 137 return S_OK; 138 139 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", 140 rawModeFlag, rcVBox)); 141 return E_FAIL; 131 132 int rcVBox = EMR3SetExecutionPolicy(gpVM, EMEXECPOLICY_RECOMPILE_RING3, enable); 133 AssertRCReturn(rcVBox, E_FAIL); 134 return S_OK; 142 135 } 143 136 … … 180 173 } 181 174 if (!gpVM) 182 {183 175 return E_FAIL; 184 } 185 186 EMRAWMODE rawModeFlag = enable ? EMRAW_RING0_DISABLE : EMRAW_RING0_ENABLE; 187 int rcVBox = VMR3ReqCallWait(gpVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, gpVM, rawModeFlag); 188 if (RT_SUCCESS(rcVBox)) 189 return S_OK; 190 191 AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", 192 rawModeFlag, rcVBox)); 193 return E_FAIL; 176 177 int rcVBox = EMR3SetExecutionPolicy(gpVM, EMEXECPOLICY_RECOMPILE_RING0, enable); 178 AssertRCReturn(rcVBox, E_FAIL); 179 return S_OK; 194 180 } 195 181
Note:
See TracChangeset
for help on using the changeset viewer.