Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6370419rwb; Mon, 12 Dec 2022 00:30:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jNalrTQQlHCcZSafYs46J4RcNvM69x8HLeYoWG7hXUY8MRfp7xW+VGyH0aod19ivR3cPF X-Received: by 2002:a17:903:324a:b0:189:854a:fff3 with SMTP id ji10-20020a170903324a00b00189854afff3mr15285093plb.23.1670833827352; Mon, 12 Dec 2022 00:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670833827; cv=none; d=google.com; s=arc-20160816; b=WrV+ZpFIrqKhi6Nu2PWIXfshYc68AW97Z9eOum6Rd4gmXrYEHWOZmLROLVmc4wk7Lz Cz4VskKwA0cG+7hrLtk61IAAk0iVg1MkDbSq0Wg1PjEXyM1iOzJd4nkH7UqMnwFVTVaB OJVzDF6JJPTAwwd1MMQSMExzxvFS9JY4xpyy6+LfqNjljuazvXiNhyoju5iGgNP+7+Fx zAihVyQFklq8hsbGwUxwpxIznmXqkwkh9VNMIjIyF9eJVOyLUI+Ych1CXCtA19Yp0uPW z19DgvL/akK/9kqMWTj3hx5uaF1F/bdli46zAbH2B+ugJV31uVHOGNAt6bwHCnecLVk+ EttQ== 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=lRpJbbda4aza7kCXDaj/IvOV35Xu5GcpVc/Oz1XG05M=; b=GfOh15LAHYmYdmYjUx56CmmIWodya/1RDmZBTNsBxm5/uhQEW8UuImrzALj2Jyq3Px xdH/Lu8E4eFGA1NzbFRCaeZEqryiX4xgnY72O1pbg1AJUfIhrZ6WFfdM8+88n/w77sjq L0Hs/w5MSubVHxbegjgpnzrLidLwP8cLT+yPgBJ86ZMflkkqYsNhDmQJkFIKGUR3wYtS u9pEZaYd8ExPlRLkubivGhWwV0JW0KWMWQOPagXrjmzAVvONlh5Fhu7JiH9pGrOF9OaZ xEpiTAUq5CuLTbShCoJ2tr1tO3NSJWbd3dDwFsdusuymjg74Y38f4N4xr/Eb9d2KZEYJ 4y0Q== 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 v7-20020a1709029a0700b0017f641cac01si8587360plp.27.2022.12.12.00.30.09; Mon, 12 Dec 2022 00:30:27 -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 S231438AbiLLHzt (ORCPT + 75 others); Mon, 12 Dec 2022 02:55:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbiLLHzr (ORCPT ); Mon, 12 Dec 2022 02:55:47 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C283B84D; Sun, 11 Dec 2022 23:55:46 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id A7EC668AA6; Mon, 12 Dec 2022 08:55:41 +0100 (CET) Date: Mon, 12 Dec 2022 08:55:41 +0100 From: Christoph Hellwig To: Max Gurtovoy Cc: Jason Gunthorpe , 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, Oren Duer Subject: Re: [RFC PATCH 1/5] nvme-pci: add function nvme_submit_vf_cmd to issue admin commands for VF driver. Message-ID: <20221212075541.GC11162@lst.de> References: <20221207075415.GB2283@lst.de> <20221207135203.GA22803@lst.de> <20221207163857.GB2010@lst.de> <20221207183333.GA7049@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 Sun, Dec 11, 2022 at 01:39:37PM +0200, Max Gurtovoy wrote: > 1. Need to define a concept of a "virtual subsystem". A primary controller > will be able to create a virtual subsystem. Inside this subsystem the > primary controller will be the master ("the controlling") of the migration > process. It will also be able to add secondary controllers to this virtual > subsystem and assign "virtual controller ID" to it. > something like: > - nvme virtual_subsys_create --dev=/dev/nvme1 --virtual_nqn="my_v_nqn_1" > --dev_vcid = 1 > - nvme virtual_subsys_add --dev=/dev/nvme1 --virtual_nqn="my_v_nqn_1" > --secondary_dev=/dev/nvme2 --secondary_dev_vcid=20 Yes. Note that there is a bit more state than just the NQN. You also need at least a serial number, and also probably a different vendor ID (the PCI vendor ID that is also mirror in Identify Controller and the IEEE OUI), and new unique namespace identifier.