Skip to content

RFC numa: allocate CPUs masks dynamically

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2add bitmap_free() wrapperinclude/qemu/bitmap.h+5 -01 reply
2/2numa: make -numa parser dynamically allocate CPUs masksinclude/sysemu/numa.h include/sysemu/sysemu.h numa.c +1 more+13 -202 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAlexey Kardashevskiy
SeriesT-b
1/2
2/2

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically

This series removes global MAX_CPUMASK_BITS constant so that it won't inderectly influence maximum CPUs count supported by different targets.

It replaces statically allocated bitmasks with dynamically allocated ones using '-smp maxcpus' value for setting bitmasks size.
That would allocate just enough memory to handle all CPUs indexes that a QEMU instance would ever have.

CC Alexey Kardashevskiy <[email protected]>
CC Greg Kurz <[email protected]>
CC David Gibson <[email protected]>
CC Eduardo Habkost <[email protected]>
CC Paolo Bonzini <[email protected]>

Igor Mammedov (2):
add bitmap_free() wrapper
numa: make -numa parser dynamically allocate CPUs masks

 include/qemu/bitmap.h   |  5 +++++
 include/sysemu/numa.h   |  2 +-
 include/sysemu/sysemu.h |  7 -------
 numa.c                  | 19 ++++++++++++-------
 vl.c                    |  5 -----
 5 files changed, 18 insertions(+), 20 deletions(-)
Signature · 1 line
2.7.4