VirtualBox

Changeset 79227 in vbox


Ignore:
Timestamp:
Jun 19, 2019 6:09:44 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Comment that hmR0VmxSetupVmcsMiscCtls must be called after setting up the secondary processor-based VM-execution controls, as it sets up the VMCS link pointer if VMCS shadowing is set. Nits.

File:
1 edited

Legend:

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

    r79226 r79227  
    36333633#endif
    36343634
    3635     /* Virtualize-APIC accesses if supported by the CPU. The virtual-APIC page is where the TPR shadow resides. */
     3635    /* Virtualize-APIC accesses if supported by the CPU. The virtual-APIC page is
     3636       where the TPR shadow resides. */
    36363637    /** @todo VIRT_X2APIC support, it's mutually exclusive with this. So must be
    36373638     *        done dynamically. */
     
    37933794 * @param   pVCpu           The cross context virtual CPU structure.
    37943795 * @param   pVmcsInfo       The VMCS info. object.
     3796 *
     3797 * @remarks Must be called after secondary processor-based VM-execution controls
     3798 *          have been initialized!
    37953799 */
    37963800static int hmR0VmxSetupVmcsMiscCtls(PVMCPU pVCpu, PVMXVMCSINFO pVmcsInfo)
    37973801{
    3798     /* Set the auto-load/store MSR area addresses in the VMCS. */
    3799     int rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo);
     3802    /* Set the VMCS link pointer in the VMCS. */
     3803    int rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo);
    38003804    if (RT_SUCCESS(rc))
    38013805    {
    3802         /* Set the VMCS link pointer in the VMCS. */
    3803         rc = hmR0VmxSetupVmcsLinkPtr(pVCpu, pVmcsInfo);
     3806        /* Set the auto-load/store MSR area addresses in the VMCS. */
     3807        rc = hmR0VmxSetupVmcsAutoLoadStoreMsrAddrs(pVCpu, pVmcsInfo);
    38043808        if (RT_SUCCESS(rc))
    38053809        {
     
    38183822        }
    38193823        else
    3820             LogRelFunc(("Failed to initialize VMCS link pointer. rc=%Rrc\n", rc));
     3824            LogRelFunc(("Failed to initialize VMCS auto-load/store MSR addresses. rc=%Rrc\n", rc));
    38213825    }
    38223826    else
    3823         LogRelFunc(("Failed to initialize VMCS auto-load/store MSR addresses. rc=%Rrc\n", rc));
     3827        LogRelFunc(("Failed to initialize VMCS link pointer. rc=%Rrc\n", rc));
    38243828    return rc;
    38253829}
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