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
This commit is contained in:
araujo 2018-10-30 10:02:23 +00:00
parent 44d283e85a
commit 12d6a6c7c6

View File

@ -127,6 +127,9 @@ svm_rdmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t *result,
case MSR_AMDK8_IPM:
*result = 0;
break;
case MSR_EXTFEATURES:
*result = 0;
break;
default:
error = EINVAL;
break;
@ -163,6 +166,8 @@ svm_wrmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t val, bool *retu)
* Ignore writes to microcode update register.
*/
break;
case MSR_EXTFEATURES:
break;
default:
error = EINVAL;
break;