VirtualBox

Changeset 96825 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Sep 22, 2022 6:02:40 AM (2 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:10092 Removed unnecessary zero'ing of already zero'ed virtual-VMX CPU-state on VM init.

File:
1 edited

Legend:

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

    r96407 r96825  
    11031103        AssertCompile(sizeof(pCtx->hwvirt.vmx.abVirtApicPage) == VMX_V_VIRT_APIC_PAGES * X86_PAGE_SIZE);
    11041104        AssertCompile(sizeof(pCtx->hwvirt.vmx.abVirtApicPage) == VMX_V_VIRT_APIC_SIZE);
    1105 
    1106         /*
    1107          * Zero out all allocated pages (should compress well for saved-state).
    1108          */
    1109         /** @todo r=bird: this is and always was unnecessary - they are already zeroed. */
    1110         RT_ZERO(pCtx->hwvirt.vmx.Vmcs);
    1111         RT_ZERO(pCtx->hwvirt.vmx.ShadowVmcs);
    1112         RT_ZERO(pCtx->hwvirt.vmx.abVmreadBitmap);
    1113         RT_ZERO(pCtx->hwvirt.vmx.abVmwriteBitmap);
    1114         RT_ZERO(pCtx->hwvirt.vmx.aEntryMsrLoadArea);
    1115         RT_ZERO(pCtx->hwvirt.vmx.aExitMsrStoreArea);
    1116         RT_ZERO(pCtx->hwvirt.vmx.aExitMsrLoadArea);
    1117         RT_ZERO(pCtx->hwvirt.vmx.abMsrBitmap);
    1118         RT_ZERO(pCtx->hwvirt.vmx.abIoBitmap);
    1119         RT_ZERO(pCtx->hwvirt.vmx.abVirtApicPage);
    11201105    }
    11211106}
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