VirtualBox

Changeset 46472 in vbox


Ignore:
Timestamp:
Jun 10, 2013 3:19:44 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86315
Message:

VMM/HMVMXR0: Skip redundant VMWRITES during VM startup.

File:
1 edited

Legend:

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

    r46469 r46472  
    18401840    AssertPtr(pVCpu);
    18411841
    1842     /** @todo Shouldn't we able to avoid initializing with 0? */
    18431842    int rc = VERR_GENERAL_FAILURE;
    18441843
     1844    /* All fields are zero-initialized during allocation; but don't remove the commented block below. */
     1845#if 0
    18451846    /* All CR3 accesses cause VM-exits. Later we optimize CR3 accesses (see hmR0VmxLoadGuestControlRegs())*/
    18461847    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_CR3_TARGET_COUNT, 0);           AssertRCReturn(rc, rc);
     
    18641865    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_EXIT_MSR_STORE_COUNT, 0);       AssertRCReturn(rc, rc);
    18651866    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_EXIT_MSR_LOAD_COUNT,  0);       AssertRCReturn(rc, rc);
     1867#endif
    18661868
    18671869#ifdef VBOX_WITH_AUTO_MSR_LOAD_RESTORE
     
    18841886    AssertRCReturn(rc, rc);
    18851887
     1888    /* All fields are zero-initialized during allocation; but don't remove the commented block below. */
     1889#if 0
    18861890    /* Setup debug controls */
    18871891    rc = VMXWriteVmcs64(VMX_VMCS64_GUEST_DEBUGCTL_FULL, 0);        /** @todo We don't support IA32_DEBUGCTL MSR. Should we? */
     
    18891893    rc = VMXWriteVmcs32(VMX_VMCS_GUEST_PENDING_DEBUG_EXCEPTIONS, 0);
    18901894    AssertRCReturn(rc, rc);
     1895#endif
     1896
    18911897    return rc;
    18921898}
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