Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1103375rwb; Wed, 7 Dec 2022 08:39:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf42ubgBdmemX2tw+mrncI6QZ/PeJ3pGgpn7QCJM8Ev+MfMFO+7fG2CWkie+n9mHdcmDCqam X-Received: by 2002:a17:90a:d34d:b0:218:a0ce:9d5e with SMTP id i13-20020a17090ad34d00b00218a0ce9d5emr90660671pjx.96.1670431176352; Wed, 07 Dec 2022 08:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670431176; cv=none; d=google.com; s=arc-20160816; b=VBCyc79/LmUzH4UOwZ4VqpaOM5B6Zm4Ppg2r0htgFiZoAR9WM3/z2axlEjrp4sCkPe 8y9Y/KwNgxXnA5DC4WaIOylmQus3LmEIYiNUMAk04duiXWzU23XNXF0DUKvvxRC0kmYd QbPTHYp3/P43YGk79bhS8ZdbkvIPzL58i+VzEHlTL2377pRUWL8FSVnjAMrIhFFA2yqL 9mqDX+sgORxVW+AD9kr0EaU4wYenFc7KPJMT3eqfSCNco7TUIM3B5sBv0B1vqsMIHCef frcDSlL3BmnI6DiDfSy2XEqlBo3FM4DruTsjyzCD0NVfH2gEsUBqIykrkT9LNSsm2K7p DcIw== 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=ev1V7EMVbOz+sX0QM7wf1hPTVfYf6nYQ8XRYUcsAV9g=; b=ayyjUAYM5YerxiYgou7v36vdybHo7RNEIoYUkvCvb0VTSTJWSAeToga+rtU5Lg3RTD pRO2/fTWXj51f2FkZhvuicri50wmM+KuryhuULFz+S5UXGGa8KctMEKwwfmaBOi7ssdF FSrCRKsxgXAuZC4uRkn60VLmLKMLrWx0jgQwQKLYwwgCE9P/qXJso8rYviMw9gYhD1aJ xpxpRqAcr/gDS0zHIUxLrym00V+/hl7ud45lAVDvxbW3TQeNB4OhXQmliscUZlrR7N+j caCErxPTSAleVL3nEUuE7iSQ0UWSaGDLQ7GRMb2k4t+g9S5Fh+WXtolblyCxiRdSDSoL hLyg== 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 135-20020a62178d000000b005775394c99fsi4041709pfx.52.2022.12.07.08.39.25; Wed, 07 Dec 2022 08:39:36 -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 S229777AbiLGQfR (ORCPT + 76 others); Wed, 7 Dec 2022 11:35:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbiLGQfP (ORCPT ); Wed, 7 Dec 2022 11:35:15 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0EA356560; Wed, 7 Dec 2022 08:35:13 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id DC7F367373; Wed, 7 Dec 2022 17:35:06 +0100 (CET) Date: Wed, 7 Dec 2022 17:35:06 +0100 From: Christoph Hellwig To: Max Gurtovoy Cc: Christoph Hellwig , Jason Gunthorpe , 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: <20221207163506.GA2010@lst.de> References: <20221206135810.GA27689@lst.de> <20221206153811.GB2266@lst.de> <20221206165503.GA8677@lst.de> <20221207075415.GB2283@lst.de> <4f11e0bb-e090-bf9b-4f98-578273865200@nvidia.com> <20221207134644.GB21691@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 Wed, Dec 07, 2022 at 04:50:00PM +0200, Max Gurtovoy wrote: > When we perform step #3 we are narrowing it's scope and maybe some caps > that you're concerned of. After this setting, the controlled function is in > LM mode (we should define what does that mean in order to be able to > migrate it correctly) and the controlling function is the migration master > of it. Both can be aware of that. The only one that can master the > controlled function is the controlling function in LM mode. Thus, it will > be easy to keep that handle inside the kernel for VFs and for MDEVs as > well. Maybe. So you'd introduce a kernel linkage that both side would have to be part of?