VirtualBox

Changeset 60757 in vbox


Ignore:
Timestamp:
Apr 29, 2016 11:10:53 AM (8 years ago)
Author:
vboxsync
Message:

CPUMR3Db.cpp: Make sure we have a AMD64_TSC_AUX MSR if report via CPUID to the guest.

File:
1 edited

Legend:

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

    r60664 r60757  
    594594 * for instance the cpu vendor differs.
    595595 *
     596 * Another example is older CPU profiles (e.g. Atom Bonnet) for newer CPUs (e.g.
     597 * Atom Silvermont), where features reported thru CPUID aren't present in the
     598 * MSRs (e.g. AMD64_TSC_AUX).
     599 *
     600 *
    596601 * @returns VBox status code.
    597602 * @param   pVM                 The cross context VM structure.
     
    635640        };
    636641        rc = cpumR3MsrApplyFudgeTable(pVM, &s_aP4FudgeMsrs[0], RT_ELEMENTS(s_aP4FudgeMsrs));
     642        AssertLogRelRCReturn(rc, rc);
     643    }
     644
     645    if (pVM->cpum.s.GuestFeatures.fRdTscP)
     646    {
     647        static CPUMMSRRANGE const s_aRdTscPFudgeMsrs[] =
     648        {
     649            MFX(0xc0000103, "AMD64_TSC_AUX", Amd64TscAux, Amd64TscAux, 0, 0, ~(uint64_t)UINT32_MAX),
     650        };
     651        rc = cpumR3MsrApplyFudgeTable(pVM, &s_aRdTscPFudgeMsrs[0], RT_ELEMENTS(s_aRdTscPFudgeMsrs));
    637652        AssertLogRelRCReturn(rc, rc);
    638653    }
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