Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp477621pxb; Wed, 15 Sep 2021 06:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk+pQFLRr/Ga1cHEfTPhXFhARZ0Gf4+oR8OGM63Etctf5+ybR8YIeeqTbwwpJ4KXFTT8y8 X-Received: by 2002:a6b:2bce:: with SMTP id r197mr7770ior.212.1631712557737; Wed, 15 Sep 2021 06:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631712557; cv=none; d=google.com; s=arc-20160816; b=oeiSq0mugleDBW+hhb+Ay9BsCquDwvVm+RS6D6WgmyPyxKA4bB9ViVY8HTJVmA8rxl JtswrbJYh5HOZaepL9c7EKFRQJ1g65FnNjmGXobqNqr8uL1eWDQ919qVySVHC2QMH0kh 2e9DRICyvDmBOF2rffAOPZnWyX5IT+v4R+ZPsGaEtccdYEXZultWtNVfvuZU5nK1vuXo BoRPW/Q0RTUII2gGHmsHYmtKPhY4mdmPVuHt6t2/ghTime7sNSSctoTHg+fNh2O9LfZK Sw3BcNQv5uHWOfrIHhpV+0K+WTBgUeHp6LsAy4IOXAovWh34GikvCATSWjia8xOIpvQb oQLA== 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=BQf8pTAPhXXyDdjxa7s/cUD4JhlW4pmcEac02FxWBVo=; b=NXQ7lefznFXg5ccOr5OQApqOq5fabTo71tlf9YdmG9jmyloKLBFI6PRxYbQD1Ii/LM fuD3WmQIbOYCODr3v12flDKQz5Wsh++1vf0LWGPz5ENk63aFCM47pqMKxg6C7WIYxtPz DS7G6U3jaWZSIDMzGBnB6Z0ORUNJ1bvX3EjGScV42oLzfqXHCL8zTuE7W/HXUj3mrdnU 9kFFfZ/7Cwic/wADVe0XFsTj7kMGTB4/ZSd31gpzmj6SU4r+H016s4eZSwtbrCzdoWQt F1J/bV7ocYi0yElDiUFqVlsTmnrpADzCoVdd8fY0Iq16k4V11ds/43jWGQJoukjbCxSv ZFEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 n6si14896436ilk.152.2021.09.15.06.28.55; Wed, 15 Sep 2021 06:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S233902AbhIONaK (ORCPT + 99 others); Wed, 15 Sep 2021 09:30:10 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3821 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbhIONaJ (ORCPT ); Wed, 15 Sep 2021 09:30:09 -0400 Received: from fraeml744-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4H8gwH5cVrz67gsl; Wed, 15 Sep 2021 21:26:23 +0800 (CST) Received: from lhreml715-chm.china.huawei.com (10.201.108.66) by fraeml744-chm.china.huawei.com (10.206.15.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 15:28:48 +0200 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 14:28:48 +0100 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; Wed, 15 Sep 2021 14:28:48 +0100 From: Shameerali Kolothum Thodi To: Jason Gunthorpe , Shameerali Kolothum Thodi CC: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" , "alex.williamson@redhat.com" , "mgurtovoy@nvidia.com" , liulongfang , "Zengtao (B)" , "Jonathan Cameron" , "Wangzhou (B)" Subject: RE: [PATCH v3 6/6] hisi_acc_vfio_pci: Add support for VFIO live migration Thread-Topic: [PATCH v3 6/6] hisi_acc_vfio_pci: Add support for VFIO live migration Thread-Index: AQHXqhdQM13RiELH60aUjxjG41fnUKulAGMAgAAGK3A= Date: Wed, 15 Sep 2021 13:28:47 +0000 Message-ID: References: <20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com> <20210915095037.1149-7-shameerali.kolothum.thodi@huawei.com> <20210915130742.GJ4065468@nvidia.com> In-Reply-To: <20210915130742.GJ4065468@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.83.177] 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-crypto@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSmFzb24gR3VudGhvcnBl IFttYWlsdG86amdnQG52aWRpYS5jb21dDQo+IFNlbnQ6IDE1IFNlcHRlbWJlciAyMDIxIDE0OjA4 DQo+IFRvOiBTaGFtZWVyYWxpIEtvbG90aHVtIFRob2RpIDxzaGFtZWVyY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