mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 13:42:55 +00:00
Fix compilation
This commit is contained in:
parent
5c2886fea0
commit
42ec6413c9
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user