View | Details | Raw Unified | Return to bug 213155 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/x86/x86/identcpu.c (-1 / +1 lines)
Lines 1335-1341 fix_cpuid(void) Link Here
1335
	 * See BIOS and Kernel Developer’s Guide (BKDG) for AMD Family 15h
1335
	 * See BIOS and Kernel Developer’s Guide (BKDG) for AMD Family 15h
1336
	 * Models 60h-6Fh Processors, Publication # 50742.
1336
	 * Models 60h-6Fh Processors, Publication # 50742.
1337
	 */
1337
	 */
1338
	if (cpu_vendor_id == CPU_VENDOR_AMD && CPUID_TO_FAMILY(cpu_id) == 0x15) {
1338
	if (vm_guest == VM_GUEST_NO && cpu_vendor_id == CPU_VENDOR_AMD && CPUID_TO_FAMILY(cpu_id) == 0x15) {
1339
		msr = rdmsr(MSR_EXTFEATURES);
1339
		msr = rdmsr(MSR_EXTFEATURES);
1340
		if ((msr & ((uint64_t)1 << 54)) == 0) {
1340
		if ((msr & ((uint64_t)1 << 54)) == 0) {
1341
			msr |= (uint64_t)1 << 54;
1341
			msr |= (uint64_t)1 << 54;

Return to bug 213155