mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-06-30 16:21:53 +00:00
Fix compilation
This commit is contained in:
@ -296,7 +296,10 @@ void enter_root_mode_on_cpu(vmx::state& vm_state)
|
||||
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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user