mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: Variable/macro renaming for intr handling of PT devices using IO-APIC/PIC
1. Renames DEFINE_IOAPIC_SID with DEFINE_INTX_SID as the virtual source can be IOAPIC or PIC 2. Rename the src member of source_id.intx_id to ctlr to indicate interrupt controller 2. Changes the type of src member of source_id.intx_id from uint32_t to enum with INTX_CTLR_IOAPIC and INTX_CTLR_PIC Tracked-On: #4447 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
wenlingz
parent
9a79443204
commit
460e7ee5b1
@@ -1073,7 +1073,7 @@ static void get_entry_info(const struct ptirq_remapping_info *entry, char *type,
|
||||
uint32_t phys_irq = entry->allocated_pirq;
|
||||
union ioapic_rte rte;
|
||||
|
||||
if (entry->virt_sid.intx_id.src == PTDEV_VPIN_IOAPIC) {
|
||||
if (entry->virt_sid.intx_id.ctlr == INTX_CTLR_IOAPIC) {
|
||||
(void)strncpy_s(type, 16U, "IOAPIC", 16U);
|
||||
} else {
|
||||
(void)strncpy_s(type, 16U, "PIC", 16U);
|
||||
|
Reference in New Issue
Block a user