From patchwork Fri May 24 02:16:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 13672607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6607C25B7C for ; Fri, 24 May 2024 02:17:19 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.728979.1134066 (Exim 4.92) (envelope-from ) id 1sAKUI-0003Mn-Rx; Fri, 24 May 2024 02:16:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 728979.1134066; Fri, 24 May 2024 02:16:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sAKUI-0003Mg-PJ; Fri, 24 May 2024 02:16:54 +0000 Received: by outflank-mailman (input) for mailman id 728979; Fri, 24 May 2024 02:16:54 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sAKUH-0003Ma-Ru for xen-devel@lists.xenproject.org; Fri, 24 May 2024 02:16:53 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20601.outbound.protection.outlook.com [2a01:111:f403:2412::601]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ac31f690-1973-11ef-b4bb-af5377834399; Fri, 24 May 2024 04:16:48 +0200 (CEST) Received: from BY3PR05CA0052.namprd05.prod.outlook.com (2603:10b6:a03:39b::27) by LV3PR12MB9095.namprd12.prod.outlook.com (2603:10b6:408:1a6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Fri, 24 May 2024 02:16:41 +0000 Received: from CO1PEPF000075F4.namprd03.prod.outlook.com (2603:10b6:a03:39b:cafe::e4) by BY3PR05CA0052.outlook.office365.com (2603:10b6:a03:39b::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.9 via Frontend Transport; Fri, 24 May 2024 02:16:41 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1PEPF000075F4.mail.protection.outlook.com (10.167.249.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7611.14 via Frontend Transport; Fri, 24 May 2024 02:16:39 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 21:16:38 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 21:16:38 -0500 Received: from ubuntu-20.04.2-arm64.shared (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 23 May 2024 21:16:37 -0500 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ac31f690-1973-11ef-b4bb-af5377834399 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGMT2Yk7yr05+5JxfPAA31OIMzY4dLl1ebSMMVQTjjNzkO2mb5CCWaPCLnPBgFnuPCZ9hI/Mz49t7mSnhx7yAX7d8KS92GRIyZf3KQxiL2bxJUCCuaYsDwlcGYNAIM8K8HjJoONfe5E9VOk9El1DA3cgrSNTmVGM3kgw/96sF7Z1OCnv5t6ntAaFSdabfaVhOj0ymkQHMn8NaEddy5smYX80a9+HbF/PU6Lfwyfbr3Xq+nrQcp6vK6u3nc92xm01/AoawPnuOUASY/tPpqlszFOZDB0SbW3PXFDVoGZC/WxZV1FRuAUrc6A3zqTBbMI/5iBsu5/mBQXHU5pfd19hFg== 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=ppfuxHZIBQNKASSxfSPTIvxjawH5qY0rEI4KTAaepq4=; b=UdmTR9dQxz1JHsL8/Hk/IDRzfQtOFf9GaCLPIDBtt6VVL4r5FGTRfN9QTYGXuORYYEmt1ZNDUOwt8yTQxz/GelmDn4wXbump6X4siQIKOH9ou9gNCw36SVqMmqDviXrPtwICg8fAURkKzLaifJyOt/BliT9XHDEmFSV6PqZniI1/UvGZSx1ezdQme31Jbi3+KHjBQUYKb8fyJD3/npk0Yegv1w/qzj0MouBeI3xC0gRJAyo95ia3+R1QzIt8BhT1jAFaUB+D/J6KfuNLUJ+aVa9My2vFJhEChcs8q5qwOMljOxnI4c9ZoYl8Bl1nWC2LOgaqKHbzV9QZThKtJ+6acw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ppfuxHZIBQNKASSxfSPTIvxjawH5qY0rEI4KTAaepq4=; b=qPaPuXFJyikb5iff+kfTpvJHy02QEMG3vgUNjP1SnRHj/QbW5pC6xYqbvFdcLZQQz67j/RoICznQbNSAp339yhYuIT8ml3KnYHX6T7PDdouHlTeT30PurQZK8YYlqYEEJ/i8AlM+eGbO8UbLlKWrxeNqEfADVX2ZnRq8+UfMDeQ= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Date: Thu, 23 May 2024 19:16:37 -0700 From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: CC: Anthony PERARD , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , "Volodymyr Babchuk" , George Dunlap , Nick Rosbrook , "Juergen Gross" , Andrew Cooper , "Jan Beulich" Subject: [PATCH v5 0/7] Remaining patches for dynamic node programming using overlay dtbo Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000075F4:EE_|LV3PR12MB9095:EE_ X-MS-Office365-Filtering-Correlation-Id: a74b48ed-88f9-48f2-e73f-08dc7b978c22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|376005|7416005|1800799015|36860700004; X-Microsoft-Antispam-Message-Info: MKO0EjWV6yNc48/xgP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icJzcrPpOzIZ2lWwWySx0lGXYNb8W8l0OQUEM95/2Gmj72uBE99/vDtVQMfSfySATVijTkoRt4k7LlJ7QeAMJlhiA8UrORCNestOkjuC02T8Mg8tP+MhYeD2oq8HhBmOII2o8XK/K1fJi10QXb5YpUaERwSPo2osgy/8qsT+WplzEXqladmp+n2AjzDYlXVndfg+sMxDj6QrJ4AFhv1ii8IGZdM6Ll4St8kTC0jUl16 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230031)(82310400017)(376005)(7416005)(1800799015)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2024 02:16:39.9268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a74b48ed-88f9-48f2-e73f-08dc7b978c22 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000075F4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9095 Hi all, This is the remaining series for the full functional "dynamic node programming using overlay dtbo" feature. The first part [1] has already been merged. Quoting from the original series, the first part has already made Xen aware of new device tree node which means updating the dt_host with overlay node information, and in this series, the goal is to map IRQ and IOMMU during runtime, where we will do the actual IOMMU and IRQ mapping and unmapping to a running domain. Also, documentation of the "dynamic node programming using overlay dtbo" feature is added. During the discussion in v3, I was recommended to split the overlay devices attach/detach to/from running domains to separated patches [3]. But I decided to only expose the xl user interfaces together to the users after device attach/detach is fully functional, so I didn't split the toolstack patch (#8). Patch 1 is a fix of the existing code which is noticed during my local tests, details please see the commit message. Gitlab CI for this series can be found in [2]. [1] https://lore.kernel.org/xen-devel/20230906011631.30310-1-vikram.garhwal@amd.com/ [2] https://gitlab.com/xen-project/people/henryw/xen/-/pipelines/1301720278 [3] https://lore.kernel.org/xen-devel/e743d3d2-5884-4e55-8627-85985ba339f9@amd.com/ Changes in v5: - address Julien's comments - remove patches and mentions of the "detach" operation - add a check for xen,reg and return error if present - Stefano