History | View | Annotate | Download (5.6 kB)
spice-qemu-char.c: Use correct printf format char for ssize_t
Use the correct printf format string character (%z) for ssize_t.This fixes a compile failure on 32 bit Linux with spice enabled.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
char: rename qemu_chr_read() -> qemu_chr_be_write()
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
char: rename qemu_chr_can_read() -> qemu_chr_be_can_read()
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
qemu-char: Print strerror message on failure
The only way for chardev drivers to communicate an error was to return a NULLpointer, which resulted in an error message that said that something wentwrong, but not why.
This patch changes the interface to return 0/-errno and updates...
spice-qemu-char: Fix flow control in client -> guest direction
In the old spice-vmc device we used to have:last_out = virtio_serial_write(&svc->port, p, MIN);if (last_out > 0) ...
Now in the chardev backend we have:last_out = MIN;...
spice-chardev: listen to frontend guest open / close
Note the vmc_register_interface() in spice_chr_write is left in placein case someone uses spice-chardev with a frontend which does not haveguest open / close notification.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>...
spice: add chardev (v5)
Adding a chardev backend for spice, where spice determines whatto do with it based on the name attribute given during chardev creation.For usage by spice vdagent in conjunction with a properly namedvirtio-serial device, and future smartcard channel usage....