mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: vmsr: disable prmrr related msrs in vm
PRMRR related MSRs need to be configured by platform BIOS / bootloader. These settings are not allowed to be changed by guest. VMs currently have no requirement to access these MSRs even when vSGX is enabled. So, this patch disables PRMRR related MSRs in VM. Tracked-On: #3739 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
de0a5a48d6
commit
d19592a33e
@@ -78,7 +78,7 @@ static const uint32_t mtrr_msrs[NUM_MTRR_MSRS] = {
|
||||
};
|
||||
|
||||
/* Following MSRs are intercepted, but it throws GPs for any guest accesses */
|
||||
#define NUM_UNSUPPORTED_MSRS 99U
|
||||
#define NUM_UNSUPPORTED_MSRS 104U
|
||||
static const uint32_t unsupported_msrs[NUM_UNSUPPORTED_MSRS] = {
|
||||
/* Variable MTRRs are not supported */
|
||||
MSR_IA32_MTRR_PHYSBASE_0,
|
||||
@@ -212,6 +212,13 @@ static const uint32_t unsupported_msrs[NUM_UNSUPPORTED_MSRS] = {
|
||||
MSR_IA32_MCG_EXT_CTL,
|
||||
/* MSR 0x280 ... 0x29F, not in this array */
|
||||
/* MSR 0x400 ... 0x473, not in this array */
|
||||
|
||||
/* PRMRR related MSRs are configured by native BIOS / bootloader */
|
||||
MSR_PRMRR_PHYS_BASE,
|
||||
MSR_PRMRR_PHYS_MASK,
|
||||
MSR_PRMRR_VALID_CONFIG,
|
||||
MSR_UNCORE_PRMRR_PHYS_BASE,
|
||||
MSR_UNCORE_PRMRR_PHYS_MASK,
|
||||
};
|
||||
|
||||
/* emulated_guest_msrs[] shares same indexes with array vcpu->arch->guest_msrs[] */
|
||||
|
Reference in New Issue
Block a user