This adds extra checks to the NUMA code to make sure the CPU configuration is consistent. This needs to be applied on top of the following series:
Message-Id: <1423421482-11619-1-git-send-email-ehabk...@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] NUMA code cleanup From: Eduardo Habkost <ehabk...@redhat.com> Date: Sun, 8 Feb 2015 16:51:15 -0200 Git tree: https://github.com/ehabkost/qemu.git numa-next Changes v1 -> v2: * (none, v1 was tagged by accident and never sent to qemu-devel) Changes v2 -> v3: * Fix off-by-one error on CPU index check * Use GString and error_report() instead of calling fprintf() directly * Simplify logic of the CPUs-not-present check Eduardo Habkost (4): numa: Fix off-by-one error at MAX_CPUMASK_BITS check numa: Reject CPU indexes > max_cpus numa: Reject configuration if CPU appears on multiple nodes numa: Print warning if no node is assigned to a CPU numa.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) -- 2.1.0