mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 21:59:26 +00:00
hv: vlapic: make vlapic deliver interrupt related functions more readable
Rename vlapic_deliver_intr to vlapic_receive_intr: ioapic/msi device deliver an interrupt to lapic. Rename vlapic_pending_intr to vlapic_find_deliverable_intr: find a deliverable interrupt which pending in irr and its priority large than ppr. Rename vlapic_intr_accepted to vlapic_get_deliverable_intr: get the deliverable interrupt from irr and set it in isr (which also raise ppr update) Tracked-On: #1842 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -73,7 +73,7 @@ vioapic_generate_intr(struct acrn_vioapic *vioapic, uint32_t pin)
|
||||
}
|
||||
vector = rte.bits.vector;
|
||||
dest = rte.bits.dest_field;
|
||||
vlapic_deliver_intr(vioapic->vm, level, dest, phys, delmode, vector, false);
|
||||
vlapic_receive_intr(vioapic->vm, level, dest, phys, delmode, vector, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -217,7 +217,7 @@ vioapic_update_eoi_exit(const struct acrn_vioapic *vioapic)
|
||||
} else {
|
||||
dest = (uint32_t)rte.bits.dest_field;
|
||||
phys = (rte.bits.dest_mode == IOAPIC_RTE_DESTMODE_PHY);
|
||||
vlapic_calcdest(vioapic->vm, &mask, dest, phys, false);
|
||||
vlapic_calc_dest(vioapic->vm, &mask, dest, phys, false);
|
||||
|
||||
for (vcpu_id = ffs64(mask); vcpu_id != INVALID_BIT_INDEX; vcpu_id = ffs64(mask)) {
|
||||
vcpu = vcpu_from_vid(vioapic->vm, vcpu_id);
|
||||
|
Reference in New Issue
Block a user