[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v12 0/6] Implement CPU hotplug on Arm
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Fri, 27 Nov 2026 11:45:25 +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=h8LBRlYnTu7Pk3Hchf50EPEUJ3NPJO5O0QXewANzx44=; b=CqCyaPjSFbRq3v1PgVkQXiUOtVPYOgGd6ws2grr5maZAL1MNPCHB6WsZ7KojRuz7LR/+zL7t6FWc8dl/ibhBaRoWU3ynon51mLybP8kG0M2LTLyRrMrMyqxTpOFzsqTMb6KDsSxvkJZKRTNot5Jav/wzAtEI7eCFOt2VUClyiBRI/TV40OUwj/2SXMQBnq4SneodWjOzYXuURc1ZVBCy2qFeao/KmQ150IqQtyZMEby8YnPO8h8i5Zl5w5uXHdNABRJs6bdhDncpVRoZCXubUN/AcKsI6fuzcTSV0d6RIavFkxIOuIuhDxjr/16QPkwx/fd6ECxIL9QZCWM53bpSfw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nT3hdTH5c2/ZTOEHgWlxaUb+YwCWX7izIky4O05SS6LfVmkiGyvStTvOgGOctIcKK/KAMjdd1N3nLfbouLlxNNcGni0PKrPjmi/Tg6zAyuVMCRSHpmDRgxoB9cN78k/y9OmFkS53j4f0Is1216w7GvY6hQ4xCHsap0uL+RDq+RzbuseyswJsOSioZvxcOg25g2aR0kdG5sZP8mHrwqmAhSfTIiZ0m8ziCPYSnOn/QV1TTspn+1qVJ3eSpELGODzzPSq475vKn78zkpYdFPszAfwZGODHdCv1HPeIJ7K7JzQKHtzKiJ6lA9Odl8TcyMx9Ur7qliADSYcUMW2ne72HVg==
- 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: mx.microsoft.com 1; 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>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 27 Nov 2026 11:45:40 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHdfmTKjAaMUururkSzVhUtjMqgQg==
- Thread-topic: [PATCH v12 0/6] 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 on Arm64.
2. Enabled building of xen-hptool.
3. Migration of irqs from dying CPUs implemented.
Tested on QEMU and R-Car Gen5 HW.
v11->v12:
* rebase
* move irq rebalance notifier from CPU_DEAD to CPU_DYING
v10->v11:
* rebase
* see individual patches
v9->v10:
* rebase
* see individual patches
v8->v9:
* rebase
* see individual patches
v7->v8:
* see individual patches
v6->v7:
* new patch "Kconfig: Make cpu hotplug configurable
v5->v6:
* see individual patches
v4->v5:
* drop merged patches
* combine "smp: Move cpu_up/down helpers to common code" with
"arm/sysctl: Implement cpu hotplug ops"
* see individual patches
v3->v4:
* add irq migration patches
* see individual patches
v2->v3:
* add docs
v1->v2:
* see individual patches
Mykyta Poturai (6):
arm/irq: Keep track of irq affinities
arm/irq: Migrate IRQs during CPU up/down operations
Kconfig: Make cpu hotplug configurable
arm/sysctl: Implement cpu hotplug ops
tools: Allow building xen-hptool without CONFIG_MIGRATE
docs: Document CPU hotplug
docs/misc/cpu-hotplug.txt | 102 +++++++++++
tools/misc/Makefile | 9 +-
tools/misc/xen-hptool-x86.c | 278 ++++++++++++++++++++++++++++
tools/misc/xen-hptool.c | 293 ++----------------------------
tools/misc/xen-hptool.h | 15 ++
xen/arch/arm/Kconfig | 1 +
xen/arch/arm/gic-vgic.c | 2 +
xen/arch/arm/irq.c | 79 +++++++-
xen/arch/arm/smp.c | 11 ++
xen/arch/arm/vgic.c | 14 +-
xen/arch/arm/vgic/vgic-mmio-v2.c | 11 +-
xen/arch/arm/vgic/vgic.c | 21 ++-
xen/arch/x86/Kconfig | 1 +
xen/arch/x86/include/asm/smp.h | 3 -
xen/arch/x86/platform_hypercall.c | 12 ++
xen/arch/x86/smp.c | 35 +---
xen/arch/x86/sysctl.c | 23 ++-
xen/common/Kconfig | 11 ++
xen/common/smp.c | 35 ++++
xen/common/sysctl.c | 32 ++++
xen/include/xen/smp.h | 6 +
xen/xsm/flask/hooks.c | 2 +-
22 files changed, 656 insertions(+), 340 deletions(-)
create mode 100644 docs/misc/cpu-hotplug.txt
create mode 100644 tools/misc/xen-hptool-x86.c
create mode 100644 tools/misc/xen-hptool.h
--
2.56.1
|