From: "Jan Beulich" Subject: Re: MSI-X interrupts to guests Date: Wed, 15 Apr 2009 17:21:48 +0100 Message-ID: <49E625BC.76EA.0078.0@novell.com> References: <1239810184.4306.38.camel@moonstone.uk.level5networks.com> <49E6202E.76EA.0078.0@novell.com> <1239811923.4306.43.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1239811923.4306.43.camel@moonstone.uk.level5networks.com> Content-Disposition: inline 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@netronome.com List-Id: xen-devel@lists.xenproject.org >>> Kieran Mansley 15.04.09 18:12 >>> >On Wed, 2009-04-15 at 16:58 +0100, Jan Beulich wrote: >> >>> Kieran Mansley 15.04.09 17:43 >>> >> > rc =3D HYPERVISOR_physdev_op(PHYSDEVOP_map_pirq, &map_irq); >>=20 >> But you don't do this yourself, you get this done for you, right? > >No, I was doing it myself. What approach would you recommend? In general this should be taken care of by the code in drivers/pci/msi-xen.= c, unless of course you're trying to pass through less than a full PCI = device. >> >This call succeeds. dom0 then tells the guest the value of map_irq.pir= q >> >(which seems to have a sensible value given the other interrupts = mapped >> >to that domain) that it gets back from this hypercall, and the guest >> >tries to call request_irq() using that value. The call to request_irq(= ) >> >returns -38 (ENOSYS). >> > >> >Any ideas what the problem could be? I'm happy to investigate. >>=20 >> What kernel version is it that's running in the guest? Sounds like some >> preparatory step might be missing the particular kernel version you = got. > >c/s 855 from the linux-2.6.18-xen.hg tree. That should have all that's needed (as Espen also indicated). You'll have = to hunt down where that -ENOSYS gets generated. Jan