Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shvvmx.c')
-rw-r--r--shvvmx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shvvmx.c b/shvvmx.c
index 4afd298..7030453 100644
--- a/shvvmx.c
+++ b/shvvmx.c
@@ -257,12 +257,13 @@ ShvVmxEnterRootModeOnVp (
{
return FALSE;
}
-
+
//
// Clear the state of the VMCS, setting it to Inactive
//
if (__vmx_vmclear(&VpData->VmcsPhysicalAddress))
{
+ __vmx_off();
return FALSE;
}
@@ -271,6 +272,7 @@ ShvVmxEnterRootModeOnVp (
//
if (__vmx_vmptrld(&VpData->VmcsPhysicalAddress))
{
+ __vmx_off();
return FALSE;
}