VirtualBox

Ignore:
Timestamp:
Sep 3, 2018 4:10:27 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124803
Message:

VMM/IEM, HM: Nested VMX: bugref:9180 vmlaunch/vmresume bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r73870 r74047  
    916916            pVCpu->cpum.s.Guest.hwvirt.vmx.pVmcsR3 = NULL;
    917917        }
     918        if (pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3)
     919        {
     920            SUPR3PageFreeEx(pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3, VMX_V_VIRT_APIC_PAGES);
     921            pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3 = NULL;
     922        }
    918923    }
    919924}
     
    948953            Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pVmcsR3);
    949954            LogRel(("CPUM%u: Failed to alloc %u pages for the nested-guest's VMCS\n", pVCpu->idCpu, VMX_V_VMCS_PAGES));
     955            break;
     956        }
     957
     958        /*
     959         * Allocate the Virtual-APIC page.
     960         */
     961        Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3);
     962        rc = SUPR3PageAllocEx(VMX_V_VIRT_APIC_PAGES, 0 /* fFlags */, &pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3,
     963                              &pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR0, NULL /* paPages */);
     964        if (RT_FAILURE(rc))
     965        {
     966            Assert(!pVCpu->cpum.s.Guest.hwvirt.vmx.pvVirtApicPageR3);
     967            LogRel(("CPUM%u: Failed to alloc %u pages for the nested-guest's Virtual-APIC page\n", pVCpu->idCpu,
     968                    VMX_V_VIRT_APIC_PAGES));
    950969            break;
    951970        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette