[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 0/8] Implement CPU hotplug on Arm
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Wed, 12 Nov 2025 10:51:46 +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=AR9jAYTpubrvxc8ShR9MMo0f5MmFAzXVAJSGuuTt3Po=; b=TxGo4KenQJT/KDnLydluVvW8I6xiLHJ8nwdKjCJAszoMQyGMfd+n3AHJB2+nLoBCPECq4ZoQauKFiRu3LWr6ScTZvQMRF1OB2iA+pAych+WxXT3haBAkMpebMNMCBjnAP7FERCF7G5I3Z7jQmOvm05bwypoK3155vKZIkrWL9ldWvo3HdHGrSP0EL5YB35GOqGTSC7lJj9O5FLJ6fewc6rcHennRwEgMgZDtNDZAB187pzYJUVF00II5TjvSjTJyEFKv8Bx+1eKtux9goIW6IveFw6dhE1qqwaSditBkbOVZEwIY66wj5g09uX3CNVbiYEoPFEIn6vLuvKL3eCUUhg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MUhiXFLywyOHp5fHm7QOkFavZ5Z6uo2+5RxVw8ZMZKAAmwu4OvahnH02kweCZ/oIAYPHhVhCtsatjVlQ8prw0++LSFFBi+9HNySmfwAL/v6t+ZzyNbD5xdSY/e93YjNmfbB8WOYvmlPxBNsUY9fHRmZNDeObkjJRj6pObQRXKhlk829uRQR4pKXUrXdhT6daYRP1L4svSyT2pNtqwU7f/emSQyeKZ92rs6QREYqcNBv/Vdg3g3J+q0xLhSzZqiCDy9FrQqZZNXqZPICzUI5Bv0bClThFdaZBUClqdcQzDOJL3FA8sm8h0DSCAFrxT5e+Azwnrv36vi3gAJlozSAKnw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
- Delivery-date: Wed, 12 Nov 2025 10:51:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcU8JXoOHRlCVaaUGVyvNzAw9qGQ==
- Thread-topic: [PATCH v4 0/8] Implement CPU hotplug on Arm
This series implements support for CPU hotplug/unplug on Arm. To achieve this,
several things need to be done:
1. XEN_SYSCTL_CPU_HOTPLUG_* calls implemented.
2. timer and GIC maintenance interrupts switched to static irqactions to remove
the need for freeing them during release_irq.
3. Enabled the build of xen-hptool on Arm.
4. Migration of irqs from dying CPUs implemented.
Tested on QEMU.
Note: As there are currently no Xen-used IRQs on non-zero CPUs, I used a hack
that changed default affinity of IRQs in setup_irq to properly test IRQ
migration. The hack consisted of changing smp_processor_id call to some
hard-coded non-zero number.
v3->v4:
* add irq migration patches
* see individual patches
v2->v3:
* add docs
v1->v2:
* see individual patches
Mykyta Poturai (5):
arm/time: Use static irqaction
arm/gic: Use static irqaction
arm/irq: Keep track of irq affinities
arm/irq: Migrate IRQs from dyings CPUs
smp: Move cpu_up/down helpers to common code
arm/sysctl: Implement cpu hotplug ops
tools: Allow building xen-hptool without CONFIG_MIGRATE
docs: Document CPU hotplug
config/Tools.mk.in | 1 +
docs/misc/cpu-hotplug.txt | 51 ++++++++++++++++++++++++++++++++
tools/configure | 30 +++++++++++++++++++
tools/configure.ac | 1 +
tools/libs/guest/Makefile.common | 4 +++
tools/misc/Makefile | 2 +-
xen/arch/arm/Kconfig | 4 +++
xen/arch/arm/gic.c | 11 +++++--
xen/arch/arm/include/asm/irq.h | 2 ++
xen/arch/arm/irq.c | 42 ++++++++++++++++++++++++++
xen/arch/arm/smp.c | 6 ++++
xen/arch/arm/smpboot.c | 2 ++
xen/arch/arm/sysctl.c | 32 ++++++++++++++++++++
xen/arch/arm/time.c | 21 ++++++++++---
xen/arch/ppc/stubs.c | 4 +++
xen/arch/riscv/stubs.c | 5 ++++
xen/arch/x86/include/asm/smp.h | 3 --
xen/arch/x86/smp.c | 33 ++-------------------
xen/common/smp.c | 32 ++++++++++++++++++++
xen/include/xen/smp.h | 4 +++
20 files changed, 250 insertions(+), 40 deletions(-)
create mode 100644 docs/misc/cpu-hotplug.txt
mode change 100755 => 100644 tools/configure
--
2.51.2
|