Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2356093pxp; Mon, 7 Mar 2022 13:40:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJytTn+xdKly+HU+781QajIcJOTgFjShKjxbUhLybbH+gsRAxaUttrw9U9WmMYop7vHSCZcz X-Received: by 2002:a65:4845:0:b0:325:c147:146d with SMTP id i5-20020a654845000000b00325c147146dmr11622572pgs.140.1646689249508; Mon, 07 Mar 2022 13:40:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646689249; cv=pass; d=google.com; s=arc-20160816; b=VxKR/r7czES82JwZ1/PUvq1GThUji+lzk0MTSuHwo0oUC5vHMd7d0VkS92tJcJpSKM rst6rn9krnL9+6cL7Y2AHwtB/OMODTKbzFdza1GVqKxiocXf2qIxqYfgcT/8B2gJxFIy G7dTPX8AttJIOSVd9FcKlJvw/paOkXStEPdCiDUTGU7vrKszPTIsKfRpE8fvbPIyRi8q GEQCTju/6TgPEocbHTMVzOiDDdQgDAlVAkXSR7S1+M7g9xsejt+pEZ9qP8/IWrewVnJx kwN+MrMbCEoBo7S9+BJSS8Phmutp+/YFWbhSHGVewVe0MNFker0nuwUmOGSl1ekPlOCJ X3Lg== ARC-Message-Signature: i=2; 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:dkim-signature; bh=gXIxQNc3ERy7SEjfYONhTyxsivP6Kt5jJAx0d49/tQA=; b=VD/uilcOGydyuXqcd/9qt/xGkoxGq5vXt9pfUNeBrN1XMqnyeWDhGbd4F7n/b8lyVw wEXDHUxR6vdgzcsS+3c6oVHY9N4eE8iN0UYnpVTvLqAsJYbHKaB32PCdMoIVVdZmo8dP FLqzd7YClxj6xmb4rIa1/SE5iyV2isheqhJ12/ug/tIPzypZr9542D/TZ1CLZ3H9HMQD G4J5yINyufwVALI8LUZ6znFZVoF26+/WiBJtHLRJUyPAfunEHxET+scF6zZb38/3KZgR +R+yeAkdENBFqcs8q7CTbafDzQhzMgFzeOz0TAP0u2IC68pOHHjGqUcqvvJryQDfM/HT A8lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=MjUMW4LL; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170902f60c00b0014f446bdfc6si13458541plg.585.2022.03.07.13.40.33; Mon, 07 Mar 2022 13:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=MjUMW4LL; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241750AbiCGLCP (ORCPT + 99 others); Mon, 7 Mar 2022 06:02:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241748AbiCGLB7 (ORCPT ); Mon, 7 Mar 2022 06:01:59 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2042.outbound.protection.outlook.com [40.107.92.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D108F4FC63; Mon, 7 Mar 2022 02:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UrWL/959lXi5z3B2oCRCFBkMtKtcgiRDtjr0HlrrpMsi/qECCRDmkDVN7Ud8k1M1P/VO0uuWuSjM2PX4MTy2RHo5y3EVJdkGxY39++C11JqSruX4LlPu0ZDoQaiapK2EU4zQ5Cc+98axiTSNGVxPNI1lAzBtnTG2Gx3c2X0KYhEU5w6qIdJ4HHG1KAgfUTkjqJTbP93x6YkGFfaCbLFPU7oz6VsymeNS6N0YRIHlDfLiP1icteGJ4U9RHjAB3g5xqS9FdGmSIVHyOu/HhsGOT9UAdkcqhAx4l9f2rbwiukLFTClDWpN/N1I1iw+SzxCzcBcozrqLtd2P/WkfAVYKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gXIxQNc3ERy7SEjfYONhTyxsivP6Kt5jJAx0d49/tQA=; b=lr30fkDYZ2MeKbbpZKBUALEZGIf+of3q0ECM5R4Uvt54kVvU+zE4H0vQOLFarUos6MniX32N1yUYXW2tXzbjL8uO5gpRwwxY2BtIqKmnOTXJITqgxqVrnu4drY6/3FzKIMEm9MOX02FeHz4RzHn51UqQ9TBzkGFDhkQO2UCh8Er4QiOaxDdjs3FiZbK23QUGr6cOM1zxVnFDRT68n7SlQOey37GDvuvXuTSQ/Tkcupf5TmInL3p/olhOkjEeGu/ClVtAHF4xF1gw2k6WcnFtZlt9IDl/pNC+KeFPgeCxJtDpze51vwR0nlSU7m5jjmvGlfqsqz7vs2O3NWUildwlFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gXIxQNc3ERy7SEjfYONhTyxsivP6Kt5jJAx0d49/tQA=; b=MjUMW4LLqv/ZL573CAkd3cYQnsneYzO5+2tSOCsb5EgInZ9XfI88+0l4gOo4E+Nyf4M5pbJRHEFdKDNngZCHJ/SyYE7Sd/JTMyY2UEIQdXZtOmSqH2yd1gjw97SowLved2KT9aocaR3JApA8/bhQwvC9P43Uhn4MY3kw+0NcbWY= Received: from BY5PR02MB6980.namprd02.prod.outlook.com (2603:10b6:a03:235::19) by CH0PR02MB8180.namprd02.prod.outlook.com (2603:10b6:610:f3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Mon, 7 Mar 2022 10:23:38 +0000 Received: from BY5PR02MB6980.namprd02.prod.outlook.com ([fe80::ed57:1b66:1f0e:54bc]) by BY5PR02MB6980.namprd02.prod.outlook.com ([fe80::ed57:1b66:1f0e:54bc%7]) with mapi id 15.20.5038.027; Mon, 7 Mar 2022 10:23:37 +0000 From: Gautam Dawar To: Eugenio Perez Martin CC: Martin Petrus Hubertus Habets , Harpreet Singh Anand , Tanuj Murlidhar Kamde , Jason Wang , "Michael S. Tsirkin" , Zhu Lingshan , Stefano Garzarella , Xie Yongji , Eli Cohen , Si-Wei Liu , Parav Pandit , Longpeng , virtualization , "linux-kernel@vger.kernel.org" , kvm list , "netdev@vger.kernel.org" Subject: RE: [RFC PATCH v2 15/19] vhost-vdpa: support ASID based IOTLB API Thread-Topic: [RFC PATCH v2 15/19] vhost-vdpa: support ASID based IOTLB API Thread-Index: AQHYKcVyRaUtYEf/EE+2HyOQx+m9fayvkRAAgAQ1GkA= Date: Mon, 7 Mar 2022 10:23:37 +0000 Message-ID: References: <20201216064818.48239-1-jasowang@redhat.com> <20220224212314.1326-1-gdawar@xilinx.com> <20220224212314.1326-16-gdawar@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=xilinx.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dda50a93-0527-410f-cdbc-08da00248b0f x-ms-traffictypediagnostic: CH0PR02MB8180:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3xcHUmBCUBxf8IB4fX8vRzmUGXIeOjTVfht2iVIBaS7kOUkZZE5K2DYoC8ZjijbIFonChyHX8u6ZWGCjKMZDjAUtSfkCm6UeOivMD82p2+s3j9hsuLarOfoEQAmCM+ye2idLjw5qGhI6YOnPK3C+IeOkVrRfaW7kY+BaqnvNFKlToJOI+aJUBSI2jN1XeFcHLM9WlF1KGOeGngHF7atc87k5oxk1vrbTnb+l9tIA0L9xASGoEsIllOlCyzXwJr1thf25LL8fulPhh61LvSVXHuq5FS1bpyfqwniGt7C4SSBlcbx1sCeXDXQg5gsTP6f35HbKjmgiFIL16Xck7tK+0km6eRZrCitJJUwINcRxgrFoUk3rlizXpgBmGyT4GIdtnrH7KLOpTGJ8kGKliXYzF4Bkka6eMhrDxF+415urs5pcOf4E3jFypN+EPGoA1tKvaqlMhooHVl0zVeMO1dKiL7t4dh/3s3NO8OPUkloi46U3YKxcKbrjzIWbicHC765C7DgfJHsObZf2wEzoQt7YPXTLRma7C4Q+yW47QuMchhejHAxDqEUiBXhCis87TXtkn9xEL/gSEdJv5KymknYM6Jis5t5cqx9QfP6VKS0SaKkgvzBMyAeNTsGW8oAh5DgdtLwJ+eKAKCzpr+xt6AblhMmEd1k98J+qdvfB1lMwWwS+Ty6DnlLc/YqljkCCoOCndct31uG4neENSCz2UlG90g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR02MB6980.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(508600001)(6506007)(7696005)(52536014)(53546011)(33656002)(8936002)(66946007)(7416002)(5660300002)(86362001)(9686003)(2906002)(186003)(26005)(8676002)(4326008)(76116006)(64756008)(66476007)(38070700005)(38100700002)(122000001)(55016003)(71200400001)(316002)(6916009)(54906003)(83380400001)(66556008)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?L1dndHFoVnFOVTMwUUZyNkx2aS90UndiNHhMMW5VNEYzSHcyTFNiSklhTmlh?= =?utf-8?B?UkpzektuZ0srdURPbmxoSVRMK3FXYXBCV2xxWU5kajlSa3RVVTJIZXpPRUQ3?= =?utf-8?B?WmFQRFRaeXlSSHcrRklONTFsNVdtbDRCNzVLZTRmWXNydzJJRFVXUVZzUEFN?= =?utf-8?B?cE8wdFhodDNJT2NIZUxybnU3VnQ1QzlueCtoYSt3ekNCWXNScmswMTEzNHpl?= =?utf-8?B?N25Ra1lSeWJ5eHkvZCtlYXNGZzBjYXVhWlF1VjlZMDdSc3A3NVdEK0ZrQVdZ?= =?utf-8?B?Wk9FaitvM0dEbXIxc1RlbU5ReHdlTURRUENQM0IybnQyMkl0T054WWhUaU9X?= =?utf-8?B?RGNzSnlMeDZQcm01eFB3Tk5BRVlCdXh5UUplQVB3NmxUVWtZNEN6ZlUySUNJ?= =?utf-8?B?MGNNKzM3QUhtQ3hGdElxYThrbExUT2lHSHZNZS9xek03UngyaFV3dkY2MTRR?= =?utf-8?B?UUFNbWIxL3V5SlJs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f-8?B?SC80TWZGcWp6K2pnR1drSFlnd24wV2FJa2RSR0p6bW9lVVlZVmE5TUtWanJk?= =?utf-8?B?MStENGdMUnYvdUxCYXdiRG55b29uZzhINjJZMmhtZHBLMzRGbzcwSG01YStU?= =?utf-8?B?Y0JaR3l0eG4xYUQ3ZERuYkkvWWVNT2NkU3dNUFlzNHI5YUFKT29UNTBnQS9Y?= =?utf-8?B?SENqenkrSkxFMWJqMFMwMlc5NzhFdlI1ZnBhbGhrRVFFejRzTklQUDY2R095?= =?utf-8?B?ak1UaTZVU0cvUGIxZ1A1dGxiR1dNWTRpSkZmbVp1bmJxTzM1bUtvb2FHdnVY?= =?utf-8?B?Y2tMam9kSmR5bHNFa1JHejYrRSt2RkszeDFrdHhqdjR6ODVFdVdwd3N1YmFy?= =?utf-8?B?cURaTGNVK3dMYlZBZDVsbHFkNXVvdWI4R3c2a3JnREE0NnhQNzdiMW84cUov?= =?utf-8?B?WTVXREJTREhVeXpySEwzQ1htRjg4ZDZtVlAzb0JkeC90UWtBakxXQnRWNStT?= =?utf-8?B?bXRDWktUR2FLc0tUM2EwRGZyMFlacGF3NndjRkxFTVZRYloxdHVrTXYzR0w4?= =?utf-8?B?ZEQ0V3JTb2tFSDYzVTRLVzcxdXAwTXpSM1lNOHZZbWxTQUdGY0tpc0UyckFE?= =?utf-8?B?RmYzMUpZYkdua2cwWjFXWDNSUC8rLzdCSTFVS3Q5ellFTFpaZXdiaVd1eloz?= =?utf-8?B?My9qSytnbitpT0xhZlF4ektjdkNuSGdnNFYyZEplZVJucmIxQ3RPVlRRUkVr?= =?utf-8?B?amdyam1pazBpb1BaMFIzZW0zMjBtVWpLYWYraU9jNThmWEZrbHpISmFNMXhl?= =?utf-8?B?QWc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB6980.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dda50a93-0527-410f-cdbc-08da00248b0f X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2022 10:23:37.6676 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +LRQEfwjimpN0MktQXmq1bY9zQX44DYqWh/O0vVlsFMkKZFuWH/SIoex4Om/69J7OYJfjpX1sIkWFmvbjcBF+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR02MB8180 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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-kernel@vger.kernel.org LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEV1Z2VuaW8gUGVyZXogTWFydGluIDxl cGVyZXptYUByZWRoYXQuY29tPiANClNlbnQ6IEZyaWRheSwgTWFyY2ggNCwgMjAyMiAxMTozNSBQ TQ0KVG86IEdhdXRhbSBEYXdhciA8Z2Rhd2FyQHhpbGlueC5jb20+DQpDYzogR2F1dGFtIERhd2Fy IDxnZGF3YXJAeGlsaW54LmNvbT47IE1hcnRpbiBQZXRydXMgSHViZXJ0dXMgSGFiZXRzIDxtYXJ0 aW5oQHhpbGlueC5jb20+OyBIYXJwcmVldCBTaW5naCBBbmFuZCA8aGFuYW5kQHhpbGlueC5jb20+ OyBUYW51aiBNdXJsaWRoYXIgS2FtZGUgPHRhbnVqa0B4aWxpbnguY29tPjsgSmFzb24gV2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dmhvc3RfaW90bGIgKmlvdGxiID0gJmFzLT5pb3RsYjsNCj4gKyAgICAg ICBzdHJ1Y3Qgdmhvc3RfaW90bGIgKmlvdGxiID0gTlVMTDsNCj4gKyAgICAgICBzdHJ1Y3Qgdmhv c3RfdmRwYV9hcyAqYXMgPSBOVUxMOw0KPiAgICAgICAgIGludCByID0gMDsNCj4NCj4gICAgICAg ICBtdXRleF9sb2NrKCZkZXYtPm11dGV4KTsNCj4NCj4gLSAgICAgICBpZiAoYXNpZCAhPSAwKQ0K PiAtICAgICAgICAgICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+IC0NCj4gICAgICAgICByID0gdmhv c3RfZGV2X2NoZWNrX293bmVyKGRldik7DQo+ICAgICAgICAgaWYgKHIpDQo+ICAgICAgICAgICAg ICAgICBnb3RvIHVubG9jazsNCj4NCj4gKyAgICAgICBpZiAobXNnLT50eXBlID09IFZIT1NUX0lP VExCX1VQREFURSB8fA0KPiArICAgICAgICAgICBtc2ctPnR5cGUgPT0gVkhPU1RfSU9UTEJfQkFU Q0hfQkVHSU4pIHsNCj4gKyAgICAgICAgICAgICAgIGFzID0gdmhvc3RfdmRwYV9maW5kX2FsbG9j X2FzKHYsIGFzaWQpOw0KPiArICAgICAgICAgICAgICAgaWYgKCFhcykgew0KPiArICAgICAgICAg ICAgICAgICAgICAgICBkZXZfZXJyKCZ2LT5kZXYsICJjYW4ndCBmaW5kIGFuZCBhbGxvYyBhc2lk ICVkXG4iLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFzaWQpOw0KPiArICAg ICAgICAgICAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gKyAgICAgICAgICAgICAgIH0N Cj4gKyAgICAgICAgICAgICAgIGlvdGxiID0gJmFzLT5pb3RsYjsNCj4gKyAgICAgICB9IGVsc2UN Cj4gKyAgICAgICAgICAgICAgIGlvdGxiID0gYXNpZF90b19pb3RsYih2LCBhc2lkKTsNCj4gKw0K PiArICAgICAgIGlmICgodi0+aW5fYmF0Y2ggJiYgdi0+YmF0Y2hfYXNpZCAhPSBhc2lkKSB8fCAh aW90bGIpIHsNCj4gKyAgICAgICAgICAgICAgIGlmICh2LT5pbl9iYXRjaCAmJiB2LT5iYXRjaF9h c2lkICE9IGFzaWQpIHsNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgZGV2X2luZm8oJnYtPmRl diwgImJhdGNoIGlkICVkIGFzaWQgJWRcbiIsDQo+ICsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHYtPmJhdGNoX2FzaWQsIGFzaWQpOw0KPiArICAgICAgICAgICAgICAgfQ0KPiArICAg ICAgICAgICAgICAgaWYgKCFpb3RsYikNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgZGV2X2Vy cigmdi0+ZGV2LCAibm8gaW90bGIgZm9yIGFzaWQgJWRcbiIsIGFzaWQpOw0KPiArICAgICAgICAg ICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+ICsgICAgICAgfQ0KPiArDQo+ICAgICAgICAgc3dpdGNo IChtc2ctPnR5cGUpIHsNCj4gICAgICAgICBjYXNlIFZIT1NUX0lPVExCX1VQREFURToNCj4gICAg ICAgICAgICAgICAgIHIgPSB2aG9zdF92ZHBhX3Byb2Nlc3NfaW90bGJfdXBkYXRlKHYsIGlvdGxi LCBtc2cpOw0KPiAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ICAgICAgICAgY2FzZSBWSE9TVF9J T1RMQl9JTlZBTElEQVRFOg0KPiAtICAgICAgICAgICAgICAgdmhvc3RfdmRwYV91bm1hcCh2LCBp b3RsYiwgbXNnLT5pb3ZhLCBtc2ctPnNpemUpOw0KPiArICAgICAgICAgICAgICAgciA9IHZob3N0 X3ZkcGFfdW5tYXAodiwgaW90bGIsIG1zZy0+aW92YSwgbXNnLT5zaXplKTsNCj4gICAgICAgICAg ICAgICAgIGJyZWFrOw0KPiAgICAgICAgIGNhc2UgVkhPU1RfSU9UTEJfQkFUQ0hfQkVHS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cml2ZXJzL3Zob3N0L3Zob3N0LmMgaW5kZXggDQo+IDFmNTE0 ZDk4ZjBkZS4uOTJlZWI2ODRjODRkIDEwMDY0NA0KPiAtLS0gYS9kcml2ZXJzL3Zob3N0L3Zob3N0 LmMNCj4gKysrIGIvZHJpdmVycy92aG9zdC92aG9zdC5jDQo+IEBAIC0xMTY3LDcgKzExNjcsNyBA QCBzc2l6ZV90IHZob3N0X2Nocl93cml0ZV9pdGVyKHN0cnVjdCB2aG9zdF9kZXYgKmRldiwNCj4g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXQgPSAtRUlOVkFMOw0KPiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZG9uZTsNCj4gICAgICAgICAgICAgICAgICAg ICAgICAgfQ0KPiAtICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXQgPSBzaXplb2YoX191MTYp Ow0KPiArICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXQgPSAwOw0KPiAgICAgICAgICAgICAg ICAgfSBlbHNlDQo+ICAgICAgICAgICAgICAgICAgICAgICAgIG9mZnNldCA9IHNpemVvZihfX3Uz Mik7DQo+ICAgICAgICAgICAgICAgICBicmVhazsNCj4gLS0NCj4gMi4yNS4wDQo+DQoNCg==