Statistics
| Branch: | Revision:

root / spice-qemu-char.c @ 992aeb8e

History | View | Annotate | Download (8.3 kB)

# Date Author Comment
27dd7730 12/20/2012 01:15 am Anthony Liguori

Merge remote-tracking branch 'bonzini/header-dirs' into staging

  • bonzini/header-dirs: (45 commits)
    janitor: move remaining public headers to include/
    hw: move executable format header files to hw/
    fpu: move public header file to include/fpu
    softmmu: move remaining include files to include/ subdirectories...
927d4878 12/19/2012 09:32 am Paolo Bonzini

softmmu: move remaining include files to include/ subdirectories

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

077805fa 12/19/2012 09:29 am Paolo Bonzini

janitor: do not rely on indirect inclusions of or from qemu-char.h

Various header files rely on qemu-char.h including qemu-config.h or
main-loop.h, but they really do not need qemu-char.h at all (particularly
interesting is the case of the block layer!). Clean this up, and also...

07a54d70 12/17/2012 03:01 pm Marc-André Lureau

spice-qemu-char: write to chardev whatever amount it can read

The current code waits until the chardev can read MIN
But some chardev may never reach than amount, in fact some of them
will only ever accept write of 1. Fix the min computation and remove...

71b423f4 12/17/2012 03:01 pm Marc-André Lureau

spice-qemu-char: factor out CharDriverState creation

Make the CharDriverState creation code reusable by spicevmc port.

Signed-off-by: Gerd Hoffmann <>

5a49d3e9 12/17/2012 03:01 pm Marc-André Lureau

spice-qemu-char: add spiceport chardev

Add a new spice chardev to allow arbitrary communication between the
host and the Spice client via the spice server.

Examples:

This allows the Spice client to have a special port for the qemu
monitor:

... -chardev spiceport,name=org.qemu.monitor,id=monitorport...

7a5448ce 12/17/2012 03:01 pm Marc-André Lureau

spice-qemu-char: keep a list of spice chardev

Signed-off-by: Gerd Hoffmann <>

afd0b409 12/17/2012 03:01 pm Marc-André Lureau

spice-qemu-char: register spicevmc ports during qemu_spice_init()

Do the delayed registration of spicevmc ports after Spice server is
initialized.

Signed-off-by: Gerd Hoffmann <>

4f5c0177 04/20/2012 03:14 pm Eduardo Elias Ferreira

spice-qemu-char.c: Show what name is unsupported

Signed-off-by: Eduardo Elias Ferreira <>
Signed-off-by: Stefan Hajnoczi <>

1f51470d 02/24/2012 05:06 pm Markus Armbruster

Revert "qemu-char: Print strerror message on failure" and deps

The commit's purpose is laudable:

The only way for chardev drivers to communicate an error was to
return a NULL pointer, which resulted in an error message that
said that something went wrong, but not why....
f76e4c7f 11/29/2011 12:20 am Hans de Goede

spice-qemu-char: Generate chardev open/close events

Define a state callback and make that generate chardev open/close events when
called by the spice-server.

Notes:

1) For all but the newest spice-server versions (which have a fix for this)
the code ignores these events for a spicevmc with a subtype of vdagent, this...

7b6c7369 09/07/2011 10:20 am Peter Maydell

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 <>
Signed-off-by: Gerd Hoffmann <>

fa5efccb 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_read() -> qemu_chr_be_write()

Signed-off-by: Anthony Liguori <>

909cda12 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_can_read() -> qemu_chr_be_can_read()

Signed-off-by: Anthony Liguori <>

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

6e1db57b 07/23/2011 07:18 pm Kevin Wolf

qemu-char: Print strerror message on failure

The only way for chardev drivers to communicate an error was to return a NULL
pointer, which resulted in an error message that said that something went
wrong, but not why.

This patch changes the interface to return 0/-errno and updates...

35106c2d 06/06/2011 10:14 am Hans de Goede

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;...

cd8f7df2 04/28/2011 08:32 am Hans de Goede

spice-chardev: listen to frontend guest open / close

Note the vmc_register_interface() in spice_chr_write is left in place
in case someone uses spice-chardev with a frontend which does not have
guest open / close notification.

Signed-off-by: Hans de Goede <>...

cbcc6336 01/24/2011 04:41 pm Alon Levy

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....