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/
Home Products Support Community News


Re: [Xen-devel] get_callback_via for Windows PV drivers

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] get_callback_via for Windows PV drivers
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 27 Sep 2007 15:26:19 +0100
Delivery-date: Thu, 27 Sep 2007 07:27:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D012498E7@trantor>
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: AcgA9OzcfY9Gb9pGR2mZngrddXcW4QAHXHZe
Thread-topic: [Xen-devel] get_callback_via for Windows PV drivers
User-agent: Microsoft-Entourage/
On 27/9/07 11:55, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> Looking at the 'unmodified_drivers', it appears that I'm supposed to
> tell the hypervisor the IRQ number to use to signal me. Under the
> Windows DDK, I get an Interrupt Vector, which I don't think is the same
> as an IRQ number... and I think I'm supposed to work backwards from the
> vector to try and figure out what IRQ I'm supposed to pass the
> hypervisor.

The documentation in public/hvm/params.h is pretty clear. Either you can
specify the PCI INTx line by bus,dev,fn,pin, or you can specify the GSI that
the line is 'wired' to. Neither of these values is determinable from the
interrupt vector. However, if you have probed the PCI device then you
probably know the (bus,dev,fn,pin) tuple, so you should probably aim to
specify that.

 -- Keir

Xen-devel mailing list