Changeset 87558 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Feb 3, 2021 11:21:28 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142585
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r87557 r87558 373 373 * Whether to enable LBR for the guest. This is disabled by default as it's only 374 374 * 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); 376 376 AssertRCReturn(rc, rc); 377 377 … … 3333 3333 if (HMIsVmxActive(pVM)) 3334 3334 { 3335 if (pVM->hm.s.vmx.fLbr )3335 if (pVM->hm.s.vmx.fLbrCfg) 3336 3336 { 3337 3337 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; 3339 3339 3340 3340 /** @todo r=ramshankar: The index technically varies depending on the CPU, but … … 3359 3359 for (;;) 3360 3360 { 3361 if (pVM->hm.s.vmx.idLbrToIpMsrFirst) 3362 { 3361 if (pVM->hm.s.vmx.idLbrToIpMsrFirstForRing3) 3363 3362 pHlp->pfnPrintf(pHlp, " Branch (%2u): From IP=%#016RX64 - To IP=%#016RX64\n", idxCurrent, 3364 3363 pVmcsInfoShared->au64LbrFromIpMsr[idxCurrent], pVmcsInfoShared->au64LbrToIpMsr[idxCurrent]); 3365 }3366 3364 else 3367 3365 pHlp->pfnPrintf(pHlp, " Branch (%2u): LBR=%#RX64\n", idxCurrent, pVmcsInfoShared->au64LbrFromIpMsr[idxCurrent]);
Note:
See TracChangeset
for help on using the changeset viewer.