[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/6] vnc: Add a virtio-console-bus device to sen
From: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH 6/6] vnc: Add a virtio-console-bus device to send / receive guest clipboard |
Date: |
Wed, 30 Sep 2009 10:20:02 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On (Tue) Sep 29 2009 [20:13:56], Gerd Hoffmann wrote:
>> static void client_cut_text(VncState *vs, size_t len, uint8_t *text)
>> {
>> + virtio_console_write(&virtcon_vnc->port, text, len);
>
> Needs "if (virtcon_vnc)" ?
Yes.
>> + if (virtcon_vnc) {
>> + virtio_console_open(&virtcon_vnc->port);
>> + }
>
> Like it is done here?
>
> There is no virtio_console_close() in this patch. Does this work
> correctly after multiple connects + disconnects (with multiple vnc
> clients connected at the same time)?
Yes, I actually don't propose this for inclusion. It's just a way to
show how the api works. I've only done some very basic testing with this
vnc patch (and found some bug in the vnc code that I reported about a
while back).
> I think when moving the buffering and host_connected state tracking into
> the port driver (patch 4/6) which is the only user of the facility you
> don't need these open/close calls at all.
True for vnc, but may not be for the future users.
Amit
- [Qemu-devel] virtio-console-bus, multiport, virtio-console-port, Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 1/6] char: Emit 'OPENED' events on char device open, Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 2/6] qdev: add string property., Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 4/6] virtio-console-port: Add a new device on the virtio-console-bus for generic host-guest communication, Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 5/6] vnc: add a is_vnc_active() helper, Amit Shah, 2009/09/29
- [Qemu-devel] [PATCH 6/6] vnc: Add a virtio-console-bus device to send / receive guest clipboard, Amit Shah, 2009/09/29
- Re: [Qemu-devel] [PATCH 6/6] vnc: Add a virtio-console-bus device to send / receive guest clipboard, Gerd Hoffmann, 2009/09/29
- Re: [Qemu-devel] [PATCH 6/6] vnc: Add a virtio-console-bus device to send / receive guest clipboard,
Amit Shah <=
- Re: [Qemu-devel] [PATCH 4/6] virtio-console-port: Add a new device on the virtio-console-bus for generic host-guest communication, Gerd Hoffmann, 2009/09/29
- Re: [Qemu-devel] [PATCH 4/6] virtio-console-port: Add a new device on the virtio-console-bus for generic host-guest communication, Nathan Baum, 2009/09/30
- Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Gerd Hoffmann, 2009/09/29
- Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Amit Shah, 2009/09/30
- Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Gerd Hoffmann, 2009/09/30
- Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Amit Shah, 2009/09/30
- Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports, Gerd Hoffmann, 2009/09/30
Re: [Qemu-devel] [PATCH 1/6] char: Emit 'OPENED' events on char device open, Anthony Liguori, 2009/09/30
Re: [Qemu-devel] virtio-console-bus, multiport, virtio-console-port, Amit Shah, 2009/09/29