diff options
author | Alon Levy <alevy@redhat.com> | 2011-01-19 10:49:50 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-24 15:41:40 +0100 |
commit | cbcc6336ce9e5c048821b136649712e078c4d05f (patch) | |
tree | bc12eee8b3dcd095f4d2449667a6130f9e2cc3d9 /ui/qemu-spice.h | |
parent | 710fc4f5f1cbb6d2cebdc575def9f9dba4b0263f (diff) |
spice: add chardev (v5)
Adding a chardev backend for spice, where spice determines what
to do with it based on the name attribute given during chardev creation.
For usage by spice vdagent in conjunction with a properly named
virtio-serial device, and future smartcard channel usage.
Example usage:
qemu -device virtio-serial -chardev spicevmc,name=vdagent,id=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0
v4->v5:
* add tracing events
* fix missing comma
* fix help string to show debug is optional
v3->v4:
* updated commit message
v1->v3 changes: (v2 had a wrong commit message)
* removed spice-qemu-char.h, folded into ui/qemu-spice.h
* removed dead IOCTL code
* removed comment
* removed ifdef CONFIG_SPICE from qemu-config.c and qemu-options.hx help.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/qemu-spice.h')
-rw-r--r-- | ui/qemu-spice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qemu-spice.h b/ui/qemu-spice.h index 05dc50a69d..916e5dce21 100644 --- a/ui/qemu-spice.h +++ b/ui/qemu-spice.h @@ -24,6 +24,7 @@ #include "qemu-option.h" #include "qemu-config.h" +#include "qemu-char.h" extern int using_spice; @@ -41,6 +42,8 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port, void do_info_spice_print(Monitor *mon, const QObject *data); void do_info_spice(Monitor *mon, QObject **ret_data); +CharDriverState *qemu_chr_open_spice(QemuOpts *opts); + #else /* CONFIG_SPICE */ #define using_spice 0 |