From: Espen Skoglund Subject: Re: MSI-X interrupts to guests Date: Wed, 15 Apr 2009 17:30:59 +0100 Message-ID: <18918.3011.32917.886597@gargle.gargle.HOWL> References: <1239810184.4306.38.camel@moonstone.uk.level5networks.com> <18918.1125.161033.236856@gargle.gargle.HOWL> <18918.1787.569721.715154@gargle.gargle.HOWL> <1239812710.4306.48.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1239812710.4306.48.camel@moonstone.uk.level5networks.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kieran Mansley Cc: xen-devel , Espen Skoglund List-Id: xen-devel@lists.xenproject.org [Kieran Mansley] > On Wed, 2009-04-15 at 17:10 +0100, Espen Skoglund wrote: >> Oh. I just noticed that you map the MSI directly to the guest. >> You should first map it into dom0 as an MSI (to set up the MSI-X >> descriptor) > OK, I'll check that: I thought our driver might be doing that > already, but apparently not. As Jan was saying, your dom0 kernel should take care of this. Just use the standard pcie_enable_msix() call to set it up. >> and then map it to domU as a GSI. > The GSI bit is something I wasn't expecting. Any hints on the API > for mapping this? Having done so I assume that the request_irq() in > the guest should then succeed. > Thanks very much for your help. The API is the same as used for mapping regular PIRQs (they just happen to be MSI-X vectors). In particular, xend will use the right API when mapping a PIRQ to the guest. eSk