qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing


From: Jan Kiszka
Subject: [Qemu-devel] [RFC][PATCH] disable special ioapic inti0 routing
Date: Sat, 07 Feb 2009 00:30:35 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

This patch comes from the kvm tree and fixes the timer IRQ routing for
me which is broken from the POV of certain Linux guest kernels. As I'm
not up-to-date with the development around that problematic hunk, I'm
leaving it to someone more deeply involved to sign this off. But please
commit some fix.

Thanks,
Jan

------->

From: Avi Kivity <address@hidden>

we don't support it yet (need bios support, and modifications to kernel
irq routing).

---
 qemu/hw/apic.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c
index df80444..f9ef995 100644
--- a/qemu/hw/apic.c
+++ b/qemu/hw/apic.c
@@ -1055,12 +1055,14 @@ void ioapic_set_irq(void *opaque, int vector, int level)
 {
     IOAPICState *s = opaque;
 
+#if 0
     /* 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. */
 
     if (vector == 0)
         vector = 2;
+#endif
 
     if (vector >= 0 && vector < IOAPIC_NUM_PINS) {
         uint32_t mask = 1 << vector;





reply via email to

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