Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3971093pxb; Mon, 27 Sep 2021 06:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjI1Q5+ECsGw03ioaWuwRhiadJt8eo28pKG6U+kH4RqPlE8QFX87ZviTkg8Oh6E0Ao39r0 X-Received: by 2002:a17:90b:4f88:: with SMTP id qe8mr20463332pjb.22.1632750425693; Mon, 27 Sep 2021 06:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632750425; cv=none; d=google.com; s=arc-20160816; b=vXiDJH2iuOgqQoyxQac2OwJe2vchSG06ZDuORFwIIR92z16iFO+zEx/mOHV+r73Mbi cfZsAhJJYyeKWTQrLr7rzKi7UA2rrkw/O5DD0MEP9of9n4ccHtMhXazvaVfK7uPzaGvT qggA2+tXaY9XAVMURkawKDg1Ap9NTCjSMFthY0p314JrIY8G1D3uP0RlT5zA2OC5PSSs YyufZYvvVC/1A1gZtdsnlxrSdU27Ngu1YkTivmVEXPuKIZGZurYGDCeB1t0uw/2hRnio IQoSfNnOlLniiqFNnQ+2H04ZRERYzQ1g+ZcN6XJ2vLxDG7zlVOW3P5EPcKAB95yaZM/+ wtVA== 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=WVReeXjSGblRpB0fqs1EVEdqhe0iIainWJZHVmQNvkI=; b=Tsk9GJJ5H4/jUIBDvNWyMPwg13kLwMwj0xFb6TJaGsREsTXDw1EMTcj5I0jonKEXjV AWxajKeCKlbSA3KWN76MXd0elgea7D9EAMdC9ztxzG4v2ByG7QwqO3uG8il8hw0K0eop y5GE7fYBCub3aKRBhohxI5NPnco/8X+jBicFx6/onBn7tdL1s3KcjF8Jr479xhJs5XrY wFtsbK4ngKbLrk3Wwe2fI8nX9fs+wqT4gd3Ci/MjJ9mBOWuG/FcRW3BpsWyLSk+j/1sg paz6fh6ZlX4oHadfvJh7opp8bLX/c9GppEyjX6MC5MoSkJh9Wr4MxcXcEs/MtsnVote/ r7Fg== 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 z7si6522848pla.308.2021.09.27.06.46.39; Mon, 27 Sep 2021 06:47:05 -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 S234114AbhI0NsP (ORCPT + 99 others); Mon, 27 Sep 2021 09:48:15 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3881 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234365AbhI0NsM (ORCPT ); Mon, 27 Sep 2021 09:48:12 -0400 Received: from fraeml702-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HJ3kV5c1Wz67Zx5; Mon, 27 Sep 2021 21:43:30 +0800 (CST) Received: from lhreml711-chm.china.huawei.com (10.201.108.62) by fraeml702-chm.china.huawei.com (10.206.15.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Mon, 27 Sep 2021 15:46:32 +0200 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by lhreml711-chm.china.huawei.com (10.201.108.62) 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 14:46:32 +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; Mon, 27 Sep 2021 14:46:32 +0100 From: Shameerali Kolothum Thodi To: Jason Gunthorpe 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: AQHXqhdQM13RiELH60aUjxjG41fnUKulAGMAgAAGK3CAAZpfgIARVJdw Date: Mon, 27 Sep 2021 13:46:31 +0000 Message-ID: References: <20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com> <20210915095037.1149-7-shameerali.kolothum.thodi@huawei.com> <20210915130742.GJ4065468@nvidia.com> <20210916135833.GB327412@nvidia.com> In-Reply-To: <20210916135833.GB327412@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.80.194] 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+IFNlbnQ6IDE2IFNlcHRlbWJlciAyMDIxIDE0OjU5 DQo+IFRvOiBTaGFtZWVyYWxpIEtvbG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