]> Git Repo - qemu.git/commit
spice-qemu-char: Remove intermediate buffer
authorAlon Levy <[email protected]>
Fri, 5 Apr 2013 09:30:23 +0000 (11:30 +0200)
committerGerd Hoffmann <[email protected]>
Tue, 16 Apr 2013 09:52:09 +0000 (11:52 +0200)
commitb010cec86b9a4a0b63162cd27e37c2d99e90ed66
tree107d19633a0368fc7ce1f10d48a4ec2ec4d7ad4b
parentae893e5e818878caf433d716d37be9df297403fe
spice-qemu-char: Remove intermediate buffer

virtio-serial's buffer is valid when it calls us, and we don't
access it otherwise: vmc_read is only called in response to wakeup,
or else we set datalen=0 and throttle. Then vmc_read is called back,
we return 0 (not accessing the buffer) and set the timer to unthrottle.

Also make datalen int and not ssize_t (to fit spice_chr_write signature).

HdG: Update to apply to spice-qemu-char with new gio-channel based
flowcontrol support.

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
spice-qemu-char.c
This page took 0.025515 seconds and 4 git commands to generate.