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

Re: [PATCH v7 5/6] tools: Allow building xen-hptool without CONFIG_MIGRATE


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Wed, 15 Apr 2026 14:51:13 +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=D2z8A4beCmW03g94nx44erDZyXZVg5UfzsoDSGXfkes=; b=srjl77pw4XUnHFgYL3RtnBigO4GmbpBuUGkseugvR+aEuGu2YE9yf/G587IecqcaZ0y9iJMqrwvo/c3lo6j4b469+0B1BSA3UW4qLIrE7I9tfk1uoOZuGmXUkNHQHuPYup42sYXve+vR0dWS4A2qGZIeMfQOzjVW9joXZRRA6mmhvqlRp9lLfWxu5cabJrRT1s0pn4YHcvo3TJUom25/HHjo/PpME2kDnJVeucrQm2VdlQs8BlgLfD5tN3ghz3KISDhKl0nq6L2wOE5sKwSdr9NPQLv7P5uCQOG0nLDz4Nmpsnvk41rmwYKXuZgBLoce6+Qlf9XBZ7uXBHlk6pURvQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pNXHWB815q8z0I3MymuDdLVNTREQ3gjfiANNfDGe0tSmSqOTAhYyZJxIlmmTKpteDaTxV83x2euArsbDBvNjpmsWHKvB58I7tsuvb1+0ct0QggP53aHSMechDljUg/+mbN4xTeQF3v3M/lGIu8bGTQkLzdmjmq/+DIWk5Ad8v4LxA7pGQFxAyLSPbtTTiw6k2GLm4jcS/w/dllrYC1UpZLqj+wLlcAOD1bRx8Pwn9JhX8JIzCkuOlUvDTc+sSmJzhKvN13KxyoAICzH/hSHP7rQgdWAhOXAlOyjwoMAFkHucwaHdRFBExchzQX5XDQZdW/BnfSlyvJw/CL+0r6dvOw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 15 Apr 2026 14:51:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcwDy3LJnr4T20vUWAas874pXmi7XHAiYAgBlL+wA=
  • Thread-topic: [PATCH v7 5/6] tools: Allow building xen-hptool without CONFIG_MIGRATE


On 3/30/26 15:32, Jan Beulich wrote:
> On 30.03.2026 13:59, Mykyta Poturai wrote:
>> With CPU hotplug sysctls implemented on Arm it becomes useful to have a
>> tool for calling them.
>>
>> According to the commit history it seems that putting hptool under
>> config MIGRATE was a measure to fix IA64 build. As IA64 is no longer
>> supported it can now be brought back. So build it unconditionally.
>>
>> Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
>> ---
>> v6->v7:
>> * no changes
>>
>> v5->v6:
>> * don't change order in Makefile
>>
>> v4->v5:
>> * make hptool always build
>>
>> v3->v4:
>> * no changes
>>
>> v2->v3:
>> * no changes
>>
>> v1->v2:
>> * switch to configure from legacy config
>> ---
>>   tools/libs/guest/Makefile.common | 2 +-
>>   tools/misc/Makefile              | 2 +-
>>   2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/tools/libs/guest/Makefile.common 
>> b/tools/libs/guest/Makefile.common
>> index b928a4a246..03dfcee7fa 100644
>> --- a/tools/libs/guest/Makefile.common
>> +++ b/tools/libs/guest/Makefile.common
>> @@ -7,6 +7,7 @@ OBJS-y += xg_private.o
>>   OBJS-y += xg_domain.o
>>   OBJS-y += xg_suspend.o
>>   OBJS-y += xg_resume.o
>> +OBJS-y += xg_offline_page.o
>>   ifeq ($(CONFIG_MIGRATE),y)
>>   OBJS-y += xg_sr_common.o
>>   OBJS-$(CONFIG_X86) += xg_sr_common_x86.o
>> @@ -17,7 +18,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
> 
> This looks wrong to me. There are x86-specifics in that file, which shouldn't
> be built on Arm. And the name of the file also doesn't indicate any relation
> to CPU management.
> 
> Jan

xen-hptool requires xg_offline_page as it has both CPU and memory 
hotplug commands. Without building xg_offline_page it fails with

xen-hptool: symbol lookup error: xen-hptool: undefined symbol: 
xc_mark_page_offline, version libxenguest_4.22.0

when trying to do memory ops.

Is it an acceptable behavior? If so I guess we can build xg_offline page 
only on x86.

-- 
Mykyta

 


Rackspace

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