WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] FWD: [Xen-devel] [PATCH] fix "translate Xen-provided PI

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] FWD: [Xen-devel] [PATCH] fix "translate Xen-provided PIRQs" patch.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 12 Sep 2008 19:12:44 +0900
Delivery-date: Fri, 12 Sep 2008 03:12:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
I forgot to CC to xen-ia64-devel.


fix "translate Xen-provided PIRQs" patch.

This patch fixes the ia64 breakage caused by 660:7886619f623e.
The change set is very x86 specific. So the functions, evtchn_map_pirq(),
evtchn_get_xen_pirq() should be arch specific.

However the pulling out those function out from evntchan would be
very ugly because they use static functions in the file.
Eventually the issue in the upstream linux will be addressed by pv_ops, 
and it doesn't matter much on 2.6.18-xen for ia64. So I keep this patch
as small as possible for now.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 035670ec617c drivers/xen/core/evtchn.c
--- a/drivers/xen/core/evtchn.c Tue Sep 09 15:13:29 2008 +0100
+++ b/drivers/xen/core/evtchn.c Fri Sep 12 18:10:16 2008 +0900
@@ -761,9 +761,13 @@
        irq_info[irq] = mk_irq_info(IRQT_PIRQ, irq, 0);
 }
 
+#ifndef CONFIG_X86
+#define IO_APIC_IRQ(irq) (0)
+#else
 #ifndef CONFIG_X86_IO_APIC
 #undef IO_APIC_IRQ
 #define IO_APIC_IRQ(irq) ((irq) >= pirq_to_irq(16))
+#endif
 #endif
 
 int evtchn_map_pirq(int irq, int xen_pirq)


-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] FWD: [Xen-devel] [PATCH] fix "translate Xen-provided PIRQs" patch., Isaku Yamahata <=