Support non-paging IA32 guest.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Jiewen Yao 2016-10-28 21:36:37 +08:00
parent 58c6e9fa74
commit 06960576d1
1 changed files with 5 additions and 0 deletions

View File

@ -234,5 +234,10 @@ SetVmcsGuestField (
VmWrite64 (VMCS_64_GUEST_IA32_DEBUGCTL_INDEX, AsmReadMsr64 (IA32_DBG_CTL_MSR_INDEX));
VmWrite64 (VMCS_64_GUEST_VMCS_LINK_PTR_INDEX, 0xffffffffffffffff);
if ((mGuestContextCommon.GuestContextPerCpu[mBspIndex].Cr0 & CR0_PG) == 0) {
ASSERT(mGuestContextCommon.GuestContextPerCpu[Index].UnrestrictedGuest);
VmWriteN(VMCS_N_GUEST_CR0_INDEX, VmReadN(VMCS_N_GUEST_CR0_INDEX) & (~CR0_PG));
}
return ;
}