[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 12/12] xen/dt: Remove DOM0LESS_BOOT's requirement on HAS_DEVICE_TREE_DISCOVERY


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Fri, 20 Jun 2025 20:28:58 +0200
  • 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)
  • 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=WdFpjspBLXF09Dh8dXIg7wVUrR+4cy9u7XozgkJTdVo=; b=N8XLJsehOvwA0GFGe5oZn76SwEzxfsTBr98X+OAVVa5LUhNmeCRWYWxMI+VhjI8PHscUzoiicrkgajOHuXqKC7L2SPbT0CTaUOExj3etAtDLMY6Dx/AMfvgRsztDzKs9Ucr9i33kM9TgcEv9eHuIIVF45UtkNjNtCrrV//RWKa+1M6vUHfAG/AzInTDAcGcqmIksc8yytuWNwR9tTQuLiuMWfNxp/3lV7jab3jlJLajMIa32Nlkyybu5iiYlkVQ/eMnecD05TncFRv1rEeOZ10iu4m4TPFdj9cEdtUBvPLKHcwVPUOxv/frSJZViwUlplbay48HiPiKQ5zBTr2Lo8A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iOuYhSWJzkdOQCjpsYOTL/Z4TtVTCF/m6u4Qs+T8DlNUNxXfkEu+QSyn9TwVYZUw3BTsLFqS5pynogxh+sYfIYX9FQRyoRyoYLFPlsJBD6eUdjsLzJi7xDPL9OKIQbHkg4B/+Httlyj7YVmZes4w5/vRYV+d1B9ts+hfcqvPi0EL6nqWo41X5HWgfb67kqkgWfrV6B6cwhlAXNSTmLEiPfha57XRarGROvdPXToEYPydHS0FdUshSf3HOa0lEA+rbfhdCbXUqTGOU6uG80ge5bFeZlHomqIxEQ2c3oQfNvw+meZuqNBDnQ/xpJ4Bhc1P4th0/tS1mqmJxhldpzhtsg==
  • Cc: Alejandro Vallejo <agarciav@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Bertrand Marquis" <bertrand.marquis@xxxxxxx>
  • Delivery-date: Fri, 20 Jun 2025 18:41:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This effectively means that DOM0LESS_BOOT on platforms without
HAS_DEVICE_TREE_DISCOVERY (i.e: x86) acts as a selector for a
stripped-down version of DT code.

Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx>
---
 xen/Kconfig.debug               | 2 +-
 xen/common/Kconfig              | 3 ++-
 xen/common/Makefile             | 1 +
 xen/common/device-tree/Makefile | 8 ++++----
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
index 9192d593a7..89b0af53a2 100644
--- a/xen/Kconfig.debug
+++ b/xen/Kconfig.debug
@@ -92,7 +92,7 @@ config VERBOSE_DEBUG
 
 config DEVICE_TREE_DEBUG
        bool "Device tree debug messages"
-       depends on HAS_DEVICE_TREE_DISCOVERY
+       depends on DOM0LESS_BOOT || HAS_DEVICE_TREE_DISCOVERY
        help
          Device tree parsing and DOM0 device tree building messages are
          logged in the Xen ring buffer.
diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 6294cd7939..1ac28a4e78 100644
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -14,7 +14,8 @@ config CORE_PARKING
 
 config DOM0LESS_BOOT
        bool "Dom0less boot support" if EXPERT
-       depends on HAS_DOM0LESS && HAS_DEVICE_TREE_DISCOVERY && 
DOMAIN_BUILD_HELPERS
+       select LIBFDT
+       depends on HAS_DOM0LESS && DOMAIN_BUILD_HELPERS
        default y
        help
          Dom0less boot support enables Xen to create and start domU guests 
during
diff --git a/xen/common/Makefile b/xen/common/Makefile
index d541fbcf49..19d6ff7a90 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -9,6 +9,7 @@ obj-$(CONFIG_DEBUG_TRACE) += debugtrace.o
 obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += device.o
 obj-$(filter-out $(CONFIG_X86),$(CONFIG_ACPI)) += device.o
 obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += device-tree/
+obj-$(CONFIG_DOM0LESS_BOOT) += device-tree/
 obj-$(CONFIG_IOREQ_SERVER) += dm.o
 obj-y += domain.o
 obj-y += event_2l.o
diff --git a/xen/common/device-tree/Makefile b/xen/common/device-tree/Makefile
index 8abc069c4b..4a10b0508f 100644
--- a/xen/common/device-tree/Makefile
+++ b/xen/common/device-tree/Makefile
@@ -1,11 +1,11 @@
 obj-y += bootfdt.init.o
-obj-y += bootinfo-fdt.init.o
-obj-y += bootinfo.init.o
-obj-y += device-tree.o
+obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += bootinfo-fdt.init.o
+obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += bootinfo.init.o
+obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += device-tree.o
 obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += domain-build.init.o
 obj-$(CONFIG_DOM0LESS_BOOT) += dom0less-build.init.o
 obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
-obj-y += intc.o
+obj-$(CONFIG_HAS_DEVICE_TREE_DISCOVERY) += intc.o
 obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += kernel.o
 obj-$(CONFIG_STATIC_EVTCHN) += static-evtchn.init.o
 obj-$(CONFIG_STATIC_MEMORY) += static-memory.init.o
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.