numa: Reject CPU indexes > max_cpus
commit8979c945c1a7ffd20edbd5da2513c04baccfd7de
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 9 Feb 2015 19:28:52 +0000 (9 17:28 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 19 Mar 2015 19:01:22 +0000 (19 16:01 -0300)
treeb78b1f1e65e60c0f73565a625d65f931294abdb4
parented26b92290768818371fbfd4317988eab6009ad5
numa: Reject CPU indexes > max_cpus

CPU index is always less than max_cpus, as documented at sysemu.h:

> The following shall be true for all CPUs:
>   cpu->cpu_index < max_cpus <= MAX_CPUMASK_BITS

Reject configuration which uses invalid CPU indexes.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
numa.c