From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,MSGID_FROM_MTA_HEADER,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AA6EC433E0 for ; Thu, 21 Jan 2021 17:36:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0682A22A83 for ; Thu, 21 Jan 2021 17:36:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0682A22A83 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o8FJSQU7FdsxSMbM5iqbBRdmVCOZg2Py7zL842NNlVE=; b=qLyTTrP6KzBuBstDTcBBDVTCf D43jEeALVN7piTXLRUnik209lmI7stanQ9AtUIcNuuY6riuYg9hOGRfo7OTDNfUf/qexhQGFZA4s4 bhWrdbgQiI9CJW4cFSedrNTbv/+7FG4SU1OPFYPDjtTPJrO9V/PO3Nhrrt25ePAm/3fsFMPvG94pb UC5yreLtubkW+Dh8K8AU0p+qHNt+gZwLlOxQvNL0zQHJB5A3fenw+DLbOBLyrAPR39p/c9n6U1tBU ikq6zL17YBNn87PEJMaT0jYxKGoNeYGmrYNho/uxcIIn/pf0HnOac1Yv6hwySNCwKQlIiKkKPKJ5I EH01U5G8w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2drC-0003JH-QR; Thu, 21 Jan 2021 17:34:54 +0000 Received: from mail-eopbgr80051.outbound.protection.outlook.com ([40.107.8.51] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2dr8-0003IX-2N for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 17:34:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qcIjWAu6xDhfEJ0ra2IequtMruvxDMqi3GN7TZfHlQ8=; b=dqFvmqzfvFiKmMYxasUYwrpozzSQrL8wFlHEbH7wCNDKbtNxTEQjC9vURfOjN/GtVVKI1vGWDfhdrw+PVzk+UZHVucwLmY93KotPr3NKAhVe2Vntm3xNChu7gh0Qp2DnntXgNfYnox2qLKfJ0kvodvXwLsWAPAKsdy+LK1/i+vw= Received: from DU2PR04CA0094.eurprd04.prod.outlook.com (2603:10a6:10:230::9) by DB7PR08MB3513.eurprd08.prod.outlook.com (2603:10a6:10:4a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Thu, 21 Jan 2021 17:34:44 +0000 Received: from DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:230:cafe::20) by DU2PR04CA0094.outlook.office365.com (2603:10a6:10:230::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Thu, 21 Jan 2021 17:34:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT005.mail.protection.outlook.com (10.152.20.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Thu, 21 Jan 2021 17:34:44 +0000 Received: ("Tessian outbound 8418c949a3fa:v71"); Thu, 21 Jan 2021 17:34:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fd26a98c07530fcf X-CR-MTA-TID: 64aa7808 Received: from 1e22ffb69e95.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E1DE3010-26AC-413E-8A89-03CA4D79E956.1; Thu, 21 Jan 2021 17:34:39 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1e22ffb69e95.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 Jan 2021 17:34:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WuOGN+e4WKPByhcp3c2Kqm0aGfDfxgnkLPJB+UkC4jgdTfReS3r5g3IZhr4fFBDbWZdiGDRXx8YGLAivhPFuHw+lDIQozzLfdzrqSxYS4Hi3eGYpgDUeg1I0PrmID2mqABXqD6XPG1m6J/sLagRVa3sbYm/ELPLqSf0MjTOkF8Lk/NbD+IyGidqIjXEHoK8of0Oq1K2UyeVlXnCd6gSe9s9q4ZvhF3j+QFW14Lcv4H1623WMBULz0IxPRTNgTqhfaDHcP7PZzKRR4QZUna17vKhbJuUuq0jwEJuYd1Eo+eSC9QrXwnLrxjQ8ZVjW9SCzduiYJ4F49JZYgG48f1R2QQ== 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-SenderADCheck; bh=qcIjWAu6xDhfEJ0ra2IequtMruvxDMqi3GN7TZfHlQ8=; b=B2Q968ZUubCgiyaL+BcpdZqEOCLuEZXPjFPzfRnT0aR67tg8lOJm3Ef9NUpnbXcWr7DdVAznav5XYNN6/PGPciVYs2R0HTzK8A3mNstb2bWTQG1GeS7NLYs9Cswe1hfc29BIPombYb0CJyvL6TSkORCpJZAKXyiG57JRYrzrUQyjnAsZV63cQp3KowqmEfeQEcKh29K+blArJ9ExxTf8+FzTXXasnqPJR4hy7/wXxlogDuFUgEzTNRnZrIvXtdB9+Xz+IAYhcjaQyVn6gxb0FI7lYhj0Qkpttb/cDN5Nqe+GWw4ElYXs3aHjDdJGlXKnN3jPj5n1ykTwC4cs1ssBkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qcIjWAu6xDhfEJ0ra2IequtMruvxDMqi3GN7TZfHlQ8=; b=dqFvmqzfvFiKmMYxasUYwrpozzSQrL8wFlHEbH7wCNDKbtNxTEQjC9vURfOjN/GtVVKI1vGWDfhdrw+PVzk+UZHVucwLmY93KotPr3NKAhVe2Vntm3xNChu7gh0Qp2DnntXgNfYnox2qLKfJ0kvodvXwLsWAPAKsdy+LK1/i+vw= Authentication-Results-Original: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=arm.com; Received: from AM0PR08MB3268.eurprd08.prod.outlook.com (2603:10a6:208:65::26) by AM0PR08MB3827.eurprd08.prod.outlook.com (2603:10a6:208:104::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Thu, 21 Jan 2021 17:34:37 +0000 Received: from AM0PR08MB3268.eurprd08.prod.outlook.com ([fe80::5818:5e0e:3bb7:3b70]) by AM0PR08MB3268.eurprd08.prod.outlook.com ([fe80::5818:5e0e:3bb7:3b70%5]) with mapi id 15.20.3784.012; Thu, 21 Jan 2021 17:34:37 +0000 Subject: Re: [PATCH RFC v1 00/15] iommu/virtio: Nested stage support with Arm To: Auger Eric , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org References: <20210115121342.15093-1-vivek.gautam@arm.com> From: Vivek Kumar Gautam Message-ID: Date: Thu, 21 Jan 2021 23:04:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [217.140.105.56] X-ClientProxiedBy: BM1PR0101CA0070.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::32) To AM0PR08MB3268.eurprd08.prod.outlook.com (2603:10a6:208:65::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.162.16.71] (217.140.105.56) by BM1PR0101CA0070.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Thu, 21 Jan 2021 17:34:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8153ab80-4ed9-4c81-bab4-08d8be32d78b X-MS-TrafficTypeDiagnostic: AM0PR08MB3827:|DB7PR08MB3513: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: v+FtFm4niW13cf45gvpjLtvkuh9W0rH/pIc9JVtN1/C/YTdtvyx9uJnCSnUWNk/yP5/9pTadH9BsAPyRvmhYSONjbv8872q2VMJmPKnQdhMWqVLiAwAY5/h9f4xkVfn4c4ORPhjqIE4z9Jx+neKE9wc4Mb7F0Tukc63DBae/rYYx+vKmtAg0d3Jz+mJekJydHbVGmp9ikqo0EidSNI0ICxFvHztuYrdeHf9mkEptubvCa8oszrXST/lPHrryYl+y7orrzXbsvMf7N+e2F8r6Ed91s72RLa9Es9ZgMfWTWhps/aIaKLz7VHsiv8+lsz7sK1gBEwlfXg4AElIcyn79IMOXbVxSf4xIt6rsM+hG7Yi0f/c6TZ+6OQUhk932R7bbKU8TMKUIHuwmj6HeGli/EL89pZwAgFdpPlYl6BK9BSmjDpaBQpHlabVfaXRoV549y9gys7e+xJlrFs0nIYkMqZjqG56Mmg8Gf8IEUxw1GOdudRqDpqKSyAPZHssumMB7L7qQbrRA3IPoeVeDdLqSeAqqhpWZp85eJ7e1yV3+Zp7ZmEfVHg9Uigbg5rRuw8WM X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR08MB3268.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39840400004)(136003)(376002)(366004)(396003)(346002)(66946007)(186003)(5660300002)(6666004)(53546011)(316002)(16526019)(956004)(2616005)(52116002)(966005)(16576012)(478600001)(66556008)(31686004)(8676002)(86362001)(36756003)(7416002)(66476007)(26005)(2906002)(4326008)(31696002)(83380400001)(8936002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?YXVUSE01L1BvbGRBNXUvMXF0UkFYc1VUaVREUkJqMWRoTnl0SWd4c25SSUYv?= =?utf-8?B?OFJaTWh5QXB2SWNoZ3V5Q1J5ZW1YUE81NDlTQlArOVlyUjAveG5BR2dkQ1h6?= =?utf-8?B?L3dSTFVxTUZVeXRaWFdYd1pLOS92MVI3RzlPWFZoVzEreDc0YnpMUjg5MUJU?= =?utf-8?B?YUUyZzJxUjNzZWh6TUUzZERJdWZBbU9UYkJkeTNTZnBwRm5sZWxReXU2WkRu?= =?utf-8?B?V1o4Z1V5MWFoQ3M3MkN1UmtiWlJsUjRnMzIrUGxXUVBmSVRzR2FFWjFSajFw?= =?utf-8?B?YlhZNlMzbEkrN3E4YVI5dnl1dFNaQW82dVliSEYzYW5SZkVSSEJ2elJ1UExT?= =?utf-8?B?RXI3ZXVFejNSdVpPTU5xWTJTM1dTS3pIVmpGSDBaREhZb0xyQUthVFZOSHdS?= =?utf-8?B?MWVsczRsQTk1Wk92N1J4enE4Tjl3aEhqV1I4MDZUNStIUk1aTno5OXlwbDJY?= =?utf-8?B?Z2x2eExibXJXVHdkNUVVRTdVRTRiM0JjeC9iTkRueTJJUzQ5Y0E5Z3NBNFk3?= =?utf-8?B?RjZoZkVnNjFPY2w4alRnLzF3S1dEQWZud3kydUh4UjQyckd6dGJBY05GSzB2?= =?utf-8?B?NTFnTnlLdTQ1QXB1S1c0NlpFcHBXejhaNFUzaFlNemVDc1ZoMUxRNVVSbi9v?= =?utf-8?B?UktOYnFwakhwb3hYV3NtS2JHNmJtVXlRL2xPajdjSzh5WU51SXBJSkZHV1Z4?= =?utf-8?B?Wllnb2N4MzcvUVBTNFhoQTRSSlkvb2lDSTlSSDdyb01IREZMS3VFSjJHMEtI?= =?utf-8?B?OFZ6WldUUk5hQnoxdWhNK2VIR21vYy9tL2sxYXIrVTJaTTJneExCZHFodnRX?= =?utf-8?B?VW9xdXRUNVkzVks2Z01WQzFRZ3FMZVIzV1B0NVcxY3JXRzV1YjVRZDhERk93?= =?utf-8?B?WitsdnhzcHVyazU5K3lkUnRNR29qUnBLQk9CMkdzdy9sR3lSVi9mM3p6RldL?= =?utf-8?B?eEZDbTJrWFppRVFNR2tOWDVvcHdIczZRL2wwKzdmN1lQN1dQa2xXL2duMXdi?= =?utf-8?B?RzRJL1UvVGp1d0pTNHpDSzA3L0hYVlpPVmFzV1VJTkJtSVlOaEZnRGRncGxr?= =?utf-8?B?Zm8xTFZoR2lhTEFkZnB4ZlNvQWVXdTBrNXBnUVNLQ3ZCWkRWRHM3T3VCMUNK?= =?utf-8?B?N0VIY3R5Z3VOT3lHaGl0bklpbE41L3BId25HTG1qdWcvSnRsaCtKVmU1WEpV?= =?utf-8?B?bXlOd09aS3BhWUZEb1FHajBxakQ4RU1IQkFZVmNDRkcxbGJBajZVVmFWZkxh?= =?utf-8?B?Mk5xK1doR1Ara24wd09kTXd3YmYvNFcwZ05UZ1lkUFc3bmpKRXNZNjdJQW1N?= =?utf-8?Q?iZTj7JkeQcq+dondTQgikcZ1xCnMfFPnvS?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3827 Original-Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 13a2fcf9-4a3f-443f-83aa-08d8be32d2d2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OJSFk84pI0yQUzvdOMo0Idz6WqNvp3sajN/5NtdBUljmNURQYln2CO1zcNRpwTfJK0YUZIVTdVhTEj9GBJUShaUypsuOcmBGf5W62SUjLOLJxOMTjodhtVTS4q6fRyq44BuuUzspkA+86cqljp/dr1AwlQZZt0ZOuP9PyLzW/WXzHTht7DqHWAgoLXBc8MKW2LJG69Zl29TaZN9zAam7bMy8AW8XLpEPHcK94TvNaxnv2ZCoOm6TUxRJhh93+qCLIix7PQeD4aOSkFOlBqGAxy0Xycw56av/EVn1b7O6LsYW6pYBFUIp4qF2dvxd9tCNElpxq21IeV+OjQjIdcl3eOafTU65KJEH3vL8BKQF2nv4oKDF+Oqnk5p1dGcwYHKUejLeSrnnHW9+Pq2QeaNlen8MglKqPTfthTObncwh8SK1GTk3Dl5icb/U8P8cRXCNpJ5OkAQVCbVCQhhollq/bNAaQpF/IgtMj4JeB6DIu0zYxckMHjUpfZQbTArIK0HfjiD3mLxT2OqaJ2PV9b663MpN0ktP/vlON/ryFTPwilDKLiqMuCB9UzX9ndoO+ka+uXw70nlU0bRS3RPetVhDss6R9llFVnwo3PKIJ/o8ml8+/JSHmEqDDSxYtMV4ggO2TrQGztQT33AvtnDnTAX7UwtOHj1Bq8UHnAwHLF3bFf3WRSS77Jd4pBre3DvUR4P1ZXfArAJySx/1XxAO6HhTGg== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(376002)(346002)(39850400004)(396003)(136003)(46966006)(36756003)(336012)(31686004)(83380400001)(6486002)(2616005)(6666004)(8676002)(16526019)(86362001)(81166007)(26005)(107886003)(82310400003)(956004)(5660300002)(186003)(4326008)(47076005)(53546011)(478600001)(16576012)(70206006)(70586007)(31696002)(316002)(966005)(82740400003)(2906002)(356005)(8936002)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2021 17:34:44.6766 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8153ab80-4ed9-4c81-bab4-08d8be32d78b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3513 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210121_123450_234771_45205E3A X-CRM114-Status: GOOD ( 23.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jean-philippe@linaro.org, kevin.tian@intel.com, jacob.jun.pan@linux.intel.com, mst@redhat.com, joro@8bytes.org, will.deacon@arm.com, shameerali.kolothum.thodi@huawei.com, alex.williamson@redhat.com, yi.l.liu@intel.com, lorenzo.pieralisi@arm.com, robin.murphy@arm.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Eric, On 1/19/21 2:33 PM, Auger Eric wrote: > Hi Vivek, > > On 1/15/21 1:13 PM, Vivek Gautam wrote: >> This patch-series aims at enabling Nested stage translation in guests >> using virtio-iommu as the paravirtualized iommu. The backend is supported >> with Arm SMMU-v3 that provides nested stage-1 and stage-2 translation. >> >> This series derives its purpose from various efforts happening to add >> support for Shared Virtual Addressing (SVA) in host and guest. On Arm, >> most of the support for SVA has already landed. The support for nested >> stage translation and fault reporting to guest has been proposed [1]. >> The related changes required in VFIO [2] framework have also been put >> forward. >> >> This series proposes changes in virtio-iommu to program PASID tables >> and related stage-1 page tables. A simple iommu-pasid-table library >> is added for this purpose that interacts with vendor drivers to >> allocate and populate PASID tables. >> In Arm SMMUv3 we propose to pull the Context Descriptor (CD) management >> code out of the arm-smmu-v3 driver and add that as a glue vendor layer >> to support allocating CD tables, and populating them with right values. >> These CD tables are essentially the PASID tables and contain stage-1 >> page table configurations too. >> A request to setup these CD tables come from virtio-iommu driver using >> the iommu-pasid-table library when running on Arm. The virtio-iommu >> then pass these PASID tables to the host using the right virtio backend >> and support in VMM. >> >> For testing we have added necessary support in kvmtool. The changes in >> kvmtool are based on virtio-iommu development branch by Jean-Philippe >> Brucker [3]. >> >> The tested kernel branch contains following in the order bottom to top >> on the git hash - >> a) v5.11-rc3 >> b) arm-smmu-v3 [1] and vfio [2] changes from Eric to add nested page >> table support for Arm. >> c) Smmu test engine patches from Jean-Philippe's branch [4] >> d) This series >> e) Domain nesting info patches [5][6][7]. >> f) Changes to add arm-smmu-v3 specific nesting info (to be sent to >> the list). >> >> This kernel is tested on Neoverse reference software stack with >> Fixed virtual platform. Public version of the software stack and >> FVP is available here[8][9]. >> >> A big thanks to Jean-Philippe for his contributions towards this work >> and for his valuable guidance. >> >> [1] https://lore.kernel.org/linux-iommu/20201118112151.25412-1-eric.auger@redhat.com/T/ >> [2] https://lore.kernel.org/kvmarm/20201116110030.32335-12-eric.auger@redhat.com/T/ >> [3] https://jpbrucker.net/git/kvmtool/log/?h=virtio-iommu/devel >> [4] https://jpbrucker.net/git/linux/log/?h=sva/smmute >> [5] https://lore.kernel.org/kvm/1599734733-6431-2-git-send-email-yi.l.liu@intel.com/ >> [6] https://lore.kernel.org/kvm/1599734733-6431-3-git-send-email-yi.l.liu@intel.com/ >> [7] https://lore.kernel.org/kvm/1599734733-6431-4-git-send-email-yi.l.liu@intel.com/ >> [8] https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps >> [9] https://git.linaro.org/landing-teams/working/arm/arm-reference-platforms.git/about/docs/rdn1edge/user-guide.rst > > Could you share a public branch where we could find all the kernel pieces. > > Thank you in advance Apologies for the delay. It took a bit of time to sort things out for a public branch. The branch is available in my github now. Please have a look. https://github.com/vivek-arm/linux/tree/5.11-rc3-nested-pgtbl-arm-smmuv3-virtio-iommu Thanks and regards Vivek > > Best Regards > > Eric >> >> Jean-Philippe Brucker (6): >> iommu/virtio: Add headers for table format probing >> iommu/virtio: Add table format probing >> iommu/virtio: Add headers for binding pasid table in iommu >> iommu/virtio: Add support for INVALIDATE request >> iommu/virtio: Attach Arm PASID tables when available >> iommu/virtio: Add support for Arm LPAE page table format >> >> Vivek Gautam (9): >> iommu/arm-smmu-v3: Create a Context Descriptor library >> iommu: Add a simple PASID table library >> iommu/arm-smmu-v3: Update drivers to work with iommu-pasid-table >> iommu/arm-smmu-v3: Update CD base address info for user-space >> iommu/arm-smmu-v3: Set sync op from consumer driver of cd-lib >> iommu: Add asid_bits to arm smmu-v3 stage1 table info >> iommu/virtio: Update table format probing header >> iommu/virtio: Prepare to add attach pasid table infrastructure >> iommu/virtio: Update fault type and reason info for viommu fault >> >> drivers/iommu/arm/arm-smmu-v3/Makefile | 2 +- >> .../arm/arm-smmu-v3/arm-smmu-v3-cd-lib.c | 283 +++++++ >> .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 16 +- >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 268 +------ >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 4 +- >> drivers/iommu/iommu-pasid-table.h | 140 ++++ >> drivers/iommu/virtio-iommu.c | 692 +++++++++++++++++- >> include/uapi/linux/iommu.h | 2 +- >> include/uapi/linux/virtio_iommu.h | 158 +++- >> 9 files changed, 1303 insertions(+), 262 deletions(-) >> create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-cd-lib.c >> create mode 100644 drivers/iommu/iommu-pasid-table.h >> > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel