mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user