qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix -M isapc irq routing


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH] Fix -M isapc irq routing
Date: Tue, 8 Sep 2009 17:31:10 +0200

Only send irqs to ioapic in case we have one.
Fixes qemu segfault.

Linux kernel still needs explicit noapic noacpi on the kernel cmd line
to boot.  Do we need a different bios for isapc?  Or a fw_cfg knob to
turn off all the modern stuff (apic, acpi, smp, ...)?

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/pc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index 6292001..9af0cdb 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -100,7 +100,8 @@ static void isa_irq_handler(void *opaque, int n, int level)
     if (n < 16) {
         qemu_set_irq(isa->i8259[n], level);
     }
-    qemu_set_irq(isa->ioapic[n], level);
+    if (isa->ioapic)
+        qemu_set_irq(isa->ioapic[n], level);
 };
 
 static void ioport80_write(void *opaque, uint32_t addr, uint32_t data)
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]