Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3249129pxb; Sun, 26 Sep 2021 09:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylEsKDsYulwAtH4Q0QYyLCpSiGSEeFh3sGzpKSqUycdxifvY2cR/YMkfsIS054KswREpCW X-Received: by 2002:a17:906:40c3:: with SMTP id a3mr23044276ejk.38.1632673347894; Sun, 26 Sep 2021 09:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632673347; cv=none; d=google.com; s=arc-20160816; b=axCoGNS6SVhcFjKVhwvL3itJU+nFyTNL2hPOKD6wmRP3B/KBYpqz5FO2a3WTsUclFP /lmM8U1tOTWtzBBnvQm5V20dLy6EN2+jQLsPcxLNgkV/wskkEu4gGF2UOvZxt6Ja+e+e mMAhvUfg5yLsqJjxumQ4OxBywPFoE3q2ZOxxJ/ricdQn1vKeLBPFzKvcK1Q2CU4gIZSe aLrRutJ9JsyPWeECz2KgpbYw6YJRkZFIOG4MfLnX4njR8PVUkkGSxV6wz6z0VS1ovJO7 fgvwrKAO79d3hNVLgP8193ZimZkjEdK1SCkHBtqNEDpvGMiSlVMAnkTY8UneBIwOC2yb wuRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=HpChqIWRyuX0laOj4YDLed8FcdGWcAsTPOL27waUss4=; b=Fvsx9ouCqaS+rTtDbtMsiK1DTxBVPTiyK1/OZghmYQDUPbtaAH45jbkfMOLFdGHUfe nRfTFLT3TiGO6Py7v0wVBY5vrloDx+fUnTURZjiq1SD27XQWrbbibv1FUySohQ04F9v6 jisG9yLszsROAiwamsZAw1cI8V7bSfW0XZqWOBQwHLI4uLddzfe7Pvx+EV9rQmfsthiA MLlQ3PWTh1x0hTJxBdk7X6d0PPLiyUBaBO7yRn5UuJlobLK5fg5WDaY7Z9CnRSuPg3oJ ghAbF0l+SmaZBkAvjuRtMMp4tXj8em9BWPhC1DhQVDQJmyUDCr5hIjEPPJx72txBbFtN N/iw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si18940189eje.501.2021.09.26.09.21.38; Sun, 26 Sep 2021 09:22:27 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232055AbhIZQSw (ORCPT + 99 others); Sun, 26 Sep 2021 12:18:52 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:20370 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbhIZQSv (ORCPT ); Sun, 26 Sep 2021 12:18:51 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HHW5M23ZhzRPLx; Mon, 27 Sep 2021 00:12:55 +0800 (CST) Received: from kwepemm600007.china.huawei.com (7.193.23.208) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 27 Sep 2021 00:17:10 +0800 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 27 Sep 2021 00:17:09 +0800 Received: from lhreml710-chm.china.huawei.com ([169.254.81.184]) by lhreml710-chm.china.huawei.com ([169.254.81.184]) with mapi id 15.01.2308.008; Sun, 26 Sep 2021 17:17:07 +0100 From: Shameerali Kolothum Thodi To: Max Gurtovoy , Leon Romanovsky CC: Doug Ledford , Jason Gunthorpe , Yishai Hadas , Alex Williamson , 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 , liulongfang Subject: RE: [PATCH mlx5-next 2/7] vfio: Add an API to check migration state transition validity Thread-Topic: [PATCH mlx5-next 2/7] vfio: Add an API to check migration state transition validity Thread-Index: AQHXr54pt96rmXk0YUaXSN2Kf89+2auxakgA///+2wCAACw6gIABM1JQgAMzv4CAAIdJsA== Date: Sun, 26 Sep 2021 16:17:07 +0000 Message-ID: <85743eabdae04d08bb5eba7b6857496e@huawei.com> References: <42729adc4df649f7b3ce5dc95e66e2dc@huawei.com> <60989aa8-4231-0cdf-47bb-1e2026bd1f17@nvidia.com> <164439bb579d41639edf9a01a538a5ef@huawei.com> <078fc846-1f72-adc0-339c-1b638c6c6e33@nvidia.com> In-Reply-To: <078fc846-1f72-adc0-339c-1b638c6c6e33@nvidia.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.87.241] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJv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