* [Qemu-devel] [PATCH] Fix -M isapc irq routing
@ 2009-09-08 15:31 Gerd Hoffmann
0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2009-09-08 15:31 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
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 <kraxel@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-08 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08 15:31 [Qemu-devel] [PATCH] Fix -M isapc irq routing Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).