Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7527557rwb; Tue, 6 Dec 2022 06:55:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wnYgG4LkjhLHsaXkDw+4vbo+N7Gvq+YFo9OWdJzQeTTxq+8fTLtbzbexwIQehTOF0VuOE X-Received: by 2002:a17:902:cf04:b0:189:d1d6:dce with SMTP id i4-20020a170902cf0400b00189d1d60dcemr11528851plg.151.1670338541774; Tue, 06 Dec 2022 06:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670338541; cv=none; d=google.com; s=arc-20160816; b=vhOnlWys1CXaRQhE6793Q+vAMHIHTwZSLizwAlLJu+Ri4YKOQ+xJueJS7tMLGU05DL L2I3R23qf9b+YwusbeaIhAB6W+wktfkqCzko7vvR3a2D5VHqZhUkG47CvY25thYtYIKe 9K0WIh/01LsoXwA+0aq2kp1R2debFR215VwzqE1pBmGA0/7u101nWuO4J36qBFpG1+Da 0DZYCytrGA6APW42HH2ApEgcDhJhrdwJeaeLKeY6OCWbdiv9DbJ4lQs0yQFZZ/E8DcLs vIUaSisLRqgk9DYVNow0hm+qsMaHk2Ki6fsWf9GL1muusvJLAPCiao5spKA86T5yis6q /JEQ== 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=9p1ZzFb9vnzpJ3XA7E3Oyvivu73Y47wj+L+tolNcayQ=; b=mCZVaWWRqYfzXOvOWv9sKw/569Yu09oTmpqJdCjaPW/FzoCJcTzp32oPvAlYNILtru 0WP9SUpJwRlxXow6uhZN3zLu0L6nsoo1hEgijZ71Wf3fMZ8ylsAm22txVIz5Iv7+N3yF vMjyFIPJOz7I/pITZ6ZSYGhZ9PEk72wpXFFDdWr2ZkNYLEsV7g9AgnRkSFQbivkymyq1 PxSaAWZRIIiBcLUiVek8+eiZh/FnSzH8LfcJmDfhTv6C93koEWdZTY05C7l2LjZZ3uLn 2fwNV0+29pmnx3WARoM1NWJUsrQBcwTODYIVrJTYCVgNlMv9z4V9NW/zZdb0XuNHdQli /ssA== 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 u62-20020a638541000000b00478b6aa0363si6709531pgd.218.2022.12.06.06.55.31; Tue, 06 Dec 2022 06:55:41 -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 S234455AbiLFObj (ORCPT + 80 others); Tue, 6 Dec 2022 09:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbiLFObh (ORCPT ); Tue, 6 Dec 2022 09:31:37 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C571B7A3; Tue, 6 Dec 2022 06:31:35 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 5F41368C4E; Tue, 6 Dec 2022 15:31:27 +0100 (CET) Date: Tue, 6 Dec 2022 15:31:26 +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: <20221206143126.GB30297@lst.de> References: <20221206055816.292304-1-lei.rao@intel.com> <20221206055816.292304-6-lei.rao@intel.com> <20221206062604.GB6595@lst.de> <20221206130901.GB24358@lst.de> <20221206140002.GB27689@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 10:20:26AM -0400, Jason Gunthorpe wrote: > In the VFIO restore model there is no "live OS" on resume. The > load/resume cycle is as destructive as reset to the vfio device. Of course there may be and OS. As soon as the VF is live Linux will by default bind to it. And that's the big problem here, the VF should not actually exist or at least not be usable when such a restore happens - or to say it in NVMe terms, the Secondary Controller better be in offline state when state is loaded into it.