mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: vmtrr: hide mtrr if hide_mtrr is true
Now we only configure "hide MTRR" explicitly to false for SOS. For other VMs, we don't configure it which means hide_mtrr is false by default. And remove global config MTRR_ENABLED Tracked-On: #1842 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -256,9 +256,7 @@ struct acrn_vcpu_arch {
|
||||
/* per vcpu lapic */
|
||||
struct acrn_vlapic vlapic;
|
||||
|
||||
#ifdef CONFIG_MTRR_ENABLED
|
||||
struct acrn_vmtrr vmtrr;
|
||||
#endif
|
||||
|
||||
int32_t cur_context;
|
||||
struct cpu_context contexts[NR_WORLD];
|
||||
|
@@ -221,6 +221,7 @@ void vrtc_init(struct acrn_vm *vm);
|
||||
#endif
|
||||
|
||||
bool is_lapic_pt(const struct acrn_vm *vm);
|
||||
bool vm_hide_mtrr(const struct acrn_vm *vm);
|
||||
|
||||
#endif /* !ASSEMBLER */
|
||||
|
||||
|
@@ -50,7 +50,8 @@
|
||||
#define SECURE_WORLD_ENABLED (1UL << 0U) /* Whether secure world is enabled */
|
||||
#define LAPIC_PASSTHROUGH (1UL << 1U) /* Whether LAPIC is passed through */
|
||||
#define IO_COMPLETION_POLLING (1UL << 2U) /* Whether need hypervisor poll IO completion */
|
||||
#define CLOS_REQUIRED (1UL << 3U) /* Whether CLOS is required */
|
||||
#define CLOS_REQUIRED (1UL << 3U) /* Whether CLOS is required */
|
||||
#define HIDE_MTRR (1UL << 4U) /* Whether hide MTRR from VM */
|
||||
|
||||
/**
|
||||
* @brief Hypercall
|
||||
|
Reference in New Issue
Block a user