Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp768381pxb; Wed, 29 Sep 2021 09:16:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl9sA7SEXn8NwVZdrJe1rpyPA6LP/aNNWE/rpM9CyLhIP9PPzFGse7Xr0iMTQBxVfxQa5Z X-Received: by 2002:a50:da4e:: with SMTP id a14mr898480edk.154.1632932199525; Wed, 29 Sep 2021 09:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632932199; cv=none; d=google.com; s=arc-20160816; b=UXvxv2twmIkUU6D40Snqr7M+xg9RKJ4Ug6g9V+Y6YOw0t4D5nvXmgaxnUcZ7or9NaE sJ8/eE2QblUoWJmeWtaMvG8TJt56KG+h0tiAnoxQVUVUuPElqJBLYWQBXpPncOWKKRTY sexn+kkJz8WBtrOYO+L5ntNHq86kKZYWNMrY0tWPMNwR1tNYDHzb9GzMvtYfcksG3mUe ARBLF0BkZ8gdh7Zc6CJjaMH0icgl7Hu2s+ie5uFEBYDMsolm5By1DoHo7UGpOALEUSpc JaOIRP29I0HcSfD7YPIpT/0yMZslg6v9fdnan3N0KkNL9DVA/qwmezGdNjM3Djj1UMlx Ge3w== 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=2/DOweLZi1LYkI2NBZkoCxBZv2x+eGa4aLJUobv2L1o=; b=btoHqykf9OKfo5APNRP2jMuCCR7vEQgbFEYD6T3VoOjyofSKqCi74ux0ey1Bo1LcVy ehQ20z8r6SL6fcYVBNk7NHW4SVgYOPJpcRQFJZqjGwJUbJxxNehaxt+O0irF36BVV6yV LDx+CTXGyDOBvKqr44bxg8L7fCkbjCWnr7B4s6B3NEY3tt7PtkFdn5Rsef6ILYck08EG 5UqZybuxbT2kR96UlOYOomkvIwBfSHlcvWuupWPC9jsBAvP3wPN2HmuWVgVB0MCCBwHf tOUr4xU2123Rm4QzdAqszLT5dv1Tu3HiWRCtK+Wug5VY9GFTZ4Z+LJpnLNQuk2OXREa4 /IHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=PboCFsQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si472435edj.100.2021.09.29.09.16.14; Wed, 29 Sep 2021 09:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=PboCFsQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345529AbhI2QQV (ORCPT + 99 others); Wed, 29 Sep 2021 12:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344984AbhI2QQQ (ORCPT ); Wed, 29 Sep 2021 12:16:16 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43143C061762 for ; Wed, 29 Sep 2021 09:14:35 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id f15so2799531qtv.9 for ; Wed, 29 Sep 2021 09:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2/DOweLZi1LYkI2NBZkoCxBZv2x+eGa4aLJUobv2L1o=; b=PboCFsQCjD2723LhLYT/hgjkJdWoO/Qr7CahpEILXMofMHRSJifpiRAfKU1XinqG67 AhaKbB8c6M8JSRC5xiTi7/mAm/tA9MPNU7KxHCJwsT3TcNZEvni9gIYQHpEE2twn3Lb1 XEQAd+awFGQvrjYTvZmCM8JGYWsNB3RPHyweKekQKlu0doslil+cuRJjDW4QCgq+lEPM +n+cIMyeEp1R/IhkNJfh1Av4WkSJThIfSSnZIbzDvJEu3PUwI3+Rbi/hzxYhv46mrVo4 C2Ww+6AXHWKS7AbB4UjQ/vimBLFOVmr7X6zBKKsORWg5TkRoxZSArV+Enk/yQJYpQidO Yk+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2/DOweLZi1LYkI2NBZkoCxBZv2x+eGa4aLJUobv2L1o=; b=2vmZa6Rn/7BQDHwDAcePjfpWSooPcRetN7FLR0UEfk7+b+Ucqp4wenBDmnCvJW6d3V g4YLm9Sx32BqbtkMyUUhqD8BMcpsCuA6inr7t61GTRdaM8SbJICb6WYnxzMuOebgYZDb Cj/apa/G/d4pj69hJGF7Rp/+7maNRs6FfHvKXEQrNXk6eRWClrzfvtQcrS2Rdodw2PFr w0QHxEMd1GAj5CGdbr8P7KVIWbkgfzVaKCyZ/sfGB5HtCA15Q4+Y9vPIZQ6T9Z8RYxox HHhnSCjpijHsLUi/JsxAVgnsOcnv4WCoXtSZ4xdRcz5onubwr6fIOlxesyuAutjp7mPh hXiA== X-Gm-Message-State: AOAM532Mjo+GNcr3Y+CLHr+6Vsg3B3RB0xumMAIr60iwRuDECsGaitay bYRFpmVAHJbJezipgnEpxM2hyA== X-Received: by 2002:ac8:610f:: with SMTP id a15mr758684qtm.387.1632932074489; Wed, 29 Sep 2021 09:14:34 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id v17sm163354qkp.75.2021.09.29.09.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 09:14:33 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mVcE5-007cDu-62; Wed, 29 Sep 2021 13:14:33 -0300 Date: Wed, 29 Sep 2021 13:14:33 -0300 From: Jason Gunthorpe To: Max Gurtovoy Cc: Alex Williamson , Leon Romanovsky , Doug Ledford , Yishai Hadas , Bjorn Helgaas , "David S. Miller" , Jakub Kicinski , Kirti Wankhede , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Saeed Mahameed , Cornelia Huck Subject: Re: [PATCH mlx5-next 2/7] vfio: Add an API to check migration state transition validity Message-ID: <20210929161433.GA1808627@ziepe.ca> References: <20210927164648.1e2d49ac.alex.williamson@redhat.com> <20210927231239.GE3544071@ziepe.ca> <25c97be6-eb4a-fdc8-3ac1-5628073f0214@nvidia.com> <20210929063551.47590fbb.alex.williamson@redhat.com> <1eba059c-4743-4675-9f72-1a26b8f3c0f6@nvidia.com> <20210929075019.48d07deb.alex.williamson@redhat.com> <20210929091712.6390141c.alex.williamson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 06:28:44PM +0300, Max Gurtovoy wrote: > > So you have a device that's actively modifying its internal state, > > performing I/O, including DMA (thereby dirtying VM memory), all while > > in the _STOP state? And you don't see this as a problem? > > I don't see how is it different from vfio-pci situation. vfio-pci provides no way to observe the migration state. It isn't "000b" > Maybe we need to rename STOP state. We can call it READY or LIVE or > NON_MIGRATION_STATE. It was a poor choice to use 000b as stop, but it doesn't really matter. The mlx5 driver should just pre-init this readable to running. Jason