Message ID | 56991727.5040901@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/qemu-char.c b/qemu-char.c index 02b0318..11caa56 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3827,7 +3827,12 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, error_propagate(errp, local_err); goto qapi_out; } + } else { + ChardevCommon *cc = g_new0(ChardevCommon, 1); + qemu_chr_parse_common(opts, cc); + backend->u.data = cc; } + ret = qmp_chardev_add(bid ? bid : id, backend, errp); if (!ret) { goto qapi_out;