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-devel

Re: [Xen-devel] [PATCH 2/3][RFC] MSI/MSI-X support fordom0/driver domain

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/3][RFC] MSI/MSI-X support fordom0/driver domain
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 28 May 2007 13:14:10 +0100
Delivery-date: Mon, 28 May 2007 05:10:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F013B1E7C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aceg/mz7PRs/d4jlSeu7V67d+hYswQACriSgAACTnuAAAZF9OQAB6/ZAAAEo6AYAAAay8AAA4oLC
Thread-topic: [Xen-devel] [PATCH 2/3][RFC] MSI/MSI-X support fordom0/driver domain
User-agent: Microsoft-Entourage/11.3.3.061214
On 28/5/07 13:03, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:

> OK, I agree it's flexible and extensible. But is there any real usage
> model pushing on this? For example, is it better for pciback instance
> to allocate pirq space for domU? Pciback can select whether
> passthrough real irq number or allocate from a new space for
> target domain. To let Xen allocate instead makes it complex.
> 
> Also do we support mixed allocation policy to a given domain,
> when using suggested interface. For example, once one domain
> has BIOS-assigned scheme, it can't request Xen for auto-allocation.
> Or else it's difficult and complex for domain and Xen to sit on same
> page for shared allocation policy. Maybe we need some per-domain
> flag to control such allocation policy?

I think you're making this more complicated than it really is. My preference
for Xen doing the allocation for domUs is only because: what if there are
more places than just pciback that can assign device irqs to domUs? The
implementation complexity in Xen of supporting both allocation methods is
tiny: presumably in either case we will maintain an array of pirqs per
domain (maybe 0-255?) and in the case of Xen doing the allocation it just
has to do a find-first-unused-pirq search. Trivial. Even if it doesn't have
any users in the first instance (because we decide to let domU see real bios
numbers, or whatever), it's a simple service to provide in case it's useful
in future.

 -- Keir



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