[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically |
Date: |
Wed, 16 Nov 2016 17:02:54 +0100 |
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 <address@hidden>
CC: Greg Kurz <address@hidden>
CC: David Gibson <address@hidden>
CC: Eduardo Habkost <address@hidden>
CC: Paolo Bonzini <address@hidden>
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(-)
--
2.7.4
- [Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically,
Igor Mammedov <=