Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7626634rwb; Tue, 6 Dec 2022 08:02:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vs8QeHIwX9Y4MKm92Wxwc1kptJt80cN1ucJTG8/FjqFhtSCOAT2gyoOA7AzH0lJDAYObu X-Received: by 2002:a17:90a:5991:b0:218:47f1:b47b with SMTP id l17-20020a17090a599100b0021847f1b47bmr94016703pji.201.1670342525512; Tue, 06 Dec 2022 08:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670342525; cv=none; d=google.com; s=arc-20160816; b=onNDcrTabnqDwmLLsmUsR11g9VEsaYwUB0VUBV/ZkVwIYJQxD+244ECjQnmRJOe0G/ dZxcQqxvIp+lsCw25iMtH4yK4uV3yBaAxagJ8PzLJZrvBzESkuc1TGEtYJIc/+pxd8qm 8dieMWk2Vb5NdyV9FX/pp5R4q+n5Omu8ZOcsY5K56AObQtqnJmbT4FC2Ay+809APJ4RQ nnK5NOvK6yk+ChzBZT0mufg3XTWwIaJUXjfFNB8Ut1XDc4uOfuGOR8OdE3okUCdLoHv0 bhLMhQJX+NYgzZOjfOD83umtM3dENOPN6zQO5JGDDROKA9M87kUazm9TVyOjr2cGZYGt wA7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UbvbC5wWAbTk1+A45QMi3yV7gKIuXUVlv7TRLX6QDzQ=; b=DV1MVb2begxf7NFyCsbLy5f/DDahnaEdQAIC5x/Pg0Hx0Ierl7H4Cxek76VYEQA6Ai JezTkYiJNbsVsHEfmKBhRXpMyJw6ABtbXRhwIBI9FSFqyl2TibqA77nYTp1hSq/cPAUq 4vP3iUz/XNspdYpI0N1XEo9JEp27dcAK+TFHsF7Hswwxgf8pC/JZ1T98ra/h/xWv4aHm SumfWW4Z85PwsRYXasxUuiZbowfn3AP9uQMjk/jE6gDmRfDxZC4gaTmqpvPUjIOzlnfX 6Zh4JDFLOlwi66URdiYsygKc1FdMEF/ZLtDdkidKNTo7lxZxk28xNjmRrPpXSz1j2tJl 8qIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=o2pfBKad; 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 lk12-20020a17090b33cc00b00213dce992c1si20077276pjb.7.2022.12.06.08.01.54; Tue, 06 Dec 2022 08:02:05 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=o2pfBKad; 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 S231255AbiLFP2R (ORCPT + 78 others); Tue, 6 Dec 2022 10:28:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbiLFP2Q (ORCPT ); Tue, 6 Dec 2022 10:28:16 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B43286F5 for ; Tue, 6 Dec 2022 07:28:15 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id x66so14843955pfx.3 for ; Tue, 06 Dec 2022 07:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UbvbC5wWAbTk1+A45QMi3yV7gKIuXUVlv7TRLX6QDzQ=; b=o2pfBKad+xs/gHyi3mDpxXl3Ejx08rQwd7nDOZGu8tih+03yTLG9XNmst/u1NsCpd2 kyGJtZ5d7CWoKzweigchYufl1D8gierL43WqERJwGSSQeRHqmRZWusQ6eSD0wl6ytQAR PFhlOF+Zravyw5C5LhmVc6V5UXDs6Ieixn7Z71yBPjdl7i+Rhqodee7VZzSZxM6gbJ+M mUv+e7BMb1dEYVIavlac4VR+uJPX1dz2MgumEnsBWeA5UZ3V9ne5rWYEA66kFu8C1QG1 JYeIna0Nvi7bBdxHdo5P39G0mu/SsSFQ/pA0afbIWx+7D7CDy0/xKN1Q9huuXlirg552 jxng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UbvbC5wWAbTk1+A45QMi3yV7gKIuXUVlv7TRLX6QDzQ=; b=Cmkfj5FVcVjjxZaUYJetY1ndj2Yg5WMpMkzu1JVcIUOzp1G3zxUlc6M3HERyQ6ne5d lZHkmxikmBRkv2AskSJ4vfiVl53jFiLlZVlPbE5+2h0L+phoKjyUeJo5Q+56fYOmNnxi DghLCZmHqRMgcQ/B9BaAGEisdnx5IkplyAW7SUdzgcmt64QGmHp3Q1auyrqSrSN8j2gH 4lrpSrntfdzFZj1dahyTTDNYdkB+9smU5Y41xsHXfd+fkwZ+MJgUJQncu3PnXnvpA5Nr vjFMNJVlvHxRqrG8xdbzCgzUp98nQSXsSJQMFRG7KuEoj4h4nISSLDmM17fSuhi29d7n crmA== X-Gm-Message-State: ANoB5plr/kwgm0TlogX7FBIgdQLHZCiQAFPdnzWjyliI+ttF0UPMzCEy hyoi9KXCJoE1+yGxE/vhqszrhQ== X-Received: by 2002:a63:1865:0:b0:478:b1f4:1661 with SMTP id 37-20020a631865000000b00478b1f41661mr10871408pgy.317.1670340495049; Tue, 06 Dec 2022 07:28:15 -0800 (PST) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b0016c9e5f291bsm12848547plh.111.2022.12.06.07.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 07:28:14 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1p2Zrg-004crv-OQ; Tue, 06 Dec 2022 11:28:12 -0400 Date: Tue, 6 Dec 2022 11:28:12 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: 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: References: <20221206055816.292304-6-lei.rao@intel.com> <20221206062604.GB6595@lst.de> <20221206130901.GB24358@lst.de> <20221206140002.GB27689@lst.de> <20221206143126.GB30297@lst.de> <20221206150131.GA32365@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221206150131.GA32365@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 04:01:31PM +0100, Christoph Hellwig wrote: > So this isn't really about a VF live cycle, but how to manage life > migration, especially on the receive / restore side. And restoring > the entire controller state is extremely invasive and can't be done > on a controller that is in any classic form live. In fact a lot > of the state is subsystem-wide, so without some kind of virtualization > of the subsystem it is impossible to actually restore the state. I cannot speak to nvme, but for mlx5 the VF is laregly a contained unit so we just replace the whole thing. From the PF there is some observability, eg the VF's MAC address is visible and a few other things. So the PF has to re-synchronize after the migration to get those things aligned. > To cycle back to the hardware that is posted here, I'm really confused > how it actually has any chance to work and no one has even tried > to explain how it is supposed to work. I'm interested as well, my mental model goes as far as mlx5 and hisillicon, so if nvme prevents the VFs from being contained units, it is a really big deviation from VFIO's migration design.. Jason