hv: add missing MSRs to unsupported_msrs[]

SMRR (System-Management Range Register) is disabled from vMTRR,
so treat IA32_SMRR_PHYSBASE and IA32_SMRR_PHYSMASK as unsupported.

IA32_SMBASE is available only when IA32_VMX_MISC[15] is set.

IA32_FIXED_CTR0/1/2 are available only when CPUID.0AH:EDX[4:0] is non-zero.

Intel Processor Trace feature has been disabled and the associated MSRs
need to be in unsupported_msr[] as well.

Tracked-On: #1867
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Zide Chen
2019-01-03 11:44:40 -08:00
committed by wenlingz
parent 97cb7d906e
commit a4b166d5e8
2 changed files with 26 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
#define MSR_IA32_SGXLEPUBKEYHASH2 0x0000008EU
#define MSR_IA32_SGXLEPUBKEYHASH3 0x0000008FU
#define MSR_IA32_SMM_MONITOR_CTL 0x0000009BU
#define MSR_IA32_SMBASE 0x0000009EU
#define MSR_IA32_PMC0 0x000000C1U
#define MSR_IA32_PMC1 0x000000C2U
#define MSR_IA32_PMC2 0x000000C3U