Changeset 97149 in vbox
- Timestamp:
- Oct 14, 2022 7:11:00 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r97148 r97149 916 916 else 917 917 { 918 pVmcsInfo->pbVirtApic = &pVCpu->cpum.GstCtx.hwvirt.vmx.abVirtApicPage[0];919 pVmcsInfo->HCPhysVirtApic = GVMMR0ConvertGVMPtr2HCPhys(pVM, pVmcsInfo->pbVirtApic);920 Assert(pVmcsInfo->HCPhysVirtApic && pVmcsInfo->HCPhysVirtApic != NIL_RTHCPHYS);918 /* These are setup later while marging the nested-guest VMCS. */ 919 Assert(pVmcsInfo->pbVirtApic == NULL); 920 Assert(pVmcsInfo->HCPhysVirtApic == NIL_RTHCPHYS); 921 921 } 922 922 } … … 5716 5716 rc |= VMXWriteVmcs32(VMX_VMCS32_CTRL_PLE_WINDOW, cPleWindowTicks); 5717 5717 } 5718 if (u32ProcCtls & VMX_PROC_CTLS_USE_TPR_SHADOW) 5719 { 5720 rc |= VMXWriteVmcs32(VMX_VMCS32_CTRL_TPR_THRESHOLD, u32TprThreshold); 5718 if (pVmcsInfoNstGst->HCPhysVirtApic != HCPhysVirtApic) 5721 5719 rc |= VMXWriteVmcs64(VMX_VMCS64_CTRL_VIRT_APIC_PAGEADDR_FULL, HCPhysVirtApic); 5722 }5720 rc |= VMXWriteVmcs32(VMX_VMCS32_CTRL_TPR_THRESHOLD, u32TprThreshold); 5723 5721 if (u32ProcCtls2 & VMX_PROC_CTLS2_VIRT_APIC_ACCESS) 5724 5722 rc |= VMXWriteVmcs64(VMX_VMCS64_CTRL_APIC_ACCESSADDR_FULL, HCPhysApicAccess);
Note:
See TracChangeset
for help on using the changeset viewer.