svn commit: r331303 - stable/11/sys/x86/x86
Andriy Gapon
avg at FreeBSD.org
Wed Mar 21 15:09:42 UTC 2018
Author: avg
Date: Wed Mar 21 15:09:41 2018
New Revision: 331303
URL: https://svnweb.freebsd.org/changeset/base/331303
Log:
MFC r330793: fix r297857, do not modify CPU extension bits under virtual machines
PR: 213155
Modified:
stable/11/sys/x86/x86/identcpu.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/x86/x86/identcpu.c
==============================================================================
--- stable/11/sys/x86/x86/identcpu.c Wed Mar 21 15:07:26 2018 (r331302)
+++ stable/11/sys/x86/x86/identcpu.c Wed Mar 21 15:09:41 2018 (r331303)
@@ -1394,7 +1394,8 @@ fix_cpuid(void)
* See BIOS and Kernel Developer’s Guide (BKDG) for AMD Family 15h
* Models 60h-6Fh Processors, Publication # 50742.
*/
- if (cpu_vendor_id == CPU_VENDOR_AMD && CPUID_TO_FAMILY(cpu_id) == 0x15) {
+ if (vm_guest == VM_GUEST_NO && cpu_vendor_id == CPU_VENDOR_AMD &&
+ CPUID_TO_FAMILY(cpu_id) == 0x15) {
msr = rdmsr(MSR_EXTFEATURES);
if ((msr & ((uint64_t)1 << 54)) == 0) {
msr |= (uint64_t)1 << 54;
More information about the svn-src-all
mailing list