mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 17:12:46 +00:00
Emulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are
enabled. MFC after: 2 weeks
This commit is contained in:
parent
fc2ef3b240
commit
fe22991fb8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282296
@ -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_MTRR4kBase ... MSR_MTRR4kBase + 8:
|
||||||
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
|
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
|
||||||
case MSR_MTRR64kBase:
|
case MSR_MTRR64kBase:
|
||||||
|
case MSR_SYSCFG:
|
||||||
*result = 0;
|
*result = 0;
|
||||||
break;
|
break;
|
||||||
case MSR_AMDK8_IPM:
|
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_MTRR4kBase ... MSR_MTRR4kBase + 8:
|
||||||
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
|
case MSR_MTRR16kBase ... MSR_MTRR16kBase + 1:
|
||||||
case MSR_MTRR64kBase:
|
case MSR_MTRR64kBase:
|
||||||
|
case MSR_SYSCFG:
|
||||||
break; /* Ignore writes */
|
break; /* Ignore writes */
|
||||||
case MSR_AMDK8_IPM:
|
case MSR_AMDK8_IPM:
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user