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:
authorionescu007 <aionescu+git@gmail.com>2016-09-03 19:05:42 +0300
committerionescu007 <aionescu+git@gmail.com>2016-09-03 19:05:42 +0300
commitf5dd1af02f22e2caf564dea4705bce2d42167061 (patch)
tree0ed56e8c5919731fb3dfa70b6d7a922bbcfb4995 /shvvp.c
parentdfd4909816fc06841cffc86d1c2170e5cd68bfbd (diff)
Last fixes. Now builds/works in UEFI with a shared code base.
Diffstat (limited to 'shvvp.c')
-rw-r--r--shvvp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/shvvp.c b/shvvp.c
index 8c0a100..1b34069 100644
--- a/shvvp.c
+++ b/shvvp.c
@@ -114,10 +114,16 @@ ShvVpInitialize (
_In_ PSHV_VP_DATA Data
)
{
+ INT32 status;
+
//
// Prepare any OS-specific CPU data
//
- ShvOsPrepareProcessor(Data);
+ status = ShvOsPrepareProcessor(Data);
+ if (status != SHV_STATUS_SUCCESS)
+ {
+ return status;
+ }
// Read the special control registers for this processor
// Note: KeSaveStateForHibernate(&Data->HostState) can be used as a Windows
@@ -140,11 +146,11 @@ ShvVpInitialize (
// If the AC bit is not set in EFLAGS, it means that we have not yet
// launched the VM. Attempt to initialize VMX on this processor.
//
- return ShvVmxLaunchOnVp(Data);
+ status = ShvVmxLaunchOnVp(Data);
}
//
- // IF we got here, the hypervisor is running :-)
+ // If we got here, the hypervisor is running :-)
//
return SHV_STATUS_SUCCESS;
}