Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1899923pxm; Fri, 4 Mar 2022 05:46:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGAyVwHCBmqdUp827L6X+KtyQa7WjVdj8EXLE5+COKwooUAnadSF1BplHwEr106F3dHOpE X-Received: by 2002:a05:6a00:2296:b0:4e1:905f:46b6 with SMTP id f22-20020a056a00229600b004e1905f46b6mr44112813pfe.16.1646401596584; Fri, 04 Mar 2022 05:46:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646401596; cv=none; d=google.com; s=arc-20160816; b=dBtbUAnCr4+5WiYkHA0bLtY1FqAoUraUHmHhqz3K1K1U0z5KTNEH6uYdL1DDDQBqzI kfXFeZtr6gRCVYpDS6g5yUL/jXlHRcDL05kR474tgTDNf7cny7MbDzlpaNKctJxOBQ3x Sq+rEXx1R8u7dF8QofxpKQyMjnaH1DWpQL68iNZN9kNyaSbUpNIbuNZJc5Mr8G5u5TGi H6BlOwkGCIan3Er4OaL7mK1qeGTx+mpm2t9OZZHY6HUiTdO0xowlsUdA1A9dCcugZQx9 l1/YypYiHJsRtMcpoGOtxD6HGHs6RzSfi8S+kdjBLnzIPMjsTkqwNSQTw4LMG40lj1H1 RIeg== 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=U0tGRavF2LoMFztpyM9zwanKHTvpTNcPprChLwu9aIY=; b=cf3u9xxWkFpA68eWfIJiyz9RXE6PRa9PaDqv5gG+tiqEITs8AP5y2bDvQ0x1NaTl4k QVQRAJ5CByVqhQoeGn/5z+MIJNvjXTnMNL/tJHaRBl3JkVgC2YwOhbDYrVHLSCr5wyz/ u2UoDRvSyR+XvWe3RDYswmn9DwZiXOF0KG83QZKFsF85ccDAI7/tjdik1rJl4Ddfzxpb Gi30j1AOzX9d3kBPXZn5aMOgs2/dGuuzygWldnKh3plzFi6C9nxs3JplqTbVNJRj8zAM lHlAbg064YG9h7n9kn6d2dtLY/DRkIuJlxb15UkQXlU8q22BAxh+ssr2Ep8U0EfXoTcr oDjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a056a00170900b004c339eae5c9si4896042pfc.85.2022.03.04.05.45.46; Fri, 04 Mar 2022 05:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238280AbiCDLcn (ORCPT + 99 others); Fri, 4 Mar 2022 06:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237145AbiCDLcm (ORCPT ); Fri, 4 Mar 2022 06:32:42 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD17177D32; Fri, 4 Mar 2022 03:31:54 -0800 (PST) Received: from fraeml741-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K95KR0QsPz6GD5J; Fri, 4 Mar 2022 19:31:39 +0800 (CST) Received: from lhreml719-chm.china.huawei.com (10.201.108.70) by fraeml741-chm.china.huawei.com (10.206.15.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 4 Mar 2022 12:31:52 +0100 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by lhreml719-chm.china.huawei.com (10.201.108.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 4 Mar 2022 11:31:51 +0000 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.021; Fri, 4 Mar 2022 11:31:51 +0000 From: Shameerali Kolothum Thodi To: "Wangzhou (B)" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" , Xu Zaibo CC: "linux-pci@vger.kernel.org" , "alex.williamson@redhat.com" , "jgg@nvidia.com" , "cohuck@redhat.com" , "mgurtovoy@nvidia.com" , "yishaih@nvidia.com" , Linuxarm , liulongfang , "Zengtao (B)" , "Jonathan Cameron" Subject: RE: [PATCH v8 6/9] hisi_acc_vfio_pci: Add helper to retrieve the struct pci_driver Thread-Topic: [PATCH v8 6/9] hisi_acc_vfio_pci: Add helper to retrieve the struct pci_driver Thread-Index: AQHYL1LKWZjK0hk+c061mSNBOxZn8ayu+SGAgAAerGA= Date: Fri, 4 Mar 2022 11:31:51 +0000 Message-ID: <5a7e722a526f46f1818a3113c81fc352@huawei.com> References: <20220303230131.2103-1-shameerali.kolothum.thodi@huawei.com> <20220303230131.2103-7-shameerali.kolothum.thodi@huawei.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.88.247] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFdhbmd6aG91IChCKQ0KPiBT ZW50OiAwNCBNYXJjaCAyMDIyIDA5OjQxDQo+IFRvOiBTaGFtZWVyYWxpIEtvbG90aHVtIFRob2Rp IDxzaGFtZWVyYWxpLmtvbG90aHVtLnRob2RpQGh1YXdlaS5jb20+Ow0KPiBrdm1Admdlci5rZXJu ZWwub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBsaW51eC1jcnlwdG9Admdl ci5rZXJuZWwub3JnDQo+IENjOiBsaW51eC1wY2lAdmdlci5rZXJuZWwub3JnOyBhbGV4LndpbGxp YW1zb25AcmVkaGF0LmNvbTsgamdnQG52aWRpYS5jb207DQo+IGNvaHVja0ByZWRoYXQuY29tOyBt Z3VydG92b3lAbnZpZGlhLmNvbTsgeWlzaGFpaEBudmlkaWEuY29tOyBMaW51eGFybQ0KPiA8bGlu dXhhcm1AaHVhd2VpLmNvbT47IGxpdWxvbmdmYW5nIDxsaXVsb25nZmFuZ0BodWF3ZWkuY29tPjsg WmVuZ3RhbyAoQikNCj4gPHByaW1lLnplbmdAaGlzaWxpY29uLmNvbT47IEpvbmF0aGFuIENhbWVy b24NCj4gPGpvbmF0aGFuLmNhbWVyb25AaHVhd2VpLmNvbT4NCj4gU3ViamVjdDogUmU6IFtQQVRD SCB2OCA2LzldIGhpc2lfYWNjX3ZmaW9fcGNpOiBBZGQgaGVscGVyIHRvIHJldHJpZXZl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