VirtualBox

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


Ignore:
Timestamp:
Feb 3, 2021 11:21:28 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142585
Message:

VMM/HMVMX: Moved/copy last branch stuff from HM::vmxUse to HMR0PERVM::vmx. bugref:9217

File:
1 edited

Legend:

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

    r87557 r87558  
    373373     * Whether to enable LBR for the guest. This is disabled by default as it's only
    374374     * useful while debugging and enabling it causes a noticeable performance hit. */
    375     rc = CFGMR3QueryBoolDef(pCfgHm, "VmxLbr", &pVM->hm.s.vmx.fLbr, false);
     375    rc = CFGMR3QueryBoolDef(pCfgHm, "VmxLbr", &pVM->hm.s.vmx.fLbrCfg, false);
    376376    AssertRCReturn(rc, rc);
    377377
     
    33333333    if (HMIsVmxActive(pVM))
    33343334    {
    3335         if (pVM->hm.s.vmx.fLbr)
     3335        if (pVM->hm.s.vmx.fLbrCfg)
    33363336        {
    33373337            PCVMXVMCSINFOSHARED pVmcsInfoShared = hmGetVmxActiveVmcsInfoShared(pVCpu);
    3338             uint32_t const      cLbrStack       = pVM->hm.s.vmx.idLbrFromIpMsrLast - pVM->hm.s.vmx.idLbrFromIpMsrFirst + 1;
     3338            uint32_t const      cLbrStack       = pVM->hm.s.vmx.idLbrFromIpMsrLastForRing3 - pVM->hm.s.vmx.idLbrFromIpMsrFirstForRing3 + 1;
    33393339
    33403340            /** @todo r=ramshankar: The index technically varies depending on the CPU, but
     
    33593359            for (;;)
    33603360            {
    3361                 if (pVM->hm.s.vmx.idLbrToIpMsrFirst)
    3362                 {
     3361                if (pVM->hm.s.vmx.idLbrToIpMsrFirstForRing3)
    33633362                    pHlp->pfnPrintf(pHlp, "  Branch (%2u): From IP=%#016RX64 - To IP=%#016RX64\n", idxCurrent,
    33643363                                    pVmcsInfoShared->au64LbrFromIpMsr[idxCurrent], pVmcsInfoShared->au64LbrToIpMsr[idxCurrent]);
    3365                 }
    33663364                else
    33673365                    pHlp->pfnPrintf(pHlp, "  Branch (%2u): LBR=%#RX64\n", idxCurrent, pVmcsInfoShared->au64LbrFromIpMsr[idxCurrent]);
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