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] MSI and VT-d interrupt remapping

To: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] MSI and VT-d interrupt remapping
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 07 Mar 2008 13:26:43 +0000
Delivery-date: Fri, 07 Mar 2008 05:28:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <18384.23842.229533.91264@xxxxxxxxxxxxxxxxxx>
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: AciAVuIpILLnJexKEdyI9wAX8io7RQ==
Thread-topic: [Xen-devel] MSI and VT-d interrupt remapping
User-agent: Microsoft-Entourage/11.4.0.080122
On 6/3/08 21:07, "Espen Skoglund" <espen.skoglund@xxxxxxxxxxxxx> wrote:

> If an MSI capable device was able to make use of the above feature,
> the device could be set up to generate different interrupts depending
> on where the incoming interrupt was to be handled.  For example,
> incoming data for a particular guest could trigger an interrupt on the
> processor where that guest is running.  Obviously, a dom0-like backend
> driver would not be involved in the actual event delivery in these
> situations.  The event would be delivered directly to the frontend.
> 
> The necessary changes would enable a device driver for an MSI capable
> device to allocate a range of pirqs and bind these to different
> frontends.

The only tricky bit here is deciding what the interface should be to the
hypervisor to specify these allocation constraints.

Another thought though: there's no good reqson for Xen to scatter its
irq-vector allocations across the vector space. That's a holdover from
classic-Pentium-era systems, which could lose interrupts if too many got
'queued up' at any single priority level. So we could actually allocate our
vectors contiguously, making it much more likely that you could successfully
allocate a contiguous range even without remapping.

However, I guess you want to be able to specify different target APICs for
different vectors too, so again it comes back to: what should the guest
interface to irq-remapping hardware be?

 -- Keir



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