commit | d423675c94442dadb4bd751dac876385960ce109 | [log] [tgz] |
---|---|---|
author | Andreas Färber <andreas.faerber@web.de> | Thu Nov 10 16:35:32 2011 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Fri Nov 11 08:27:06 2011 -0600 |
tree | ed64a301b7298cc7d26dd3af536116c8768f9329 | |
parent | 0e3b800e71cb7759d099eabbd8ad4c4fe848e381 [diff] |
vl.c: Fail gracefully if no machine is found 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 <andreas.faerber@web.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>