Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2018 10:02:24 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339911 - head/sys/amd64/vmm/amd
Message-ID:  <201810301002.w9UA2OSo046376@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue Oct 30 10:02:23 2018
New Revision: 339911
URL: https://svnweb.freebsd.org/changeset/base/339911

Log:
  Emulate machine check related MSR_EXTFEATURES to allow guest OSes to
  boot on AMD FX Series.
  
  PR:		224476
  Submitted by:	Keita Uchida <m@jgz.jp>
  Reviewed by:	rgrimes
  Sponsored by:	iXsystems Inc.
  Differential Revision:	https://reviews.freebsd.org/D17713

Modified:
  head/sys/amd64/vmm/amd/svm_msr.c

Modified: head/sys/amd64/vmm/amd/svm_msr.c
==============================================================================
--- head/sys/amd64/vmm/amd/svm_msr.c	Tue Oct 30 10:01:15 2018	(r339910)
+++ head/sys/amd64/vmm/amd/svm_msr.c	Tue Oct 30 10:02:23 2018	(r339911)
@@ -127,6 +127,9 @@ svm_rdmsr(struct svm_softc *sc, int vcpu, u_int num, u
 	case MSR_AMDK8_IPM:
 		*result = 0;
 		break;
+	case MSR_EXTFEATURES:
+		*result = 0;
+		break;
 	default:
 		error = EINVAL;
 		break;
@@ -162,6 +165,8 @@ svm_wrmsr(struct svm_softc *sc, int vcpu, u_int num, u
 		/*
 		 * Ignore writes to microcode update register.
 		 */
+		break;
+	case MSR_EXTFEATURES:
 		break;
 	default:
 		error = EINVAL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810301002.w9UA2OSo046376>