Re: [Qemu-devel] [PATCH v3 1/4] numa: Fix off-by-one error at MAX_CPUMASK_BITS check

2015-02-23 Thread Igor Mammedov
On Thu, 12 Feb 2015 15:50:32 -0200 Eduardo Habkost ehabk...@redhat.com wrote: Fix the CPU index check to ensure we don't go beyond the size of the node_cpu bitmap. CPU index is always less than MAX_CPUMASK_BITS, as documented at sysemu.h: The following shall be true for all CPUs:

[Qemu-devel] [PATCH v3 1/4] numa: Fix off-by-one error at MAX_CPUMASK_BITS check

2015-02-12 Thread Eduardo Habkost
Fix the CPU index check to ensure we don't go beyond the size of the node_cpu bitmap. CPU index is always less than MAX_CPUMASK_BITS, as documented at sysemu.h: The following shall be true for all CPUs: cpu-cpu_index max_cpus = MAX_CPUMASK_BITS Signed-off-by: Eduardo Habkost