Emulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are

enabled.

MFC after:	2 weeks
This commit is contained in:
Neel Natu 2015-05-01 05:11:14 +00:00
parent fc2ef3b240
commit fe22991fb8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282296

View File

@ -115,6 +115,7 @@ svm_rdmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t *result,
case MSR_MTRR4kBase ... MSR_MTRR4kBase + 8:
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
case MSR_MTRR64kBase:
case MSR_SYSCFG:
*result = 0;
break;
case MSR_AMDK8_IPM:
@ -141,6 +142,7 @@ svm_wrmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t val, bool *retu)
case MSR_MTRR4kBase ... MSR_MTRR4kBase + 8:
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
case MSR_MTRR64kBase:
case MSR_SYSCFG:
break; /* Ignore writes */
case MSR_AMDK8_IPM:
/*