Received: by 10.192.165.148 with SMTP id m20csp130317imm; Thu, 19 Apr 2018 17:48:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49vXbQ7nUhQj4O93F5iVE+oSEOUUI4Ec36g3mfxVET5WVEFhcSz3vmj83BAgg6jSNeO8riN X-Received: by 2002:a17:902:51ce:: with SMTP id y72-v6mr7908257plh.157.1524185287583; Thu, 19 Apr 2018 17:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524185287; cv=none; d=google.com; s=arc-20160816; b=WezGOl/oNRo/obL+b3MVspEiUPlgu2ZOJDHNJL2u42keJuZmaGfMy3p2UyT+bXDyAd WwYslSo2XqkMJxCWjwiNyjdR25wo8kPTS7UP2ROZkQjLuyFfzl3a4jLJmLZOPRCwGC8e wNm1FGqU25q16CPG/9bkMpZmKh4K+5ubux6bzomlQ9Tg20uNttKLGTKq1fsEcp+7GB1N DxGgl9c5ZFEHfgOkzSzci0y6xIxtBBDsPqxpWnLnEFdqbmgEfLB+n28p0L0tbJlhq0xC V+X2Cgaytr3myhsXQFFRNzJfhIeldWfaiBz4XDpOOlXW6viY4/rVbuChKUM4AlPS28fZ Q8GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=2PvOC/jUvdnwRdJTRqo2Z1Q5OUt8PXwGNaKKG8VzYkQ=; b=XERHTwRU/4NFcUgru6/cE72mto+5mp5Fa0p1spcxR/SBwDundczKp9EA3r4GIMdzwR TpB6lr9W+/YbxUMscQh+MvfdqtBltNhnyzUrpjd7YEP8u4EhhA5+xHsAaNulgXmVhK/j 4ZKSoXS3pIAOQMD6wXNI5QNeAN8HJrZXGzZpSkxRb8+VGIyIYdxQ4FcHAMfDavbcy2mH aDacBE/RaoCCK6hbgQe85KLrIomIS/f6G9piuC6qkdDESWMpSzm1GEZysulXIph6URt3 K1Q9M67OaPgjT9jE/okAiEKNHgZA1XmAb4pSleO0oeq40v17IB+VwZdLdDk/yeSDZm6+ 89eA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u184si4036011pgc.247.2018.04.19.17.47.53; Thu, 19 Apr 2018 17:48:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754014AbeDTAqu (ORCPT + 99 others); Thu, 19 Apr 2018 20:46:50 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59084 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753761AbeDTAqs (ORCPT ); Thu, 19 Apr 2018 20:46:48 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EDC2881A88D5; Fri, 20 Apr 2018 00:46:47 +0000 (UTC) Received: from redhat.com (ovpn-120-175.rdu2.redhat.com [10.10.120.175]) by smtp.corp.redhat.com (Postfix) with SMTP id 9EECC2166BAE; Fri, 20 Apr 2018 00:46:46 +0000 (UTC) Date: Fri, 20 Apr 2018 03:46:46 +0300 From: "Michael S. Tsirkin" To: Alexander Duyck Cc: Bjorn Helgaas , "Duyck, Alexander H" , linux-pci@vger.kernel.org, virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Netdev , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, Keith Busch , netanel@amazon.com, Don Dutile , Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , David Woodhouse , Christoph Hellwig , dwmw@amazon.co.uk Subject: Re: [pci PATCH v7 0/5] Add support for unmanaged SR-IOV Message-ID: <20180420034106-mutt-send-email-mst@kernel.org> References: <20180315183449.3102.64791.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 20 Apr 2018 00:46:48 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 20 Apr 2018 00:46:48 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 03:54:49PM -0700, Alexander Duyck wrote: > On Thu, Mar 15, 2018 at 11:40 AM, Alexander Duyck > wrote: > > This series is meant to add support for SR-IOV on devices when the VFs are > > not managed by the kernel. Examples of recent patches attempting to do this > > include: > > virto - https://patchwork.kernel.org/patch/10241225/ > > pci-stub - https://patchwork.kernel.org/patch/10109935/ > > vfio - https://patchwork.kernel.org/patch/10103353/ > > uio - https://patchwork.kernel.org/patch/9974031/ > > > > Since this is quickly blowing up into a multi-driver problem it is probably > > best to implement this solution as generically as possible. > > > > This series is an attempt to do that. What we do with this patch set is > > provide a generic framework to enable SR-IOV in the case that the PF driver > > doesn't support managing the VFs itself. > > > > I based my patch set originally on the patch by Mark Rustad but there isn't > > much left after going through and cleaning out the bits that were no longer > > needed, and after incorporating the feedback from David Miller. At this point > > the only items to be fully reused was his patch description which is now > > present in patch 3 of the set. > > > > This solution is limited in scope to just adding support for devices that > > provide no functionality for SR-IOV other than allocating the VFs by > > calling pci_enable_sriov. Previous sets had included patches for VFIO, but > > for now I am dropping that as the scope of that work is larger then I > > think I can take on at this time. > > > > v2: Reduced scope back to just virtio_pci and vfio-pci > > Broke into 3 patch set from single patch > > Changed autoprobe behavior to always set when num_vfs is set non-zero > > v3: Updated Documentation to clarify when sriov_unmanaged_autoprobe is used > > Wrapped vfio_pci_sriov_configure to fix build errors w/o SR-IOV in kernel > > v4: Dropped vfio-pci patch > > Added ena and nvme to drivers now using pci_sriov_configure_unmanaged > > Dropped pci_disable_sriov call in virtio_pci to be consistent with ena > > v5: Dropped sriov_unmanaged_autoprobe and pci_sriov_conifgure_unmanaged > > Added new patch that enables pci_sriov_configure_simple > > Updated drivers to use pci_sriov_configure_simple > > v6: Defined pci_sriov_configure_simple as NULL when SR-IOV is not enabled > > Updated drivers to drop "#ifdef" checks for IOV > > Added pci-pf-stub as place for PF-only drivers to add support > > v7: Dropped pci_id table explanation from pci-pf-stub driver > > Updated pci_sriov_configure_simple to drop need for err value > > Fixed comment explaining why pci_sriov_configure_simple is NULL > > > > Just following up since this has been sitting in patchwork for just > over a month now > (https://patchwork.ozlabs.org/project/linux-pci/list/?series=34034). > I'm just wondering what the expectation is on getting these pulled > into the pci tree? I'm assuming that is the best place for these > patches. Are there any concerns I still need to address or are these > going to be pulled in at some point, and if so is there any ETA on > when that will be? > > Thanks. > > - Alex Sorry I didn't notice you had more questions. I have responded hopefully explaining my concerns. Summary: - For virtio we should add this with a feature bit. - I am worried about security of this for the stub, but I am not the maintainer there. -- MST