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

[PATCH v1 4/4] tools: Allow building xen-hptool without CONFIG_MIGRATE


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Thu, 18 Sep 2025 12:16:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • 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=reDYiedqoZNI03qhIvZun1ctpUFxzc7JosMbd9+r4uE=; b=IQ3YeTiUDCEFSx7DeDI12MJQhS7vkG7px4hSZ0/L0vOLZ4X5+ffyqAGPy910FYkvUH+OMfZNubDNVS6trgZC4F+Bc5VjoonsHhk/QcrmuojLfdiZKJOaHpBBWzFHhYHlQGUwvZd+o+gEqTDCH/2dFx3pLebrBQvPB3epYqWLvc7DB0+p8dgWsbqJk/Tup0s2KPk883z0fo2LMYnVjlv/7n4biAlOHtR9soU3Lg2MiyRQQMos3G3o7bn4E3uYGLL5/LrPzKbqi0Fl+USk5ernXI9C6ZbxGckHllJ7Xeg4JUA/i1mVoAOIO5EqIZUuw7RXhgfk1fMQkFw57v/6hNVA2g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DPDsVc+eDVt76bCHLIid+pppMn9RI5e0/Fwy5gq6aEiFWsZueC9NVFkfDmEO6Y4hu0g/eeRSNM+yDLXeHiToKWy366fNxF0ScTS22w3hzJjk/DWYTz/cH6NP9nJ2eW1cZ8XZgaHsQmuNbBRq0K+X9lKjl2C3FHeLKm5iQzwVf0IWJpq1KZEnxXlXUCzPZNVdmgPj5MgRlnjPwEbv+s2BCjlohQiGRn71yAye8zvqnmN3L97Vcfp1D93j2shqYq/Z+lwsAZE9TVNaurilQj5rwNydL/4kfuEknJj3AvIoytOx8cuAsBU6442rlajau4b0MSni4o8ELbl1mSePhqEO6A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, 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>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Thu, 18 Sep 2025 12:16:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcKJYT9WcJIkqhZk6dQ6fXEj6SxA==
  • Thread-topic: [PATCH v1 4/4] tools: Allow building xen-hptool without CONFIG_MIGRATE

With CPU hotplug sysctls implemented on Arm it becomes useful to have a tool
for calling them. Introduce new CONFIG_HOTPLUG to allow building hptool
separately from other migration tools and enable it for Arm.

Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
---
 config/arm64.mk                  | 1 +
 config/x86_32.mk                 | 1 +
 config/x86_64.mk                 | 1 +
 tools/libs/guest/Makefile.common | 4 +++-
 tools/misc/Makefile              | 2 +-
 5 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/config/arm64.mk b/config/arm64.mk
index c4662f67d0..d4995c8991 100644
--- a/config/arm64.mk
+++ b/config/arm64.mk
@@ -1,5 +1,6 @@
 CONFIG_ARM := y
 CONFIG_ARM_64 := y
+CONFIG_HOTPLUG := y
 
 CONFIG_XEN_INSTALL_SUFFIX :=
 
diff --git a/config/x86_32.mk b/config/x86_32.mk
index 3cc046d9bc..0c88862ad3 100644
--- a/config/x86_32.mk
+++ b/config/x86_32.mk
@@ -3,6 +3,7 @@ CONFIG_X86_32 := y
 
 CONFIG_MIGRATE := y
 CONFIG_XCUTILS := y
+CONFIG_HOTPLUG := y
 
 CFLAGS += -m32 -march=i686
 
diff --git a/config/x86_64.mk b/config/x86_64.mk
index 8614457b03..25cf965507 100644
--- a/config/x86_64.mk
+++ b/config/x86_64.mk
@@ -3,6 +3,7 @@ CONFIG_X86_64 := y
 
 CONFIG_MIGRATE := y
 CONFIG_XCUTILS := y
+CONFIG_HOTPLUG := y
 
 CONFIG_XEN_INSTALL_SUFFIX := .gz
 
diff --git a/tools/libs/guest/Makefile.common b/tools/libs/guest/Makefile.common
index a026a2f662..96a1141511 100644
--- a/tools/libs/guest/Makefile.common
+++ b/tools/libs/guest/Makefile.common
@@ -7,6 +7,9 @@ OBJS-y += xg_private.o
 OBJS-y += xg_domain.o
 OBJS-y += xg_suspend.o
 OBJS-y += xg_resume.o
+
+OBJS-$(CONFIG_HOTPLUG) += xg_offline_page.o
+
 ifeq ($(CONFIG_MIGRATE),y)
 OBJS-y += xg_sr_common.o
 OBJS-$(CONFIG_X86) += xg_sr_common_x86.o
@@ -17,7 +20,6 @@ OBJS-$(CONFIG_X86) += xg_sr_save_x86_pv.o
 OBJS-$(CONFIG_X86) += xg_sr_save_x86_hvm.o
 OBJS-y += xg_sr_restore.o
 OBJS-y += xg_sr_save.o
-OBJS-y += xg_offline_page.o
 else
 OBJS-y += xg_nomigrate.o
 endif
diff --git a/tools/misc/Makefile b/tools/misc/Makefile
index c26e544e83..64b4d77051 100644
--- a/tools/misc/Makefile
+++ b/tools/misc/Makefile
@@ -16,7 +16,7 @@ INSTALL_BIN                    += xencov_split
 INSTALL_BIN += $(INSTALL_BIN-y)
 
 # Everything to be installed in regular sbin/
-INSTALL_SBIN-$(CONFIG_MIGRATE) += xen-hptool
+INSTALL_SBIN-$(CONFIG_HOTPLUG) += xen-hptool
 INSTALL_SBIN-$(CONFIG_X86)     += xen-hvmcrash
 INSTALL_SBIN-$(CONFIG_X86)     += xen-hvmctx
 INSTALL_SBIN-$(CONFIG_X86)     += xen-lowmemd
-- 
2.34.1



 


Rackspace

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