From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D8C1C433F5 for ; Fri, 1 Oct 2021 03:20:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2E1C261A02 for ; Fri, 1 Oct 2021 03:20:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351568AbhJADV4 (ORCPT ); Thu, 30 Sep 2021 23:21:56 -0400 Received: from verein.lst.de ([213.95.11.211]:33451 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbhJADV4 (ORCPT ); Thu, 30 Sep 2021 23:21:56 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5C5FA67373; Fri, 1 Oct 2021 05:20:10 +0200 (CEST) Date: Fri, 1 Oct 2021 05:20:10 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Alex Williamson , Kirti Wankhede , Christoph Hellwig , "Tian, Kevin" , Diana Craciun , Cornelia Huck , Eric Auger , "Xu, Terrence" , "kvm@vger.kernel.org" Subject: Re: [PATCH 11/14] vfio: clean up the check for mediated device in vfio_iommu_type1 Message-ID: <20211001032010.GA16450@lst.de> References: <20210913071606.2966-1-hch@lst.de> <20210913071606.2966-12-hch@lst.de> <20210916221854.GT3544071@ziepe.ca> <20210917050543.GA22003@lst.de> <8a5ff811-3bba-996a-a8e0-faafe619f193@nvidia.com> <20210917125301.GU3544071@ziepe.ca> <20210930104620.56a1d3e9.alex.williamson@redhat.com> <20210930165707.GA69218@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930165707.GA69218@ziepe.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Sep 30, 2021 at 01:57:07PM -0300, Jason Gunthorpe wrote: > On Thu, Sep 30, 2021 at 10:46:20AM -0600, Alex Williamson wrote: > > I'm only aware that the PF driver enables basic SR-IOV configuration of > > VFs, ie. the number of enabled VFs. > > This is quite common in the netdev world, for instance you use the PF > driver to set the MAC addresses, QOS and other details on the VF > devices. The NVMe spec also support it using the Virtualization extensions, although I'm not aware of any device that actually implements it so far. > > > only management of the number of child devices, but the flavor of each > > child, for example the non-homogeneous slice of resources allocated per > > child device. > > Since the devices are PCI VFs they should be able to be used, with > configuration, any place a PCI VF is usable. EG vfio-pci, a Kernel > driver, etc. > > This is why the PF needs to provide the configuration to support all > the use cases. Exactly.