Re: [Qemu-devel] [PATCH] vl.c: Fail gracefully if no machine is found

2011-11-11 Thread Anthony Liguori
On 11/10/2011 09:35 AM, Andreas Färber wrote: machine defaults to find_default_machine(), then gets overridden via -M and machine_parse(). If no -M is specified and find_default_machine() returns NULL (when no machine compiled in), exit with an error. Avoids a segfault when setting machine->max

[Qemu-devel] [PATCH] vl.c: Fail gracefully if no machine is found

2011-11-10 Thread Andreas Färber
machine defaults to find_default_machine(), then gets overridden via -M and machine_parse(). If no -M is specified and find_default_machine() returns NULL (when no machine compiled in), exit with an error. Avoids a segfault when setting machine->max_cpus. Signed-off-by: Andreas Färber --- vl.c