From 1700c7d32f7d9d101cbba9f1fcb8bb57ed16a727 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 5 Apr 2014 22:17:15 +0200 Subject: Imported Upstream version 4.3.10-dfsg --- src/VBox/VMM/VMMR3/CPUM.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/VBox/VMM/VMMR3/CPUM.cpp') diff --git a/src/VBox/VMM/VMMR3/CPUM.cpp b/src/VBox/VMM/VMMR3/CPUM.cpp index dd81fc45f..a7315d3be 100644 --- a/src/VBox/VMM/VMMR3/CPUM.cpp +++ b/src/VBox/VMM/VMMR3/CPUM.cpp @@ -987,6 +987,14 @@ static int cpumR3CpuIdInstallAndExplodeLeaves(PVM pVM, PCPUM pCPUM, PCPUMCPUIDLE rc = cpumR3CpuIdExplodeFeatures(pCPUM->GuestInfo.paCpuIdLeavesR3, pCPUM->GuestInfo.cCpuIdLeaves, &pCPUM->GuestFeatures); AssertLogRelRCReturn(rc, rc); + /* + * Adjust the scalable bus frequency according to the CPUID information + * we're now using. + */ + if (CPUMMICROARCH_IS_INTEL_CORE7(pVM->cpum.s.GuestFeatures.enmMicroarch)) + pCPUM->GuestInfo.uScalableBusFreq = pCPUM->GuestFeatures.enmMicroarch >= kCpumMicroarch_Intel_Core7_SandyBridge + ? UINT64_C(100000000) /* 100MHz */ + : UINT64_C(133333333); /* 133MHz */ /* * Populate the legacy arrays. Currently used for everything, later only -- cgit v1.2.3