Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7612032rwb; Tue, 6 Dec 2022 07:51:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UoreS55BY/fQ8vMVVkFsv4jv7zev2+TPq52Idrv2WC5vJxmeBXuLpoa4R8MsBeDFhxqRQ X-Received: by 2002:a17:90a:13c4:b0:219:e3de:53e3 with SMTP id s4-20020a17090a13c400b00219e3de53e3mr7859856pjf.87.1670341866584; Tue, 06 Dec 2022 07:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670341866; cv=none; d=google.com; s=arc-20160816; b=Y9Wep7LMRnuTBn8J88gP7CdBu1waz8adAobg6Fj0Wwtq0r4IMjrkNU1Vg15927o571 aHxSwMLk3o5cjSx+pH57bVA7GyZLtRSIVYGd/B+0FSmcYtmNH221BT+xqkoWRyH96WBW Lx66CQ4kgrS8a3Un+sJ1mfOp1R47CdZXq24B3R1IJOTrWroKV+ZrcGsL7FCEVU2oh/ay DHW6zJyDX9L4m17e4/SlYiRinaud1iP2zBT5WeqCWnaKqim0wENP5eBpTVOdJsBs8w1H O8/R0hiEOAFW28Da1+k/hVdKgHbgSQPRn8evchBjbJWkyZOe9Yr7gdfcsVTHULn5bM+C 8MWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TBw4GoLXylEeInY9aM7/58wBqzSxKE5sngF/7k3KKjM=; b=ggbIMPHT6bktYC5tQmfKD2kzSRnXp6I3ZRcAxosGenSCdYBpWifhVWzxEC+/UV4uMQ Bjld7rzC4K0liEsEoG3U4SP6Oaj4mOehuI8Y+i1+sKBV71OKvZ94unjY2w5o9MDIz7xQ QW+hQxZNoHY5KfNavgTMilRkB/an1i6HZ/6/kSPpXrpPvp4A8St9rJkHJwsCeiVmTPOE 48cKviGr2zR4k8Xs4biqa1uq9anrhP1v3qU44S06dDzdqraTsSCDIriRpCIRBDBZT6Eg CM+t0Id4qiRT9W98ytZ/VCx2fUWhV4d/U9VTacDpHrxWbREqlvJtPZ5yylccv+yc1sLb eFrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a63f20a000000b0047895cb23cdsi10717870pgh.647.2022.12.06.07.50.56; Tue, 06 Dec 2022 07:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235168AbiLFPiX (ORCPT + 78 others); Tue, 6 Dec 2022 10:38:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235053AbiLFPiT (ORCPT ); Tue, 6 Dec 2022 10:38:19 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF33A29C89; Tue, 6 Dec 2022 07:38:16 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 832A468B05; Tue, 6 Dec 2022 16:38:11 +0100 (CET) Date: Tue, 6 Dec 2022 16:38:11 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Lei Rao , kbusch@kernel.org, axboe@fb.com, kch@nvidia.com, sagi@grimberg.me, alex.williamson@redhat.com, cohuck@redhat.com, yishaih@nvidia.com, shameerali.kolothum.thodi@huawei.com, kevin.tian@intel.com, mjrosato@linux.ibm.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, kvm@vger.kernel.org, eddie.dong@intel.com, yadong.li@intel.com, yi.l.liu@intel.com, Konrad.wilk@oracle.com, stephen@eideticom.com, hang.yuan@intel.com Subject: Re: [RFC PATCH 1/5] nvme-pci: add function nvme_submit_vf_cmd to issue admin commands for VF driver. Message-ID: <20221206153811.GB2266@lst.de> References: <20221206055816.292304-1-lei.rao@intel.com> <20221206055816.292304-2-lei.rao@intel.com> <20221206061940.GA6595@lst.de> <20221206135810.GA27689@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2022 at 11:22:33AM -0400, Jason Gunthorpe wrote: > > controlled functions (which could very well be, and in some designs > > are, additional PFs and not VFs) by controlling function. > > In principle PF vs VF doesn't matter much - the question is really TLP > labeling. If the spec says RID A is the controlling RID and RID B is > the guest RID, then it doesn't matter if they have a PF/VF > relationship or PF/PF relationship. Yes. Or in fact if you use PASIDs inside a single function. > We have locking issues in Linux SW connecting different SW drivers for > things that are not a PF/VF relationship, but perhaps that can be > solved. And I think the only reasonable answer is that the entire workflow must be 100% managed from the controlling function, and the controlled function is just around for a ride, with the controlling function enabling/disabling it as needed without ever interacting with software that directly deals with the controlled function.