Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2014492pxp; Mon, 7 Mar 2022 06:54:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh1EKBDKHeFnhQjMBWPN+fyf3AfobkvemxXvtNias68iP41LWfd7dkB4ug8gNumYZ1JPXF X-Received: by 2002:a17:907:7b8d:b0:6db:a30:8b96 with SMTP id ne13-20020a1709077b8d00b006db0a308b96mr7641491ejc.221.1646664846963; Mon, 07 Mar 2022 06:54:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646664846; cv=pass; d=google.com; s=arc-20160816; b=ma7lw+FBo0kqpxqWCfQifH9N7yWQ2/Gbt77fvDPuiz+60+QFtYnW/tOkJgNHF1HLnh QwYYhJuGOmT9lSR8DV7W0XieNBvnt8WDdzUEWrg9yLh7UU2yQKtOWX3BiHhgEa2bvWEK oWffdlrefjCFqMpnEu9BHGx5ZJTT7acXoQZeCybsBXW8MOSJvrfigZpzzM8SiU4bOZVu q80q+HoIKlrHL7ogtxx2LPEiRVmqiD9P6I7U88d9kt8eVj9HVMSSyGO/5GauUI0PEaTN Dwo6IHkNfPbQhXyrF2tZFsLc9l/syeoRL/KQqWW11jmm1ysOgMqdeBb61LaYeCKT8TYy efZg== 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=I+0JL6fEsQqgcmNhUxW7YySUTFaHkkTl7Sr0r/KAjng=; b=pNK6IDDuxQ7A/7jspre1k6sEMDpvKzt+Vu1p7Oeynkw89yJeNw0IU53RgwZD61PaAo J/y2JsWgvDZHIhHuy5JPuc7Er5Ev5RfvGTKLQCrQnJwkHJln5prPeTVfrfjikGOuWjuB IYEjJQyv5ND3LiqRIbReJGVtJ8O5X3aiq6xGJkPw2Y1NmopWpZH8J7kCRAztT5zM+XAG KCTM0qyK8AW0NLcmTr94JcjJvml9NYNnyS1iQMlNOamkyEggh4DnAW7v9tJZoclaeES+ GiQI7SG9U0qpxjn6V382Hq7LdRH03ngr+MYcMPy2eka97FSnufVpUgS4b6N2Dyxr2e56 IDTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=sKEpUkcL; 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 m3-20020a17090679c300b006cfcf289e6bsi8374190ejo.851.2022.03.07.06.53.43; Mon, 07 Mar 2022 06:54:06 -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=sKEpUkcL; 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 S241413AbiCGKul (ORCPT + 99 others); Mon, 7 Mar 2022 05:50:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242064AbiCGKsb (ORCPT ); Mon, 7 Mar 2022 05:48:31 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2058.outbound.protection.outlook.com [40.107.92.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A2E31516; Mon, 7 Mar 2022 02:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qp1Zx3BifX76c4CYCVvPd18ZG3fgzGTSqFhN3jKPHlmxIKNwRLD8cDXSYXUCldkCUdfm526UoZrQGZsmCTpqyw7J0NULgvLnaL2lfWA15xIB5fw9J64qILO8wBARQ9snqHG/0uZSPlL7fimCuSJw4+GzOebpQi1qgdwasmDTnpfBR3PfaKngzmSwvNuZyn2uSm+QRz078bhkbyB31M08EHnWD1G6AEZHdnJ//8Dsfg42eKGcd/tA/nAmOa6xdT1dQ0iG1LlpedaND9aO1yMOztwVAMttePexrDNdbA0FaVKzl0+byghYCfZYyK6y1GOVmoY/jWYITh838rJwYLWjxg== 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=I+0JL6fEsQqgcmNhUxW7YySUTFaHkkTl7Sr0r/KAjng=; b=J0/xw/wncv4H0YW/MpbEbxxmB+05xaj2Ty8lor+dg9LI14vpawdk4++PHYZsrpypRSjez5IgkwmdcQVBiFkjOEZde4ffrJAPShRKaG+nL1S91DdFVycSaVE1/wwuEa8lk0Z2Tzbkw1GDVmewv0/1oPHfu/b3uH6treq3a5YNtuIjbK1CWLbVwcF3PUZz5sfqq/oEBlsbxBvmf3RhJxE9fJAzKGFcJIJMKSQXSIknR3YrH6CUhd+de5cayaMWHQlDx0OrGQHB5JqkRIZR8L5aPgOEfd/JP0ot3WVE4/xVKMzuFAsLeo+VRiG6ZMqiY2qj9lUCC8u6HF87qWkeNxysbA== 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=I+0JL6fEsQqgcmNhUxW7YySUTFaHkkTl7Sr0r/KAjng=; b=sKEpUkcLIc37Igcc2cs3oNt2Jy644jcr9wzs480uBN8DU0ltC/+G80xO0E9OJE3uhv73F6vDYrUF8d6oU5PDzKRjanCGK/CMQLJWCA47+ToK/G4gSknDhwvA62TJJqR1aflc6GqyDdi2W0AmN3Zsw1vWELwFV7V/9tpAB/JawKE= Received: from BY5PR02MB6980.namprd02.prod.outlook.com (2603:10b6:a03:235::19) by BN7PR02MB4084.namprd02.prod.outlook.com (2603:10b6:406:fd::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.17; Mon, 7 Mar 2022 10:07:51 +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:07:51 +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 10/19] vhost-vdpa: introduce asid based IOTLB Thread-Topic: [RFC PATCH v2 10/19] vhost-vdpa: introduce asid based IOTLB Thread-Index: AQHYKcUzQU/Kb6jEVEu6UTrZznHmuqyvjsKAgAQaplA= Date: Mon, 7 Mar 2022 10:07:51 +0000 Message-ID: References: <20201216064818.48239-1-jasowang@redhat.com> <20220224212314.1326-1-gdawar@xilinx.com> <20220224212314.1326-11-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: 1d3af7c7-7fcb-409e-af26-08da00225701 x-ms-traffictypediagnostic: BN7PR02MB4084: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: p92YifiDX0g9x2uEzGNCw6oia6vhT5MtFcEfllUCTocHY8x1Xr7HMjzx6pLC5G1j3ATN4B5gP29E/OrYMeyHtNW1gRKpZSBWzpcJW6qAlK6gvO9CXnXkMrg3YFIBOTTihg4s36h1NX2veQZ5BJq/VCsmDp1wO6T3cng8EkIwyv+TNN2fbHPnLkT3JPUfUIwizNIQMyMS6HPvuyYIByCnNz87xxMPsnflmqZ74scLqaiTdTm0EJ0XespUpES+0L55ALAG2/AiZ2DRAMIaSYUP6Y5Nn9ee4tAESpyUwV6IKPT88HpKJajAf5ocEMFCdD47/vGZ30HzaFXsdphmAahsDOG24/o700BeGXu4dj/wTC3EnsUnibqOTSZM6MlTvy4ML3T3QS6REs/g8Kk88sqrls3oUgqMMgPcUVB4iiTA+Tc2Ni+ihmmySjKyLlFdmBi47N3jrDdrzCGESMu4vNnwy0XiZqctUfJ3v9KcVrrhBJlaV7VIn+g/3yIPTQya826ZCD8jwbysfnDCYGkEzhDH0hN2MiNHvmatrcy4yP+K4BMB052aDxcUZZuJAp8I3fP30UcbtveHRVeos1PnRYDfQ5PW3CXofsJzpThkbqh5q97lT+x5UaOXHlSwJ85m6nNxWhudG/Ce2Ny2rqWJd47bfcZZQd0UxzkLD1RIW4BC1Enl3tA3PWWykCUdBL842JbI1i7E31T3gHx3w8M/mcAlmA== 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)(83380400001)(33656002)(53546011)(6916009)(66946007)(6506007)(9686003)(316002)(38100700002)(54906003)(186003)(26005)(52536014)(5660300002)(122000001)(55016003)(86362001)(2906002)(38070700005)(71200400001)(4326008)(7696005)(8936002)(508600001)(7416002)(8676002)(76116006)(66446008)(66556008)(64756008)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?VkkrUEFxdzFtUk9DUDdxSXRmV3V2R1lubnB5SWdjY3MrUStCY05IL1NMYWpk?= =?utf-8?B?cWg2bW02Z0JGSUhSS1c3dklUSUYwUnNjN0dGdHFlcE4rWmhPNzgwbmw0S015?= =?utf-8?B?SWhBMlcyT09UTFgzVk5lbDk0NEhJbWxvanFUVmdMc3YxaUNhaHdHL1hFUUY3?= =?utf-8?B?QnQ2bW1uK3dYZStGdDQ5V21HaEJTTHBmaG12ZmNnL3dyNGF6cC96VldBYWto?= =?utf-8?B?KzNkMTdML21ERVh3UjFHbzg3MHZkQjhDUWdQb0tOYVkreHRiUjFaeGFRWWI5?= =?utf-8?B?K3Robk52TGJGSVNra3hkZU5raUFLMzBBZ3c2VUJqV2g1bjFkZVBUNVdjcnZo?= =?utf-8?B?WnVRbER4d2tZSjdLeEdycFJWMHZua2FYazRGM0Q2ZllTVmlWSzkzRm45OFg1?= =?utf-8?B?RkFERC9ocVJ3VHJmdmZXdmtQVDBsV2NZYWhwYXllalJQR3hhNWZEQ0pNTVJI?= =?utf-8?B?RXIxV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VjRsUVFHRlFzek9CTVdiMEZhc3NSc3NHVHYwMkVMK0VCSURrYTVoMldkV1Na?= =?utf-8?B?Z1p1VWpxWUpmUXhTalZsSlNIU21BNDZPRWNEc04yWjZsQ1AyZjZGTndpbG11?= =?utf-8?B?RjNYVzJGd3BIUEszRm8xa3lLcWM1b2xkaXFhZDJYMGxzNnM4OURkV1Z2NXdJ?= =?utf-8?B?L01aOHVKZFhWUEQvZjFkY1RKb3dBNVk5eTlaZU5hTHNHVkxIL2o1SldvT3lY?= =?utf-8?B?TkMwWm1FTkhFOVZLVysyU0RhWjBLL3lKTkwvemk0Qm9Pb2cvK3BSSVA3WkRF?= =?utf-8?B?UTlZbC9yTzc4Yy9SZGs0N2cyNVZoQ08rZkdMdWUzRGQ1djFxTHNLekpnUm9W?= =?utf-8?B?M0VscTVlVWFWYnJrRkJSek1tNTcvNmNDWVBDMlpkc3cyWFhWRTYyQ3B4U2xI?= =?utf-8?B?YitHTlliYmNma0NLZ2lDUWdqQWtBNkZnV1ZmL0ZpNW5JcW9mOG9xRm5kRHN1?= =?utf-8?B?ekpscFN1Y1NYSXp3WkZHY3dZYmhVQmNFcTUvak9STlJMOGhqZDJqNm9sODNx?= =?utf-8?B?REhjSEIvemJTUDFiWGZ0aWQrOWZGYStmY3NxQ1BML0d4TWM0Y1d0UlFneEJL?= =?utf-8?B?d085QzFlQlFnb2VjMGY3RXh2aUFueDR0d3p4UThhWXIvVWJwQTJkNXVRQ2RL?= =?utf-8?B?S2VvT0JQOHdQOE5jTjBud2YyTTJDeVlvbVYxM0d5VDl5em45QkdocnY3ekVS?= =?utf-8?B?VXRNSWIwUzFBNncrM3VwT1dqUTFGSCs1RmtYeGlPNW9oNVN1WW1QNzJXdjBu?= =?utf-8?B?WFE9PQ==?= 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: 1d3af7c7-7fcb-409e-af26-08da00225701 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2022 10:07:51.3712 (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: cIUJXQUPsIeRuVsY2OBZy+T1q2+uK6POXr32fGIQE9nxNz5c/W97z9P+/AFVhHlAErrtKgeVINgApNBSqP0Luw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB4084 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 cGVyZXptYUByZWRoYXQuY29tPiANClNlbnQ6IEZyaWRheSwgTWFyY2ggNCwgMjAyMiAxMToyNiBQ TQ0KVG86IEdhdXRhbSBEYXdhciA8Z2Rhd2FyQHhpbGlueC5jb20+DQpDYzogR2F1dGFtIERhd2Fy IDxnZGF3YXJAeGlsaW54LmNvbT47IE1hcnRpbiBQZXRydXMgSHViZXJ0dXMgSGFiZXRzIDxtYXJ0 aW5oQHhpbGlueC5jb20+OyBIYXJwcmVldCBTaW5naCBBbmFuZCA8aGFuYW5kQHhpbGlueC5jb20+ OyBUYW51aiBNdXJsaWRoYXIgS2FtZGUgPHRhbnVqa0B4aWxpbnguY29tP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