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

[PATCH] RE: [Xen-ia64-devel] xencons interrupt problem

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: [PATCH] RE: [Xen-ia64-devel] xencons interrupt problem
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Fri, 30 Jun 2006 12:50:27 -0600
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 30 Jun 2006 11:50:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <386718549BA50E498DA75F3C0518CEEC0F1EE1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: OSLO R&D
References: <386718549BA50E498DA75F3C0518CEEC0F1EE1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2006-06-26 at 11:27 +0800, Tian, Kevin wrote:
> I seem to understand your proposal now. Do you mean that some early 
> table will report the irq line information for the console device out of the 
> ACPI table? If that's the case, I think changes required to achieve this 
> purpose is:
>       1. Modify assign_irq_vector hypercall to allow passing into GSI for 
> check sharing with PCI serial
>               If it's sharing, return existing vector instead of a new 
> allocation
>       2. Add a new flag to indicate such sharing between xen and dom0, 
> and remove checks against this style in all places.
>               When assertion on this irq line happens, pass to xen first and 
> then to dom0
>       3. Do we need to hide such console from dom0, since the latter 
> only uses para-virtualized xenconsole?
> 
> En... above should be enough if I understand your requirement correctly.


   I have something working, please tell me what you think.  Modifying
assign_irq_vector() to pass in a GSI seemed rather intrusive to the
guest, so I took a different approach.  Instead I recognize the guest
trying to overwrite a Xen owned vector, store the guest vector in an
array and set it up as a "Xen redirect" vector.  These vectors are
serviced from __do_IRQ after the Xen handler.  There is only one
redirect vector allowed per Xen vector, but that seems sufficient at
this point.  This allows full use of both the PCI UART (owned by Xen)
and the PCI NIC (owned by the guest) sharing a physical RTE.  Let me
know if you think this approach is acceptable.  Thanks,

        Alex

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>

Attachment: xen_irq_redirect.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>