Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7416046rwb; Tue, 6 Dec 2022 05:37:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf64899NkCa2LAezqKXqcGHWJ7KabtjUkxNcg2F0DGqK+k1dXmNPbjm6n2b96idg4MBUzL/v X-Received: by 2002:a17:906:fd6:b0:7c0:aff2:9cb8 with SMTP id c22-20020a1709060fd600b007c0aff29cb8mr19813302ejk.125.1670333853044; Tue, 06 Dec 2022 05:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670333853; cv=none; d=google.com; s=arc-20160816; b=K8FydpweKhW2PVcYHr5P/4s0Ln4rctR/tyWr8yQua4MSAtam2XiCdlwHEdvQQDT9a/ +Yx7H1E5qkhM5qOUOJ0Mmi8kHEsYHtSwVDM9BDEztGvJkZ6NtIbkHwPuDIqvmks3e8Kn 9lKbovQBgS55OBuFfJiKcLF86L2tGIG6lsM7iICC53WqmQMQNKLVSCYmJ/7l63vbHg7I 4EoF9k7XNgF/eYWuYmb4kwWaKJHLC3wL9KSwt6YFAZpDkRlbhmKyIHRx7s9uFFtTOh78 TKRLZZpaTsjriCvkF5TLa41BaBDywyalgyZIjbUZueHY9b0pfXqF85o9hlwGfDV/0Ljy nBuQ== 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=JuClYPutvs1ch2ceEAMGrA7+Pm2rYxeETYueKiMRxUc=; b=LZhF+cSe/D7Q/7bvN2y8vkV3GJ5Y0lXRKaGfyAcGnp7gpQXTECUjBzZEfbccW1b2P2 TRtWKFC4DZu+8empW51d2CyLiyjFNu1JMa+pVE5boSC7jQ4UQ5Q9YmiHtWjMnI0FcN2A w46PR3wjldU+n0LG7jBQR1sEXca7EFgWYwgebczN9Mtk/ZzQNvnBpTUlxIny6MXOJhJ3 xDONjrncr1m1eAIRI+A48P/PIkE3ghh3tkLkDwayvc68MDwYaxVLqnhlRMdR+8CqyH/N mmxnO0L+8ad8w2btzUDO7ebXgI+7JxOEpe+ApFP32QdZqNBN+MnIi79MTQuVysu8FaA8 haQg== 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 er24-20020a056402449800b0045c31d9643bsi1793766edb.2.2022.12.06.05.37.12; Tue, 06 Dec 2022 05:37:33 -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 S235201AbiLFNLQ (ORCPT + 80 others); Tue, 6 Dec 2022 08:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235008AbiLFNKr (ORCPT ); Tue, 6 Dec 2022 08:10:47 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C5ED2DABB; Tue, 6 Dec 2022 05:09:11 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id B000068B05; Tue, 6 Dec 2022 14:09:01 +0100 (CET) Date: Tue, 6 Dec 2022 14:09:01 +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 5/5] nvme-vfio: Add a document for the NVMe device Message-ID: <20221206130901.GB24358@lst.de> References: <20221206055816.292304-1-lei.rao@intel.com> <20221206055816.292304-6-lei.rao@intel.com> <20221206062604.GB6595@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 09:05:05AM -0400, Jason Gunthorpe wrote: > In this case Intel has a real PCI SRIOV VF to expose to the guest, > with a full VF RID. RID? > The proper VFIO abstraction is the variant PCI > driver as this series does. We want to use the variant PCI drivers > because they properly encapsulate all the PCI behaviors (MSI, config > space, regions, reset, etc) without requiring re-implementation of this > in mdev drivers. I don't think the code in this series has any chance of actually working. There is a lot of state associated with a NVMe subsystem, controller and namespace, such as the serial number, subsystem NQN, namespace uniqueue identifiers, Get/Set features state, pending AENs, log page content. Just migrating from one device to another without capturing all this has no chance of actually working. > I don't think we know enough about this space at the moment to fix a > specification to one path or the other, so I hope the TPAR will settle > on something that can support both models in SW and people can try > things out. I've not seen anyone from Intel actually contributing to the live migration TPAR, which is almost two month old by now.