All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/8] Implement CPU hotplug on Arm
@ 2025-11-12 10:51 Mykyta Poturai
  2025-11-12 10:51 ` [PATCH v4 1/8] arm/time: Use static irqaction Mykyta Poturai
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Mykyta Poturai @ 2025-11-12 10:51 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Mykyta Poturai, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Andrew Cooper,
	Anthony PERARD, Jan Beulich, Roger Pau Monné,
	Timothy Pearson, Alistair Francis, Bob Eshleman, Connor Davis,
	Oleksii Kurochko, Daniel P. Smith, Juergen Gross

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-12-31 15:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 10:51 [PATCH v4 0/8] Implement CPU hotplug on Arm Mykyta Poturai
2025-11-12 10:51 ` [PATCH v4 1/8] arm/time: Use static irqaction Mykyta Poturai
2025-11-12 10:51 ` [PATCH v4 2/8] arm/gic: " Mykyta Poturai
2025-11-12 10:51 ` [PATCH v4 3/8] arm/irq: Keep track of irq affinities Mykyta Poturai
2025-11-16 10:24   ` Julien Grall
2025-11-12 10:51 ` [PATCH v4 4/8] arm/irq: Migrate IRQs from dyings CPUs Mykyta Poturai
2025-11-16 11:24   ` Julien Grall
2025-12-12 10:01     ` Mykyta Poturai
2025-12-31 15:30       ` Julien Grall
2025-11-12 10:51 ` [PATCH v4 6/8] arm/sysctl: Implement cpu hotplug ops Mykyta Poturai
2025-11-13 15:49   ` Grygorii Strashko
2025-11-21 16:12     ` Mykyta Poturai
2025-11-16 11:34   ` Julien Grall
2025-11-12 10:51 ` [PATCH v4 5/8] smp: Move cpu_up/down helpers to common code Mykyta Poturai
2025-11-13 10:37   ` Jan Beulich
2025-11-16 11:29   ` Julien Grall
2025-11-12 10:51 ` [PATCH v4 8/8] docs: Document CPU hotplug Mykyta Poturai
2025-11-16 11:43   ` Julien Grall
2025-11-12 10:51 ` [PATCH v4 7/8] tools: Allow building xen-hptool without CONFIG_MIGRATE Mykyta Poturai
2025-11-28 17:42   ` Anthony PERARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.