Eduardo Habkost 8f302cb090 vl.c: Fix off-by-one bug when handling "-numa node" argument
The numa_add() code was unconditionally adding 1 to the get_opt_name()
return value, making it point after the end of the string if no ','
separator is present.

Example of weird behavior caused by the bug:

  $ qemu-img create -f qcow2 this-file-image-has,cpus=5,mem=1000,in-its-name.qcow2 5G
  Formatting 'this-file-image-has,cpus=5,mem=1000,in-its-name.qcow2', fmt=qcow2 size=5368709120 encryption=off cluster_size=65536
  $ ./x86_64-softmmu/qemu-system-x86_64 -S -monitor stdio -numa node 'this-file-image-has,cpus=5,mem=1000,in-its-name.qcow2'
  QEMU 1.3.50 monitor - type 'help' for more information
  (qemu) info numa
  1 nodes
  node 0 cpus: 0
  node 0 size: 1000 MB
  (qemu)

This changes the code to nove the pointer only if ',' is found.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-02-04 14:38:33 -06:00
2013-01-10 15:11:53 -06:00
2013-01-26 13:15:35 +00:00
2013-01-25 10:49:46 -02:00
2012-12-19 08:29:06 +01:00
2013-01-18 19:06:57 +01:00
2013-02-01 15:53:11 -06:00
2013-02-01 18:05:30 -06:00
2013-01-21 09:17:16 +01:00
2012-10-24 10:26:22 +02:00
2013-02-01 15:53:11 -06:00
2013-01-21 09:17:16 +01:00
2013-01-30 16:03:57 +00:00
2013-02-01 15:53:11 -06:00
2013-02-01 15:53:11 -06:00
2012-09-07 09:02:44 +03:00
2012-11-01 13:10:06 +01:00
2012-05-14 07:27:24 +02:00
2012-12-20 23:08:47 +01:00
2013-01-25 11:46:50 -02:00
2011-12-09 11:25:22 +00:00
2013-01-30 10:42:29 +01:00
2013-01-26 13:15:35 +00:00
2012-12-20 23:09:25 +01:00
2013-01-17 10:24:52 -02:00
2013-02-01 11:03:02 -06:00
2011-12-11 17:50:43 -06:00
2013-02-01 11:02:55 -06:00
2013-02-01 18:05:30 -06:00
2013-01-15 04:09:14 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
A fork of QEMU-Nyx which is better suited for my bachelors thesis
Readme 154 MiB
Languages
C 90.3%
Dylan 2.5%
Python 2.1%
C++ 2%
Shell 1.7%
Other 1.4%