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

Re: [Xen-ia64-devel] [PATCH] Cleanup to irq.c

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] Cleanup to irq.c
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Tue, 11 Apr 2006 12:32:51 +0100
Delivery-date: Tue, 11 Apr 2006 04:28:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <571ACEFD467F7749BC50E0A98C17CDD8094E7AE6@pdsmsx403>
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/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <571ACEFD467F7749BC50E0A98C17CDD8094E7AE6@pdsmsx403>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Mardi 11 Avril 2006 13:15, Tian, Kevin a écrit :
> This patch is a big cleanup to irq.c, with only real
> necessary interfaces kept now. The irq subsystem of
> xen is very simple since most external devices are
> controlled by dom0. Also especially there's no need
> to keep CONFIG_XEN everywhere, since this file is
> already out of sync of linux version for a long time.
> Actually xen defines irq related structures differently
> and it's worthy of creating a xen specific version here.
Good cleanup.
Maybe we could also merge irq.c and xenirq.c ?

> Another change of this patch is to remove ugly check
> upon timer/ipi within irq handler. Instead now we'll
> check IRQ_GUEST flag of irq_desc to decide whether
> to deliver irq to guest. Now all vectors un-registered
> are set with IRQ_GUEST enabled, which is identical to
> current assumption. Later this flag should be set only
> per guest's request. Then Xen_do_irq is not reuqired
> as the result of this change.
Ok.

> Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>
>
> BTW, one confusing point here is serial_input_init() which
> hard coded a vector (0x30), which happens to conflict with
> eth0 vector on my tiger box. What's the purpose of this
> registration? Actually the registration here is bogus which
> never severs the purpose. Before my patch, previous logic
> simply injects that vector (0x30) into guest since it's not
> timer/ipi. Even xen wants to handle this vector, the
> hw_interrupt_type assocated with this vector is no_irq_type
> which is also bogus. Since it doesn't work as the code wants,
> I simply disabled the serial_input_init to avoid unnecessary
> warnings like " Unexpected irq vector 0x30 on cpu 0".
Never understood its purpose!

Tristan.



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

<Prev in Thread] Current Thread [Next in Thread>