VirtualBox

Changeset 74485 in vbox for trunk/src


Ignore:
Timestamp:
Sep 27, 2018 3:07:50 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:9180 Fix LogRel calculating number of pages allocated for VMX strutures, assign enmHwvirt.

File:
1 edited

Legend:

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

    r74389 r74485  
    844844    {
    845845        PVMCPU pVCpu = &pVM->aCpus[i];
     846        pVCpu->cpum.s.Guest.hwvirt.enmHwvirt = CPUMHWVIRT_SVM;
    846847
    847848        /*
     
    949950{
    950951    int rc = VINF_SUCCESS;
    951     LogRel(("CPUM: Allocating %u pages for the nested-guest VMCS\n", pVM->cCpus * VMX_V_VMCS_SIZE));
     952    LogRel(("CPUM: Allocating %u pages for the nested-guest VMCS and related structures\n",
     953            pVM->cCpus * (  VMX_V_VMCS_PAGES + VMX_V_VIRT_APIC_PAGES + VMX_V_VMREAD_VMWRITE_BITMAP_PAGES * 2
     954                          + VMX_V_AUTOMSR_AREA_PAGES));
    952955    for (VMCPUID i = 0; i < pVM->cCpus; i++)
    953956    {
    954957        PVMCPU pVCpu = &pVM->aCpus[i];
     958        pVCpu->cpum.s.Guest.hwvirt.vmx.enmHwvirt = CPUMHWVIRT_VMX;
    955959
    956960        /*
Note: See TracChangeset for help on using the changeset viewer.

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