diff options
author | Michael Meskes <meskes@debian.org> | 2011-08-24 13:18:05 +0200 |
---|---|---|
committer | Michael Meskes <meskes@debian.org> | 2011-08-24 13:18:05 +0200 |
commit | f8fd93b0b6b13ba94584bb61c1efd1a761f438c9 (patch) | |
tree | 7bf52d89d95d605721fb5515d467036e2dbc7b96 /src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp | |
parent | cba113ca2826bc4814be2f69a7704c865a37d4ea (diff) | |
download | virtualbox-f8fd93b0b6b13ba94584bb61c1efd1a761f438c9.tar.gz |
Imported Upstream version 4.1.2-dfsgupstream/4.1.2-dfsg
Diffstat (limited to 'src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp')
-rw-r--r-- | src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp b/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp index 9ece87468..5f0c6ff04 100644 --- a/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp +++ b/src/VBox/Frontends/VBoxBFE/MachineDebuggerImpl.cpp @@ -127,18 +127,11 @@ STDMETHODIMP MachineDebugger::COMSETTER(RecompileUser)(BOOL enable) } } if (!gpVM) - { return E_FAIL; - } - EMRAWMODE rawModeFlag = enable ? EMRAW_RING3_DISABLE : EMRAW_RING3_ENABLE; - int rcVBox = VMR3ReqCallWait(gpVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, gpVM, rawModeFlag); - if (RT_SUCCESS(rcVBox)) - return S_OK; - - AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", - rawModeFlag, rcVBox)); - return E_FAIL; + int rcVBox = EMR3SetExecutionPolicy(gpVM, EMEXECPOLICY_RECOMPILE_RING3, enable); + AssertRCReturn(rcVBox, E_FAIL); + return S_OK; } /** @@ -179,18 +172,11 @@ STDMETHODIMP MachineDebugger::COMSETTER(RecompileSupervisor)(BOOL enable) } } if (!gpVM) - { return E_FAIL; - } - EMRAWMODE rawModeFlag = enable ? EMRAW_RING0_DISABLE : EMRAW_RING0_ENABLE; - int rcVBox = VMR3ReqCallWait(gpVM, VMCPUID_ANY, (PFNRT)EMR3RawSetMode, 2, gpVM, rawModeFlag); - if (RT_SUCCESS(rcVBox)) - return S_OK; - - AssertMsgFailed(("Could not set raw mode flags to %d, rcVBox = %Rrc\n", - rawModeFlag, rcVBox)); - return E_FAIL; + int rcVBox = EMR3SetExecutionPolicy(gpVM, EMEXECPOLICY_RECOMPILE_RING0, enable); + AssertRCReturn(rcVBox, E_FAIL); + return S_OK; } /** |