diff options
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c index 427901c0c5..f13374770a 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3729,6 +3729,14 @@ ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend, chr = qemu_chr_open_win_con(); break; #endif +#ifdef CONFIG_SPICE + case CHARDEV_BACKEND_KIND_SPICEVMC: + chr = qemu_chr_open_spice_vmc(backend->spicevmc->type); + break; + case CHARDEV_BACKEND_KIND_SPICEPORT: + chr = qemu_chr_open_spice_port(backend->spiceport->fqdn); + break; +#endif default: error_setg(errp, "unknown chardev backend (%d)", backend->kind); break; |