Re: [Spice-devel] spice-xpi now calls JS OnDisconnected

2011-08-26 Thread Hans de Goede
Hi, On 08/25/2011 11:51 AM, Peter Hatina wrote: Hello guys, I did some changes in spice-xpi. Now the plugin is capable to call JavaScript function "OnDisconnected(ErrCode)" which makes our User Portal more natural in behavior. When spicec quit, the User Portal gets notified by calling OnDisconn

Re: [Spice-devel] palette id: not found.

2011-08-26 Thread Songwen Liao
Hi,Marian, I fixed that bug in a irregular way.But it works right now.I know that way is not correctly,but can make the client work without no palette id exception. Just in the client/cache.hpp: T* get(uint64_t id) { retry: Item* item = _hash[key(id)]; while (ite

Re: [Spice-devel] changing the timing of spice client linking in migration (RHBZ #725009)

2011-08-26 Thread Gerd Hoffmann
Hi, One pretty fundamental issue here is that qemu doesn't accept any new connections while the migration is running. IIRC this applies only to the final stage where all device state is migrated. Wrong. Now I remember what the problem was: The qemu running on the target doesn't do anythin

Re: [Spice-devel] changing the timing of spice client linking in migration (RHBZ #725009)

2011-08-26 Thread Alon Levy
On Thu, Aug 25, 2011 at 02:20:13PM +0300, Yonit Halperin wrote: > On 08/25/2011 02:15 PM, Daniel P. Berrange wrote: > >On Thu, Aug 25, 2011 at 02:13:01PM +0300, Yonit Halperin wrote: > >>On 08/25/2011 01:53 PM, Gerd Hoffmann wrote: > >>>I've played with a approach simliar to (2) long ago. Actually

[Spice-devel] [PATCH spice-gtk 6/6] Add auto_usbredir property to spice-widget

2011-08-26 Thread Hans de Goede
--- gtk/spice-widget-priv.h |1 + gtk/spice-widget.c | 36 gtk/spicy.c |8 +++- 3 files changed, 44 insertions(+), 1 deletions(-) diff --git a/gtk/spice-widget-priv.h b/gtk/spice-widget-priv.h index a567f1b..bd6dedb 100644 --- a/

[Spice-devel] [PATCH spice-gtk 5/6] Add an USB device manager

2011-08-26 Thread Hans de Goede
Signed-off-by: Hans de Goede --- gtk/Makefile.am |3 + gtk/map-file |8 + gtk/spice-client-gtk.defs | 79 gtk/spice-client.h|1 + gtk/spice-widget.c| 21 ++ gtk/usb-device-manager.c | 459 +++

[Spice-devel] [PATCH spice-gtk 4/6] Add an usbredir channel

2011-08-26 Thread Hans de Goede
Signed-off-by: Hans de Goede --- configure.ac|1 + gtk/Makefile.am |6 + gtk/channel-usbredir-priv.h | 43 ++ gtk/channel-usbredir.c | 353 +++ gtk/channel-usbredir.h | 60 gtk/map-file

[Spice-devel] [PATCH spice-gtk 3/6] Add a private copy of gusb

2011-08-26 Thread Hans de Goede
While working on usb redirection support for spice-gtk I needed some code to integrate libusb into glib's mainloop amongst other things. I ended up borrowing code from colord for this. Richard (the colord author) and I quickly agreed that doing generic glib bindings for libusb is a good idea, akin

[Spice-devel] [PATCH spice-gtk 2/6] spice.proto: Add usbredir channel

2011-08-26 Thread Hans de Goede
Signed-off-by: Hans de Goede --- spice.proto |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/spice.proto b/spice.proto index 4c072ed..748ae95 100644 --- a/spice.proto +++ b/spice.proto @@ -1173,6 +1173,13 @@ channel SmartcardChannel : BaseChannel { } @ctype(VS

[Spice-devel] [PATCH spice-gtk 1/6] spice-channel: Reset SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION on disconnect

2011-08-26 Thread Hans de Goede
Our disconnect handler clears the common_caps array so that a new connection starts with a clean slate. But in our constructor we set the SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION in common_caps as starting cap. Do the same on disconnect, so the behavior of a re-using a channel after disconnect is t

Re: [Spice-devel] [PATCH spice-protocol] Change usbredir messages to spicevmc messages

2011-08-26 Thread Hans de Goede
Hi, On 08/26/2011 10:07 AM, Alon Levy wrote: On Thu, Aug 25, 2011 at 01:57:21PM +0200, Hans de Goede wrote: Hi, On 08/25/2011 01:35 PM, Gerd Hoffmann wrote: Hi, Some examples of why having a generic spicevmc pass through is good: (5) Redirect the serial or virtio console over spice. Espec

Re: [Spice-devel] [PATCH spice-protocol] Change usbredir messages to spicevmc messages

2011-08-26 Thread Alon Levy
On Thu, Aug 25, 2011 at 01:57:21PM +0200, Hans de Goede wrote: > Hi, > > On 08/25/2011 01:35 PM, Gerd Hoffmann wrote: > >Hi, > > > >>Some examples of why having a generic spicevmc pass through is good: > > > >(5) Redirect the serial or virtio console over spice. Especially with > >spice-gtk it sho