Skip to content

xen/sched: fix cpu hotplug

Juergen Gross xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 6 repliesSuperseded
  3. v23 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches9 repliesSuperseded

Changes in v4 from the cover letter

- addressed comments

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/sched: introduce cpupool_update_node_affinity()xen/common/sched/core.c xen/common/sched/cpupool.c xen/common/sched/private.h +1 more+74 -350 replies
2/3xen/sched: carve out memory allocation and freeing from schedule_cpu_rm()xen/common/sched/core.c xen/common/sched/private.h+98 -560 replies
3/3xen/sched: fix cpu hotplugxen/common/sched/core.c xen/common/sched/cpupool.c xen/common/sched/private.h+77 -222 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] xen/sched: fix cpu hotplug

A recent change in the hypervisor memory allocation framework led to crashes when unplugging host cpus.

This was due to the (correct) assertion that allocating and freeing memory is allowed with enabled interrupts only. As the main cpu unplug operation is done in stop-machine context, this assertion triggers in debug builds.

Correct that by pre-allocating all needed memory while interrupts are still on, and free memory after interrupts are enabled again.

Changes in V4:
- addressed comments

Changes in V3:
- addressed all comments

Changes in V2:
- addressed all comments

Juergen Gross (3):
xen/sched: introduce cpupool_update_node_affinity() xen/sched: carve out memory allocation and freeing from
schedule_cpu_rm()
xen/sched: fix cpu hotplug

 xen/common/sched/core.c    | 214 ++++++++++++++++++++++++-------------
 xen/common/sched/cpupool.c |  92 +++++++++++-----
 xen/common/sched/private.h |  21 +++-
 xen/include/xen/sched.h    |   9 +-
 4 files changed, 236 insertions(+), 100 deletions(-)
Signature · 1 line
2.35.3