From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c72g1-0005cD-4J for qemu-devel@nongnu.org; Wed, 16 Nov 2016 11:03:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c72fv-0004fw-AM for qemu-devel@nongnu.org; Wed, 16 Nov 2016 11:03:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36612) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c72fv-0004fN-3y for qemu-devel@nongnu.org; Wed, 16 Nov 2016 11:03:03 -0500 From: Igor Mammedov Date: Wed, 16 Nov 2016 17:02:54 +0100 Message-Id: <1479312176-224580-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH RFC 0/2] numa: allocate CPUs masks dynamically List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Greg Kurz , David Gibson , Eduardo Habkost , Paolo Bonzini 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 CC: Greg Kurz CC: David Gibson CC: Eduardo Habkost CC: Paolo Bonzini 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