VirtualBox

Changeset 79085 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 11, 2019 10:47:36 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131245
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Don't need to pre-initialize the nested-guest MSR bitmap as we initialize it while merging MSR bitmaps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r79084 r79085  
    14021402             * The guest visible nested-guest MSR bitmap needs to remain unchanged.
    14031403             * Hence, allocate a separate MSR bitmap for the guest and nested-guest.
     1404             * We also don't need to re-initialize the nested-guest MSR bitmap here as
     1405             * we do that later while merging VMCS.
    14041406             */
    14051407            if (pVM->hm.s.vmx.Msrs.ProcCtls.n.allowed1 & VMX_PROC_CTLS_USE_MSR_BITMAPS)
    14061408            {
    14071409                rc = hmR0VmxPageAllocZ(&pVmcsInfo->hMemObjMsrBitmap, &pVmcsInfo->pvMsrBitmap, &pVmcsInfo->HCPhysMsrBitmap);
    1408                 if (RT_SUCCESS(rc))
     1410                if (   RT_SUCCESS(rc)
     1411                    && fIsNstGstVmcs)
    14091412                    ASMMemFill32(pVmcsInfo->pvMsrBitmap, X86_PAGE_4K_SIZE, UINT32_C(0xffffffff));
    14101413            }
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