diff options
author | ionescu007 <aionescu+git@gmail.com> | 2016-09-03 19:05:42 +0300 |
---|---|---|
committer | ionescu007 <aionescu+git@gmail.com> | 2016-09-03 19:05:42 +0300 |
commit | f5dd1af02f22e2caf564dea4705bce2d42167061 (patch) | |
tree | 0ed56e8c5919731fb3dfa70b6d7a922bbcfb4995 /shvvp.c | |
parent | dfd4909816fc06841cffc86d1c2170e5cd68bfbd (diff) |
Last fixes. Now builds/works in UEFI with a shared code base.
Diffstat (limited to 'shvvp.c')
-rw-r--r-- | shvvp.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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; } |