From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH v3 kvmtool 00/11] Add PCI passthrough support with VFIO Date: Wed, 15 Nov 2017 18:01:07 +0000 Message-ID: <20171115180106.GP19071@arm.com> References: <20171031191449.1950-1-jean-philippe.brucker@arm.com> <20171031221719.1ab9c0b6@t450s.home> <955bf02c-6305-9656-f095-378a8c3a30ff@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alex Williamson , "kvm@vger.kernel.org" , Robin Murphy , Lorenzo Pieralisi , Marc Zyngier , Punit Agrawal To: Jean-Philippe Brucker Return-path: Received: from foss.arm.com ([217.140.101.70]:43068 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933417AbdKOSA7 (ORCPT ); Wed, 15 Nov 2017 13:00:59 -0500 Content-Disposition: inline In-Reply-To: <955bf02c-6305-9656-f095-378a8c3a30ff@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 01, 2017 at 05:16:27PM +0000, Jean-Philippe Brucker wrote: > On 31/10/17 21:17, Alex Williamson wrote: > > On Tue, 31 Oct 2017 19:14:38 +0000 > > Jean-Philippe Brucker wrote: > > > >> This series implements PCI pass-through using VFIO in kvmtool. We > >> introduce a new parameter to lkvm run, --vfio-group, that takes an IOMMU > >> group number as argument, and passes all devices in the group to the > >> guest. > > > > Is there a discussion somewhere that provides the reasoning behind this > > whole group choice? It seems very limiting since there exist plenty of > > examples of groups where endpoints and interconnects are both included, > > but only the former is compatible with vfio-pci in the host. It's > > currently impossible to open all of these devices. There's also no > > opportunity to create different device topologies with this > > specification (ex. multi-function vs separate devices vs downstream of > > switches/bridges/root-ports). It seems like a strange starting point > > to me, but you probably already guessed that based on the QEMU > > implementation. > > I don't think it had come up yet. My guess is that it was simpler to do > whole groups when writing the prototype (by Will) and I didn't think much > about changing the interface when I took over. I agree that the QEMU > parameter format is a lot better. > > So maybe we should have "--vfio-pci [:]:.", and > later "--vfio-platform " etc. That certainly looks much more expressive to me. Will