Skip to content

Implement CPU hotplug on Arm

Mykyta Poturai xen-devel 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest6 patches 4 repliesIn review
  2. v106 patches 4 repliesSuperseded
  3. v96 patches 7 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v86 patches3 repliesSuperseded
v76 patches17 repliesSuperseded
v65 patches9 repliesSuperseded
v55 patches12 repliesSuperseded
v48 patches11 repliesSuperseded
v35 patches9 repliesSuperseded
v24 patches0 repliesSuperseded
v14 patches13 repliesSuperseded

Changes in v11 from the cover letter

* rebase
* see individual patches

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm/irq: Keep track of irq affinitiesxen/arch/arm/gic-vgic.c xen/arch/arm/irq.c xen/arch/arm/vgic.c +2 more+39 -180 replies
2/6arm/irq: Migrate IRQs during CPU up/down operationsxen/arch/arm/irq.c+61 -01 reply
3/6Kconfig: Make cpu hotplug configurablexen/arch/x86/platform_hypercall.c xen/arch/x86/smp.c xen/arch/x86/sysctl.c +1 more+35 -00 replies
4/6arm/sysctl: Implement cpu hotplug opsxen/arch/arm/Kconfig xen/arch/arm/smp.c xen/arch/x86/Kconfig +8 more+99 -442 replies
5/6tools: Allow building xen-hptool without CONFIG_MIGRATEtools/misc/Makefile tools/misc/xen-hptool-x86.c tools/misc/xen-hptool.c +1 more+314 -2810 replies
6/6docs: Document CPU hotplugdocs/misc/cpu-hotplug.txt+102 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchVolodymyr BabchukBertrand MarquisJan BeulichAnthony PERARD
1/6R-b
2/6R-b
3/6A-b
4/6R-b A-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v11 thread

Cover letter [PATCH v11 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.

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                |  70 ++++++-
 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, 647 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
Signature · 1 line
2.56.0