Message ID | 877f3gf053.fsf@dusky.pond.sub.org |
---|---|
State | New |
Headers | show |
On 03/23/2017 11:06 AM, Markus Armbruster wrote: > Does the appended patch fix it for you? > > > diff --git a/qom/object_interfaces.c b/qom/object_interfaces.c > index 9c271ad..4d03665 100644 > --- a/qom/object_interfaces.c > +++ b/qom/object_interfaces.c > @@ -134,6 +134,7 @@ Object *user_creatable_add_opts(QemuOpts *opts, Error **errp) > visit_free(v); > > qemu_opts_set_id(opts, (char *) id); > + qemu_opt_set(opts, "qom-type", type, &error_abort); See my posting, which covers both exit paths, rather than just the successful exit path.
diff --git a/qom/object_interfaces.c b/qom/object_interfaces.c index 9c271ad..4d03665 100644 --- a/qom/object_interfaces.c +++ b/qom/object_interfaces.c @@ -134,6 +134,7 @@ Object *user_creatable_add_opts(QemuOpts *opts, Error **errp) visit_free(v); qemu_opts_set_id(opts, (char *) id); + qemu_opt_set(opts, "qom-type", type, &error_abort); g_free(type); QDECREF(pdict); return obj;