aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/misc_helper.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2013-02-04 16:27:52 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-04 14:38:35 -0600
commitc881e20eed4911ab6f8c674f2b1bf225a2cdde71 (patch)
tree4e4a5e8b9c5e04ab39604c59ad3ea876a992cad2 /target-ppc/misc_helper.c
parent845e5bf9cd49873c72f84796cabf107c3f520f37 (diff)
vl.c: validate -numa "cpus" parameter properly
- Accept empty strings without aborting - Use parse_uint*() to parse numbers - Abort if anything except '-' or end-of-string is found after the first number. - Check for endvalue < value Also change the MAX_CPUMASK_BITS warning message from "A max of %d CPUs are supported in a guest" to "qemu: NUMA: A max of %d VCPUs are supported". Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-ppc/misc_helper.c')
0 files changed, 0 insertions, 0 deletions