diff mbox series

[PING] hw/intc/ioapic: Delete a wrong IRQ redirection on I/O APIC

Message ID SEZPR01MB43019C6C7D242A7A18B9C0B6A4DF2@SEZPR01MB4301.apcprd01.prod.exchangelabs.com (mailing list archive)
State New
Headers show
Series [PING] hw/intc/ioapic: Delete a wrong IRQ redirection on I/O APIC | expand

Commit Message

伊藤 太清 July 5, 2024, 3:33 a.m. UTC
This is a ping to the patch below.
https://lore.kernel.org/qemu-devel/TY0PR0101MB42850337F8917D1F514107FBA4D52@TY0PR0101MB4285.apcprd01.prod.exchangelabs.com/
diff mbox series

Patch

diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c
index 716ffc8bbb..6b630b45ca 100644
--- a/hw/intc/ioapic.c
+++ b/hw/intc/ioapic.c
@@ -154,15 +154,8 @@  static void ioapic_set_irq(void *opaque, int vector, int level)
 {
     IOAPICCommonState *s = opaque;

-    /* ISA IRQs map to GSI 1-1 except for IRQ0 which maps
-     * to GSI 2.  GSI maps to ioapic 1-1.  This is not
-     * the cleanest way of doing it but it should work. */
-
     trace_ioapic_set_irq(vector, level);
     ioapic_stat_update_irq(s, vector, level);
-    if (vector == 0) {
-        vector = 2;
-    }
     if (vector < IOAPIC_NUM_PINS) {
         uint32_t mask = 1 << vector;
         uint64_t entry = s->ioredtbl[vector];