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 D2F01C369B2 for ; Thu, 17 Apr 2025 13:01:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.957693.1350752 (Exim 4.92) (envelope-from ) id 1u5Ord-0007he-3c; Thu, 17 Apr 2025 13:01:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 957693.1350752; Thu, 17 Apr 2025 13:01:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u5Orc-0007hX-VA; Thu, 17 Apr 2025 13:01:08 +0000 Received: by outflank-mailman (input) for mailman id 957693; Thu, 17 Apr 2025 13:01:07 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u5Orb-0007hR-6l for xen-devel@lists.xenproject.org; Thu, 17 Apr 2025 13:01:07 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on20622.outbound.protection.outlook.com [2a01:111:f403:2406::622]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 04fd7a64-1b8c-11f0-9eb0-5ba50f476ded; Thu, 17 Apr 2025 15:01:05 +0200 (CEST) Received: from BL1PR13CA0352.namprd13.prod.outlook.com (2603:10b6:208:2c6::27) by PH7PR12MB9203.namprd12.prod.outlook.com (2603:10b6:510:2f2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8632.34; Thu, 17 Apr 2025 13:00:58 +0000 Received: from BN2PEPF000055DD.namprd21.prod.outlook.com (2603:10b6:208:2c6:cafe::6f) by BL1PR13CA0352.outlook.office365.com (2603:10b6:208:2c6::27) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8655.22 via Frontend Transport; Thu, 17 Apr 2025 13:00:57 +0000 Received: from SATLEXMB04.amd.com (165.204.84.17) by BN2PEPF000055DD.mail.protection.outlook.com (10.167.245.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8678.4 via Frontend Transport; Thu, 17 Apr 2025 13:00:57 +0000 Received: from localhost (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.39; Thu, 17 Apr 2025 08:00:55 -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: 04fd7a64-1b8c-11f0-9eb0-5ba50f476ded ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yJwHJTRutwRwboa7I0EHCg9bZaEk+PSP8WWUse1gWcDCfug7pql/ZlO4JHbe0ouNGHGIFfDLaWRu41udz9Rzr+maEtPmlr8Gh4ONOObNAGgGrMu/HTvT3916ctHId3varO1QMI7VMhhPV6fSQevc0pJpG4d9a06FN/EdjCXezlsjoiQUI8qN6z0sg6bDsZ37e9yQCfOCDndjnX0+DYlEFCMMQthUzghluc226dgSluBcnsnm1cI3yFBz+ZYDgwyUditfDATkhHff9mLVDahsQIDr7NorKvgIohdxpK3sc9KRTorShKtDsh5lr/PVKyz/55lMopigMcOvOya6RnD7oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Crf3pxy2usI2F5z3TBbHoZOroFJKskXGiBfs0101reY=; b=BcYgAv9QS5eeAV1FnZX83tQvdPcUVCLPSgVyd9C4L3lkTdggtLoJIATblEE+LfdAO861p2DgKRIxITXr2aHm73SUyWByjOwMXqt8WhgJypWyTSppTpxI0U6mp8pLCcrV7bPjecbuQarQBUDljnjxw/eV/ffbEf7zfw1jkyyCx+8mnflRMaMf+la/PO8Y/TQoU5dtxZ73vw5FFOUqSp9082rKrUloWhy/Tf1bAypxUunP34/61nAuF3+TR3hqDsVhh2xg8iZQI2MCCMRpif+eIbZI34R73L+gCWOfM825hgxk5ivRHIf3VC7Bp99fcWUS8RidcZJo85QY1V1X+4l3fg== 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=Crf3pxy2usI2F5z3TBbHoZOroFJKskXGiBfs0101reY=; b=YUpdF3IPuTxbiupAdjOxDxDkEBEtwXeLbUTpmQRoKfumlwfSL8g+EdndHdRYvHgzzWD0b9zOpFzL+5xmlrTvwyf0T5ABolQIUE7E4Zjp+1S8Vv2aGoENCjMW66m+jw2CT0vKJYO9aRR5H3RiQwvQXYwK9WYX+0RMKmFc1zfnT/I= 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=SATLEXMB04.amd.com; pr=C MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Date: Thu, 17 Apr 2025 14:00:54 +0100 Message-ID: Subject: Re: [PATCH v4 00/13] Hyperlaunch device tree for dom0 From: Alejandro Vallejo To: Alejandro Vallejo , CC: Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Anthony PERARD , "Michal Orzel" , Julien Grall , "Stefano Stabellini" , Bertrand Marquis X-Mailer: aerc 0.20.1 References: <20250417124844.11143-1-agarciav@amd.com> In-Reply-To: <20250417124844.11143-1-agarciav@amd.com> X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000055DD:EE_|PH7PR12MB9203:EE_ X-MS-Office365-Filtering-Correlation-Id: 0743d193-6a39-43de-f4ac-08dd7dafe522 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?B?d2FhWG5WeHJ5STQzMGJvK1hra09YTll5dDRQLzlneGFveGRtVDhzWkxoZWFm?= =?utf-8?B?ZVE2MFJMTzdYd1ZlbFo0a1BsdU4vT090VXhsMHRtekU0TjZJcDljRFNMazJI?= =?utf-8?B?d29Wb1JUd1BqMHNEZ0phaXBma09qYzlKUVlIUXZhYW0rK05WbUZpVjBuT0dO?= =?utf-8?B?ampleHQzMnZFc1ErNlh5RzhwR2FLcURybnY5eXg5THlxQnlVc1RJSVBpZmVQ?= =?utf-8?B?N1NCN2ExMXNSMVFpbXpxelZobGo3V2p0YXhncVRPTW1RYmQ5R3p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SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2025 13:00:57.3067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0743d193-6a39-43de-f4ac-08dd7dafe522 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000055DD.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9203 On Thu Apr 17, 2025 at 1:48 PM BST, Alejandro Vallejo wrote: > Hi, > > Here's a new version. Took a while to integrate all the feedback, but > here it is. > > v4 pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/pipeli= nes/1772300721 > > v3: https://lore.kernel.org/xen-devel/20250408160802.49870-1-agarciav@amd= .com/ > v2: https://lore.kernel.org/xen-devel/20241226165740.29812-1-dpsmith@aper= tussolutions.com/ > v1: https://lore.kernel.org/xen-devel/20241123182044.30687-1-dpsmith@aper= tussolutions.com/ > > Cheers, > Alejandro > > =3D=3D=3D=3D=3D=3D=3D=3D=3D Original cover letter: > > The Hyperlaunch device tree for dom0 series is the second split out for t= he > introduction of the Hyperlaunch domain builder logic. These changes focus= on > introducing the ability to express a domain configuration that is then us= ed to > populate the struct boot_domain structure for dom0. This ability to expre= ss a > domain configuration provides the next step towards a general domain buil= der. > > The splitting of Hyperlaunch into a set of series are twofold, to reduce = the > effort in reviewing a much larger series, and to reduce the effort in han= dling > the knock-on effects to the construction logic from requested review chan= ges. > > Alejandro Vallejo (1): > x86/hyperlaunch: Add helpers to locate multiboot modules > > Daniel P. Smith (12): > x86/boot: add cmdline to struct boot_domain > kconfig: introduce domain builder config options > common/hyperlaunch: introduce the domain builder > x86/hyperlaunch: initial support for hyperlaunch device tree > x86/hyperlaunch: locate dom0 kernel with hyperlaunch > x86/hyperlaunch: obtain cmdline from device tree > x86/hyperlaunch: locate dom0 initrd with hyperlaunch > x86/hyperlaunch: add domain id parsing to domain config > x86/hyperlaunch: specify dom0 mode with device tree > x86/hyperlaunch: add memory parsing to domain config > x86/hyperlaunch: add max vcpu parsing of hyperlaunch device tree > x86/hyperlaunch: add capabilities to boot domain > > xen/arch/x86/Kconfig | 1 + > xen/arch/x86/dom0_build.c | 11 + > xen/arch/x86/hvm/dom0_build.c | 31 +- > xen/arch/x86/include/asm/boot-domain.h | 17 + > xen/arch/x86/include/asm/bootinfo.h | 10 +- > xen/arch/x86/pv/dom0_build.c | 4 +- > xen/arch/x86/setup.c | 91 +++-- > xen/common/Kconfig | 5 + > xen/common/Makefile | 1 + > xen/common/domain-builder/Kconfig | 18 + > xen/common/domain-builder/Makefile | 2 + > xen/common/domain-builder/core.c | 110 ++++++ > xen/common/domain-builder/fdt.c | 488 +++++++++++++++++++++++++ > xen/common/domain-builder/fdt.h | 39 ++ > xen/include/xen/domain-builder.h | 13 + > xen/include/xen/libfdt/libfdt-xen.h | 44 +++ > 16 files changed, 839 insertions(+), 46 deletions(-) > create mode 100644 xen/common/domain-builder/Kconfig > create mode 100644 xen/common/domain-builder/Makefile > create mode 100644 xen/common/domain-builder/core.c > create mode 100644 xen/common/domain-builder/fdt.c > create mode 100644 xen/common/domain-builder/fdt.h > create mode 100644 xen/include/xen/domain-builder.h Bah, I just noticed after sending. The commit messages of the last 10 patches are meant to be common/hyperlaunch. Or just hyperlaunch. It _is_ effectively still x86-only, but it's living under common. Cheers, Alejandro