vl.c: fix regression when reading machine type from config file
commite1ce0c3cb7c99e71feb001e392489aa333e87f3c
authorMarcel Apfelbaum <marcel@redhat.com>
Wed, 7 Jan 2015 12:11:38 +0000 (7 14:11 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:28:09 +0000 (22 12:28 -0600)
tree8427c4e930fe534d1988a243cfcdfc83b3551e08
parentcb3360dbdd85ce2eb97805e4ce70932ab333e8d1
vl.c: fix regression when reading machine type from config file

After 'Machine as QOM' series the machine type input triggers
the creation of the machine class.
If the machine type is set in the configuration file, the machine
class is not updated accordingly and remains the default.

Fixed that by querying the machine options after the configuration
file is loaded.

Cc: qemu-stable@nongnu.org
Reported-by: William Dauchy <william@gandi.net>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 364c3e6b8dd7912e01d19122d791b8c8f6df4f6c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
vl.c