Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6388009rwb; Mon, 12 Dec 2022 00:51:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YSeTaKRAJQlVs+ckZYY3+hUeYAgG9jVvyMy//LtkmOrah50qxUDThyWZ0+4kO1YQBTbWx X-Received: by 2002:a05:6a20:7f89:b0:a3:a1ee:47ca with SMTP id d9-20020a056a207f8900b000a3a1ee47camr27013249pzj.46.1670835065252; Mon, 12 Dec 2022 00:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670835065; cv=none; d=google.com; s=arc-20160816; b=MAJdcfW99JMgATsF+Oaru4HkKgE0KeLC5gpFzFtrjux3vMhjtp299N4kc9foESArGR Bf7lxq2ej2XSP2zQJql813cLbxsmB5LOoD/8tNXc0h8pdkdU9G8PSJQScxaYjq07d8ql ewuQvBHUp8H/wuY2bp2QxcvwfeGAgfsEAoSeOLt04oShjOpT0h+83EgZ4zYiejgtozVi AQy8eCAWd8Bon8SO00iB+6Nc2SHZ0lysroTnJkIKrKo7Wtbxs4m35SjD3QVJGBTmolkn FZgKIBXXidS0sXw+mKjYfdOIlIjJq/tjz49pwKt69llw9Chlr3URxcfpseHnd8C5fyAQ NtKw== 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=bLUDrSGdWzdKZERgAr7jfBsBF+ux277QdvOu3IszU6g=; b=MbvlaDFKj8z8kI44QA6l9dkXqnPsptBGarivZul5TTE8NL9XvKR85h+SdLtevze+J3 h2SyaHijnFj6F1ptG1zaRpccjA0B19WcEfyVv+QAz3px8rMlK5JBX1FIqMZ+fFrblo0A mObeyVq6Cy2qpF3jfNOxRpo3OTsw35FsUGnR5YPerDn1dEwTQ8RqUxOQ6ZzM56GvYBA3 xTusoCFiMH2+4QAARYxYTrXjmGVTLWv+d3fz1/CUIE/aenXnNSkNYFEJ8R5JLzeTCi55 6IbpEbLCfnPyX4uoSGefUUxfgT196uw+fdDCr371OQ7st2Nr3TZMUSBUWFH6kbat2A8o vrug== 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 69-20020a630148000000b004403ddda6e6si9404283pgb.847.2022.12.12.00.50.54; Mon, 12 Dec 2022 00:51: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; 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 S231492AbiLLIJy (ORCPT + 75 others); Mon, 12 Dec 2022 03:09:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiLLIJx (ORCPT ); Mon, 12 Dec 2022 03:09:53 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5704BCA9; Mon, 12 Dec 2022 00:09:52 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 24CC067373; Mon, 12 Dec 2022 09:09:48 +0100 (CET) Date: Mon, 12 Dec 2022 09:09:47 +0100 From: Christoph Hellwig To: Max Gurtovoy Cc: "Rao, Lei" , Christoph Hellwig , Jason Gunthorpe , 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 5/5] nvme-vfio: Add a document for the NVMe device Message-ID: <20221212080947.GA11892@lst.de> References: <20221206130901.GB24358@lst.de> <20221206140002.GB27689@lst.de> <20221206143126.GB30297@lst.de> <20221206150131.GA32365@lst.de> <9bc8e614-a687-e419-f9fd-e3177cfb41dd@nvidia.com> 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 04:51:02PM +0200, Max Gurtovoy wrote: > I don't think that medium migration should be part of the SPEC. We can > specify it's out of scope. This is the main item in the TPAR in the technical working group, with SQ/CQ state beeing the other one. So instead of arguing here I'd suggest you all get involved in the working group ASAP. > All the idea of live migration is to have a short downtime and I don't > think we can guarantee short downtime if we need to copy few terabytes > throw the networking. You can. Look at the existing qemu code for live migration for image based storage, the same concepts also work for hardware offloads. > If the media copy is taking few seconds, there is no need to do live > migration of few milisecs downtime. Just do regular migration of a VM. The point is of course to not do the data migration during the downtime, but to track newly written LBAs after the start of the copy proces. Again look at qemu for how this has been done for years in software.