HV: add vrtc for sharing mode

Previously vrtc is for partition mode only, now enable it for sharing mode;

Tracked-On: #2291

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2019-03-18 10:11:58 +08:00
committed by wenlingz
parent 1b79f28efe
commit ca6e341147
3 changed files with 4 additions and 4 deletions

View File

@@ -148,8 +148,8 @@ struct acrn_vm {
#ifdef CONFIG_PARTITION_MODE
struct mptable_info mptable;
uint8_t vrtc_offset;
#endif
uint8_t vrtc_offset;
spinlock_t softirq_dev_lock;
struct list_head softirq_dev_entry_list;
@@ -217,8 +217,8 @@ extern vm_sw_loader_t vm_sw_loader;
#ifdef CONFIG_PARTITION_MODE
uint16_t get_vm_pcpu_nums(const struct acrn_vm_config *vm_config);
void vrtc_init(struct acrn_vm *vm);
#endif
void vrtc_init(struct acrn_vm *vm);
bool is_lapic_pt(const struct acrn_vm *vm);
bool vm_hide_mtrr(const struct acrn_vm *vm);