Message ID | 1391093245-14277-6-git-send-email-marcel.a@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/vl.c b/vl.c index 4f4722e..fcd56db 100644 --- a/vl.c +++ b/vl.c @@ -4307,6 +4307,11 @@ int main(int argc, char **argv, char **envp) current_machine = QEMU_MACHINE(object_new(object_class_get_name( OBJECT_CLASS(machine_class)))); + if (qemu_opt_foreach(machine_opts, object_set_property, current_machine, 1) < 0) { + object_unref(OBJECT(current_machine)); + exit(1); + } + /* init USB devices */ if (usb_enabled(false)) { if (foreach_device_config(DEV_USB, usb_parse) < 0)
Setting machine's properties provides a cleaner way to get the properties values than using QemuOpts. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> --- vl.c | 5 +++++ 1 file changed, 5 insertions(+)