aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-02-25 15:52:32 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-03-13 10:27:46 +0100
commit702ec69cc1aa87a1e53d1b066a38a9eb0fa7845b (patch)
treead39cd88ddcab8a51f303b8a7e3497249a09cbb3 /qemu-char.c
parentcd153e2aa2f0ec39c04c2b732ebebfc6d4766986 (diff)
downloadqemu-702ec69cc1aa87a1e53d1b066a38a9eb0fa7845b.zip
qemu-702ec69cc1aa87a1e53d1b066a38a9eb0fa7845b.tar.gz
qemu-702ec69cc1aa87a1e53d1b066a38a9eb0fa7845b.tar.bz2
chardev: add vc support to qapi
This patch adds 'vc' support to qapi and also switches over the vc chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c
index f133747..2d62ee9 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -3737,6 +3737,9 @@ ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend,
chr = qemu_chr_open_spice_port(backend->spiceport->fqdn);
break;
#endif
+ case CHARDEV_BACKEND_KIND_VC:
+ chr = vc_init(backend->vc);
+ break;
default:
error_setg(errp, "unknown chardev backend (%d)", backend->kind);
break;