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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/shvvmx.c b/shvvmx.c
index 584f77f..df24586 100644
--- a/shvvmx.c
+++ b/shvvmx.c
@@ -375,7 +375,7 @@ ShvVmxSetupVmcsForVp (
// to inside of ShvVpInitialize.
//
__vmx_vmwrite(GUEST_RSP, context->Rsp);
- __vmx_vmwrite(GUEST_RIP, context->Rip);
+ __vmx_vmwrite(GUEST_RIP, (ULONG_PTR)ShvVpRestoreAfterLaunch);
__vmx_vmwrite(GUEST_RFLAGS, context->EFlags);
//
@@ -464,11 +464,6 @@ ShvVmxLaunchOnVp (
// Initialize the VMCS, both guest and host state.
//
ShvVmxSetupVmcsForVp(VpData);
-
- //
- // Record that VMX is now enabled
- //
- VpData->VmxEnabled = 1;
//
// Launch the VMCS, based on the guest data that was loaded into the