Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2675564pxp; Tue, 22 Mar 2022 03:54:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQSSpBrKd0AYKwk1b1YsIXkTPhH3Bjr1P3BbhDz9hJOorUdG2and/uArJF/HZSDnho7piE X-Received: by 2002:a17:906:18b2:b0:6d0:ee54:1add with SMTP id c18-20020a17090618b200b006d0ee541addmr24434289ejf.499.1647946491034; Tue, 22 Mar 2022 03:54:51 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a170906338b00b006e005e512d3si4364110eja.784.2022.03.22.03.54.25; Tue, 22 Mar 2022 03:54:51 -0700 (PDT) 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="nlOV/Nid"; arc=fail (signature failed); 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 S231428AbiCVIsf (ORCPT + 99 others); Tue, 22 Mar 2022 04:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbiCVIsc (ORCPT ); Tue, 22 Mar 2022 04:48:32 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2064.outbound.protection.outlook.com [40.107.237.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197006C928; Tue, 22 Mar 2022 01:47:04 -0700 (PDT) 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=vldJ8jYfiW71DjNStLNuoGfkyr3Ln3KSjba1M8T0ymk=; b=nlOV/NidtQGmkBstAnJNqqU70mJaGYcC90MXMsZ9ihq8TL3MsK/PQCbu1dsOam/35uTGRGmtwluSrXMBnCIrONTS/vs2qOYGVupD+Gxd2m8o/Z1PGve/63J6Tol7+iz96ihgDjyeijY3ZGj9edS7meFfOAWsde+uiJP8qplBUb0= Received: from BN6PR2001CA0019.namprd20.prod.outlook.com (2603:10b6:404:b4::29) by PH0PR02MB7400.namprd02.prod.outlook.com (2603:10b6:510:8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.15; Tue, 22 Mar 2022 08:47:00 +0000 Received: from BN1NAM02FT020.eop-nam02.prod.protection.outlook.com (2603:10b6:404:b4:cafe::15) by BN6PR2001CA0019.outlook.office365.com (2603:10b6:404:b4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.23 via Frontend Transport; Tue, 22 Mar 2022 08:46:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.83.241.18) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 20.83.241.18 as permitted sender) receiver=protection.outlook.com; client-ip=20.83.241.18; helo=mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; Received: from mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by BN1NAM02FT020.mail.protection.outlook.com (10.13.2.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.14 via Frontend Transport; Tue, 22 Mar 2022 08:46:59 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2172.outbound.protection.outlook.com [104.47.57.172]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id ACBD9427EB; Tue, 22 Mar 2022 08:46:58 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jZhtpYbO0Um55VBEfseFbvfobFafu1BorcBxGZ4eb5Ed8gnx/3qOMnei2o/Ll1lFidY5eyKfIhuZl3Jw/MgJ/9/EP3H38n/+q7PlTbowOCGm4hcx5yUczdVqw07NSvKW1ZznpI8QCZvMlT/7T8oSClSsDpAwOZwUMCixjuO0To4RLIuR0RbslJ2NMZWhW8JbIF9+hDWJQH2cTPBEERcTzaRQfOWYGE1i7kpUEgLvTbON5RXcRshApnzWo8U58EWOzCRX1Q0gNgvasZ14wnSMipXjVs5rPRqQBEHlQq9RIjTKZRX3p3KOd1R+e7/Oi2584TRvdmIiFkN2nbs8Gr4WJg== 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=vldJ8jYfiW71DjNStLNuoGfkyr3Ln3KSjba1M8T0ymk=; b=ZtRMNoGvIivu0NhjvjKpEn1hie3gMrIbDaXstZRo3MA4BhY4jn8kns2AsL+z76rxcNMVq7oKvnrmL9dz/IjrwHEHwqIoHAslCCj6BF0D1c3LNXo26mWiWGsHMmqFvoLLKDWuj2itpPJQWPTDuj0oFwdTL8yIA6sJ2HG76R/o3JApvJ14/AwzwhT+hfPg4VMh6erNMVRdtXf8oF1TvJBuUf+4WV9XMJzVyAMdZ3LeLXRBDF+Bj5/iO99DhJuHaa6G4NEyiEs9B66Z0RQ62D600EVpqJlS/qlRcV2QUNCvUKtg7nPASpgsyJLaFLGdnlEl5ZvnRAUDBSDCa07OCOqZ+A== 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 Received: from BY5PR02MB6980.namprd02.prod.outlook.com (2603:10b6:a03:235::19) by BYAPR02MB5656.namprd02.prod.outlook.com (2603:10b6:a03:96::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.18; Tue, 22 Mar 2022 08:46:56 +0000 Received: from BY5PR02MB6980.namprd02.prod.outlook.com ([fe80::5084:dac4:8696:3622]) by BY5PR02MB6980.namprd02.prod.outlook.com ([fe80::5084:dac4:8696:3622%6]) with mapi id 15.20.5081.023; Tue, 22 Mar 2022 08:46:55 +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 19/19] vdpasim: control virtqueue support Thread-Topic: [RFC PATCH v2 19/19] vdpasim: control virtqueue support Thread-Index: AQHYKcWaSI8VNle0kUu0rqwPQhPAQ6zE4d4AgAZRVCA= Date: Tue, 22 Mar 2022 08:46:55 +0000 Message-ID: References: <20201216064818.48239-1-jasowang@redhat.com> <20220224212314.1326-1-gdawar@xilinx.com> <20220224212314.1326-20-gdawar@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MS-Office365-Filtering-Correlation-Id: c7c442c7-6bcb-44c3-ebee-08da0be08749 x-ms-traffictypediagnostic: BYAPR02MB5656:EE_|BN1NAM02FT020:EE_|PH0PR02MB7400:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: k5hfJrgcG6CKA8dv6doDMHctbpiUZmS2KiLRf6CUiUXAojQ8OQCo/kR0RzxC+vdjDpyyYp+pym/Ve1vch29DBnGNlYRe3CmYak7A88Qa5P62EUEnrAh909KzYC0yCtfjuBGqMXp8nJ4tuZ6sjhz0foGvBk5VoXKeQYj2U9dRF/di7y5tWNZVce16vp0iunIwQeWOQ8b04vujTcz3G+3Nd67ILNQDjZG858ZDgfk1ZhmM8Pg928L/RN0DoJmByF7J3nFj1hSWvNpKQjNmf96TCF9iLgota1bnOYp9TGH8CuIIfnUlSR4iYiOGNaDIaKoA4b1MVSH7XRwril/0/i+iHmwiGUzQNTInJg3Kujp5BMTSjPvBD37xV6g8UbSb9iiGwPZ0oesrWUVxzQl+wDa/slaPLcJk5h1KL0VULI+6giTSJln3W5htbB+o+WLk+kdn8QfH1cDmmUCuFqwJdHEsDDHQYnel+RtygHVZ29gvnI3zMIOR1891Jbov0JIIQpBWu2SJDA6Dor6kZTb/t0MQDowGHjXyCVIMcecun573toc0QZ245TIh2zMhz1Oz0j/CsW/7YTLPgIdAgnEm6dw2obsd+NNyv6WwUwweNiEf8ePaPzV5Gph3ozoOd2y5Chy8abcsSt9MjGh5+D2nqcEpIW2a1rTJvj0Ut89AzAA57+AS+4+0aAlU3t7Lwj27NyGebwNxsBZbDJNkGIW8BaMZTA== X-Forefront-Antispam-Report-Untrusted: 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)(8936002)(52536014)(30864003)(7416002)(5660300002)(6506007)(186003)(9686003)(83380400001)(7696005)(64756008)(66556008)(8676002)(66946007)(66446008)(2906002)(66476007)(76116006)(4326008)(53546011)(54906003)(86362001)(55016003)(122000001)(38070700005)(33656002)(71200400001)(316002)(6916009)(508600001)(38100700002);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5656 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1NAM02FT020.eop-nam02.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c7b15b44-68c9-41ad-d00d-08da0be08512 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7kOi3g6Tip/i48LU73lnkHDZrqtGTC6vsUhHjRvwLYJSN4pvc2zRvJGfNYdnVlbKy1IqbGJNx4q/KLCdfm3UjzRMIlDMWn7FW2UaVjqH1yeiEdnrSrfP4TsfsTfvwvhVEv9fDnoSd8RuPwibhdg1Dixoq0tZyRAxZ3UEWh6Q+1Zd4Bev+XsIjlgiKN0zFQeQ/x4L+07lP5j/3DvcM/orHL8CdOC+i4L/P0pwd4ZyCw1ZwcXcrbICffAxD8sOl6XdCEh1EYkAravfHqL8nQJEDpvCtY4X2LjKAOw2DdCE6cgMsYQw18AgKdAQQMvoT/XNLtOyfIXBV0HSegbztubUBT0WS8AnbR4L+C5wPAqhkKQNw5usaom3Y4JoMpZKYwZoRv/mgAgj6QRil5pMJQxS9N5r2x0CW+taJ671SFS+o2nVEaf6wyAALwBriuZb6GSyy5jcRLKbY75amVtxAtvvCOqukpmTsdI5UOH847f12Tsh3eUuzl//PaT0u2Ih6ELtZd+HUwDpAMAucIi2lh53S9KTnl/WccLhO2rNaq/LYrwOH7KUUi8KoBZHsLoDxaukeLjxsclDB9zkBv1Sb/F0qaByTC1uIupSPbOKBOQcDOqOjMYIQiXWlQzgUByVrNyAppS2TrQLyFcmF4EGzi9x9HTa8ANR+tqZ7gDmsDuG8wAubbkuZceYoc6i+lBQuLLe X-Forefront-Antispam-Report: CIP:20.83.241.18;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(8936002)(7416002)(81166007)(356005)(82310400004)(186003)(336012)(52536014)(5660300002)(30864003)(33656002)(2906002)(36860700001)(9686003)(55016003)(70206006)(83380400001)(47076005)(8676002)(4326008)(316002)(6916009)(54906003)(508600001)(26005)(6506007)(53546011)(7696005)(86362001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2022 08:46:59.4976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7c442c7-6bcb-44c3-ebee-08da0be08749 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[20.83.241.18];Helo=[mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN1NAM02FT020.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7400 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 lindberg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HZkcGFzaW1fdmly dHF1ZXVlICpjdnEgPSAmdmRwYXNpbS0+dnFzWzJdOw0KPiArICAgICAgIHZpcnRpb19uZXRfY3Ry bF9hY2sgc3RhdHVzID0gVklSVElPX05FVF9FUlI7DQo+ICsgICAgICAgc2l6ZV90IHJlYWQ7DQo+ ICsNCj4gKyAgICAgICBzd2l0Y2ggKGNtZCkgew0KPiArICAgICAgIGNhc2UgVklSVElPX05FVF9D VFJMX01BQ19BRERSX1NFVDoNCj4gKyAgICAgICAgICAgICAgIHJlYWQgPSB2cmluZ2hfaW92X3B1 bGxfaW90bGIoJmN2cS0+dnJpbmcsICZjdnEtPmluX2lvdiwNCj4gKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKHZvaWQgKil2ZHBhc2ltLT5jb25maWcubWFjLA0K PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBFVEhfQUxFTik7 DQo+ICsgICAgICAgICAgICAgICBpZiAocmVhZCA9PSBFVEhfQUxFTikNCj4gKyAgICAgICAgICAg ICAgICAgICAgICAgc3RhdHVzID0gVklSVElPX05FVF9PSzsNCj4gKyAgICAgICAgICAgICAgIGJy ZWFrOw0KPiArICAgICAgIGRlZmF1bHQ6DQo+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gKyAg ICAgICB9DQo+ICsNCj4gKyAgICAgICByZXR1cm4gc3RhdHVzOw0KPiArfQ0KPiArDQo+ICtzdGF0 aWMgdm9pZCB2ZHBhc2ltX2hhbmRsZV9jdnEoc3RydWN0IHZkcGFzaW0gKnZkcGFzaW0pIHsNCj4g KyAgICAgICBzdHJ1Y3QgdmRwYXNpbV92aXJ0cXVldWUgKmN2cSA9ICZ2ZHBhc2ltLT52cXNbMl07 DQo+ICsgICAgICAgdmlydGlvX25ldF9jdHJsX2FjayBzdGF0dXMgPSBWSVJUSU9fTkVUX0VSUjsN Cj4gKyAgICAgICBzdHJ1Y3QgdmlydGlvX25ldF9jdHJsX2hkciBjdHJsOw0KPiArICAgICAgIHNp emVfdCByZWFkLCB3cml0ZTsNCj4gKyAgICAgICBpbnQgZXJyOw0KPiArDQo+ICsgICAgICAgaWYg KCEodmRwYXNpbS0+ZmVhdHVyZXMgJiAoMVVMTCA8PCBWSVJUSU9fTkVUX0ZfQ1RSTF9WUSkpKQ0K PiArICAgICAgICAgICAgICAgcmV0dXJuOw0KPiArDQo+ICsgICAgICAgaWYgKCFjdnEtPnJlYWR5 KQ0KPiArICAgICAgICAgICAgICAgcmV0dXJuOw0KPiArDQo+ICsgICAgICAgd2hpbGUgKHRydWUp IHsNCj4gKyAgICAgICAgICAgICAgIGVyciA9IHZyaW5naF9nZXRkZXNjX2lvdGxiKCZjdnEtPnZy aW5nLCAmY3ZxLT5pbl9pb3YsDQo+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAmY3ZxLT5vdXRfaW92LA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgJmN2cS0+aGVhZCwgR0ZQX0FUT01JQyk7DQo+ICsgICAgICAgICAgICAgICBp ZiAoZXJyIDw9IDApDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiArDQo+ICsg ICAgICAgICAgICAgICByZWFkID0gdnJpbmdoX2lvdl9wdWxsX2lvdGxiKCZjdnEtPnZyaW5nLCAm Y3ZxLT5pbl9pb3YsICZjdHJsLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICBzaXplb2YoY3RybCkpOw0KPiArICAgICAgICAgICAgICAgaWYgKHJlYWQgIT0g c2l6ZW9mKGN0cmwpKQ0KPiArICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCj4gKw0KPiAr ICAgICAgICAgICAgICAgc3dpdGNoIChjdHJsLmNsYXNzKSB7DQo+ICsgICAgICAgICAgICAgICBj YXNlIFZJUlRJT19ORVRfQ1RSTF9NQUM6DQo+ICsgICAgICAgICAgICAgICAgICAgICAgIHN0YXR1 cyA9IHZkcGFzaW1faGFuZGxlX2N0cmxfbWFjKHZkcGFzaW0sIGN0cmwuY21kKTsNCj4gKyAgICAg ICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ICsgICAgICAgICAgICAgICBkZWZhdWx0Og0KPiAr ICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCj4gKyAgICAgICAgICAgICAgIH0NCj4gKw0K PiArICAgICAgICAgICAgICAgLyogTWFrZSBzdXJlIGRhdGEgaXMgd3JvdGUgYmVmb3JlIGFkdmFu Y2luZyBpbmRleCAqLw0KPiArICAgICAgICAgICAgICAgc21wX3dtYigpOw0KPiArDQo+ICsgICAg ICAgICAgICAgICB3cml0ZSA9IHZyaW5naF9pb3ZfcHVzaF9pb3RsYigmY3ZxLT52cmluZywgJmN2 cS0+b3V0X2lvdiwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICZzdGF0dXMsIHNpemVvZihzdGF0dXMpKTsNCj4gKyAgICAgICAgICAgICAgIHZyaW5naF9j b21wbGV0ZV9pb3RsYigmY3ZxLT52cmluZywgY3ZxLT5oZWFkLCB3cml0ZSk7DQo+ICsgICAgICAg ICAgICAgICB2cmluZ2hfa2lvdl9jbGVhbnVwKCZjdnEtPmluX2lvdik7DQo+ICsgICAgICAgICAg ICAgICB2cmluZ2hfa2lvdl9jbGVhbnVwKCZjdnEtPm91dF9pb3YpOw0KPiArDQo+ICsgICAgICAg ICAgICAgICAvKiBNYWtlIHN1cmUgdXNlZCBpcyB2aXNpYmxlIGJlZm9yZSByYXNpbmcgdGhlIGlu dGVycnVwdC4gKi8NCj4gKyAgICAgICAgICAgICAgIHNtcF93bWIoKTsNCj4gKw0KPiArICAgICAg ICAgICAgICAgbG9jYWxfYmhfZGlzYWJsZSgpOw0KPiArICAgICAgICAgICAgICAgaWYgKGN2cS0+ Y2IpDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGN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