From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtBBX-0007Hr-Ax for qemu-devel@nongnu.org; Sun, 30 Jun 2013 02:32:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtBBW-00084L-9A for qemu-devel@nongnu.org; Sun, 30 Jun 2013 02:32:31 -0400 Message-ID: <1372573929.18612.118.camel@pasglop> From: Benjamin Herrenschmidt Date: Sun, 30 Jun 2013 16:32:09 +1000 In-Reply-To: <51CF82D6.4000106@ozlabs.ru> References: <1372513521-10050-1-git-send-email-aik@ozlabs.ru> <51CF82D6.4000106@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFCv3 kvm irqfd: support msimessage to irq translation in PHB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Anthony Liguori , "Michael S . Tsirkin" , Jan Kiszka , qemu-devel , Alex Williamson , qemu-ppc@nongnu.org, Anthony Liguori , Paolo Bonzini , Paul Mackerras , David Gibson On Sun, 2013-06-30 at 10:59 +1000, Alexey Kardashevskiy wrote: > > 1) A PCI bus function to do the MSI -> virq mapping > > 2) On x86 (and e500), this is implemented by calling kvm_irqchip_add_msi_route() > > 3) On pseries, this just returns msi->data > > > > Perhaps (2) can just be the default PCI bus implementation to simplify things. > > > hw/pci/pci.c does not have any kvm code yet and I would like not to be the > first person who tries adding this there :) > But ok, I'll do it. Unless I'm confused (which is very possible) I seem to remember that there was duplication of that MSI / KVM mapping between virtio-pci and vfio as well, so it makes sense to move it to the PCI code. Cheers, Ben.