mirror of
https://github.com/momo5502/hypervisor.git
synced 2026-10-18 09:03:30 +00:00
Fix compilation
This commit is contained in:
1 parent
5c2886fea0
commit
42ec6413c9
1 file changed
+4
-1
@@ -296,7 +296,10 @@ void enter_root_mode_on_cpu(vmx::state& vm_state)
|
|||||||
throw std::runtime_error("Failed to execute vmx_on");
|
throw std::runtime_error("Failed to execute vmx_on");
|
||||||
}
|
}
|
||||||
|
|
||||||
auto destructor = utils::finally(__vmx_off);
|
auto destructor = utils::finally([]
|
||||||
|
{
|
||||||
|
__vmx_off();
|
||||||
|
});
|
||||||
|
|
||||||
if (__vmx_vmclear(&launch_context->vmcs_physical_address))
|
if (__vmx_vmclear(&launch_context->vmcs_physical_address))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user