public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-ia64 irq assignment 1/2  kernel
@ 2008-06-06 15:58 Xu, Anthony
  2008-06-06 19:58 ` Avi Kivity
  0 siblings, 1 reply; 21+ messages in thread
From: Xu, Anthony @ 2008-06-06 15:58 UTC (permalink / raw)
  To: Avi Kivity, Jes Sorensen, kvm, kvm-ia64

In kvm-ia64, we use the same guest firmware (GFW)as in Xen, 
GFW uses PRT to present PCI interrupt routing, all PCI devices'
interrupt pins
connect to IOAPIC, which doesn't match with kvm-ia64 Qemu PCI interrupt
routing.

This patch modify Qemu PCI interupt routing code to match with GFW, 
Then PCI devices in qemu can work in kvm-ia64, for exmaple, NIC


Signed-off-by: Anthony Xu < anthony.xu@intel.com >


diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index 99a1736..80c116c 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -272,7 +272,11 @@ void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic,
int irq, int level)

        if (irq >= 0 && irq < IOAPIC_NUM_PINS) {
                entry = ioapic->redirtbl[irq];
-               level ^= entry.fields.polarity;
+// polarity of all devices in qemu is active high
+//  regardless of ioapic setting
+
+//             level ^= entry.fields.polarity;
+
                if (!level)
                        ioapic->irr &= ~mask;
                else {

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-07-03  1:22 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 15:58 [PATCH] kvm-ia64 irq assignment 1/2 kernel Xu, Anthony
2008-06-06 19:58 ` Avi Kivity
2008-06-09  8:58   ` Alexander Graf
2008-06-09  9:16     ` Alexander Graf
2008-06-12 12:24       ` Avi Kivity
2008-06-10  6:33   ` Xu, Anthony
2008-06-10  7:25     ` Alexander Graf
2008-06-10  7:57       ` [RFC]RE: " Xu, Anthony
2008-06-11 14:24         ` Alexander Graf
2008-06-11 16:02           ` Marcelo Tosatti
2008-06-12 16:15             ` Xu, Anthony
2008-06-14 22:58               ` Marcelo Tosatti
2008-06-16  1:13                 ` Xu, Anthony
2008-07-02  9:11                   ` Jes Sorensen
2008-07-03  1:22                     ` Xu, Anthony
2008-06-12 16:08           ` Xu, Anthony
2008-06-11 16:16         ` Marcelo Tosatti
2008-06-12 16:19           ` Xu, Anthony
2008-06-12 12:34         ` Avi Kivity
2008-06-12 16:20           ` Xu, Anthony
2008-06-12 12:30     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox