HV: remove vm_config pointer in acrn_vm struct

For each vm_array[] item, its config is located in corresponding
index of vm_configs[], so vm_config pointer is not needed any more.

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-01-21 02:18:05 +08:00
committed by Eddie Dong
parent 7bf9b1be2c
commit 253b25937b
7 changed files with 17 additions and 14 deletions

View File

@@ -574,7 +574,9 @@ void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu)
void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu)
{
uint32_t value32;
if(vcpu->vm->vm_config->lapic_pt) {
struct acrn_vm_config *vm_config = get_vm_config(vcpu->vm->vm_id);
if(vm_config->lapic_pt) {
/*
* Disable external interrupt exiting and irq ack
* Disable posted interrupt processing