vl.c: fix regression when reading machine type from config file
commit364c3e6b8dd7912e01d19122d791b8c8f6df4f6c
authorMarcel Apfelbaum <marcel@redhat.com>
Wed, 7 Jan 2015 12:11:38 +0000 (7 14:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jan 2015 22:41:11 +0000 (9 23:41 +0100)
tree6c3e28eadb082ada1941e690769ab16bf58f6400
parente76d442043ff50716457d5558c237b6e60345f53
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>
vl.c