From: Kieran Mansley Subject: Re: MSI-X interrupts to guests Date: Thu, 16 Apr 2009 16:47:50 +0100 Message-ID: <1239896870.4289.60.camel@moonstone.uk.level5networks.com> 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> <18918.3011.32917.886597@gargle.gargle.HOWL> <1239895162.4289.52.camel@moonstone.uk.level5networks.com> <18919.20809.69840.702986@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18919.20809.69840.702986@gargle.gargle.HOWL> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Espen Skoglund Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2009-04-16 at 16:39 +0100, Espen Skoglund wrote: > > 2a) Attempt to map this to the guest using PHYSDEVOP_map_pirq with > > parameters: > > map_irq.domid = guest_domid; > > map_irq.type = MAP_PIRQ_TYPE_GSI; > > map_irq.index = vector; > > map_irq.pirq = -1; > > > => gives an error in the hypervisor: > > (XEN) physdev.c:61: dom1: map invalid irq 510 > > IRQ510? This definitely sounds wrong. This can't possibly be the > "PIRQ" assigned to the MSI vector. It's not - it's the vector itself. Sadly the code in question (msi- xen.c) seems to confuse the use of pirq and vector in the variable names, so I'm not exactly sure how to describe it. It's the returned value from msi_map_vector() when called by pci_enable_msix() in dom0. What is the magic step I'm missing to go from the vector that I get back from pci_enable_msix() to the value for "PIRQ assigned to the MSI vector" to give to PHYSDEVOP_map_pirq? Thanks Kieran