[Spice-devel] [RFC PATCH spice 0.8 16/19] client: main channel migration: do partial cleanup when switching hosts

2011-09-19 Thread Yonit Halperin
Implement on_disconnect_mig_src and on_connect_mig_target in order to avoid unnecessary cleanups done in on_(disconnet|connect). In addition, do not request guest display settings changes after migration. Signed-off-by: Yonit Halperin --- client/red_client.cpp | 37

[Spice-devel] [RFC PATCH spice 0.8 17/19] client: playback/record channels: implement on_disconnect

2011-09-19 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/audio_channels.h | 12 ++-- client/playback_channel.cpp | 22 -- client/record_channel.cpp | 39 --- 3 files changed, 54 insertions(+), 19 deletions(-) diff --git a/client

[Spice-devel] [RFC PATCH spice 0.8 18/19] client: display channel migration

2011-09-19 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 158 client/display_channel.h | 12 +++- client/red_gl_canvas.cpp |1 + 3 files changed, 155 insertions(+), 16 deletions(-) diff --git a/client/display_channel.cpp b/client

[Spice-devel] [RFC PATCH spice 0.8 19/19] client: display channel - destroy all surfaces on disconnect

2011-09-19 Thread Yonit Halperin
Fix not destroying surfaces and other data (e.g., streams) upon disconnection. Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 18 -- client/display_channel.h |1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/client/display_channel.cpp

[Spice-devel] [RFC PATCH qemu 1/2] spice: turn client_migrate_info to async

2011-09-19 Thread Yonit Halperin
cb will be called after spice client has been connected to the target (or a timeout). See following patches and spice patches. Signed-off-by: Yonit Halperin --- hmp-commands.hx |3 ++- monitor.c |6 -- qmp-commands.hx |3 ++- ui/qemu-spice.h | 13 +++-- ui/spice

[Spice-devel] [RFC PATCH qemu 2/2] spice: add migration interface

2011-09-19 Thread Yonit Halperin
- call spice_server_migrate_(start|end). - register client_migrate_info completion callback Signed-off-by: Yonit Halperin --- ui/spice-core.c | 54 +- 1 files changed, 53 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c b/ui/spice

[Spice-devel] [RFC PATCH spice-protocol 0.8] Release 0.8.2

2011-09-19 Thread Yonit Halperin
semi-seamless migration RHBZ 738262 Signed-off-by: Yonit Halperin --- NEWS |4 configure.ac |2 +- spice/enums.h|2 ++ spice/protocol.h |6 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f238abc..bb11ed2 100644

Re: [Spice-devel] [RFC PATCH spice 0.8 00/19] semi-seamless migration (RHBZ #738266, 725009)

2011-09-19 Thread Yonit Halperin
ess noticable to the user. On 09/19/2011 12:46 PM, Yonit Halperin wrote: Here is a summary of the new migration scheme (copied from the commit msg of the first patch) migration source side - (1) spice_server_migrate_info (*): tell client to link to

Re: [Spice-devel] [RFC PATCH spice 0.8 03/19] server: support async client_migrate_info monitor command

2011-09-19 Thread Yonit Halperin
On 09/19/2011 03:18 PM, Gerd Hoffmann wrote: On 09/19/11 11:46, Yonit Halperin wrote: Signed-off-by: Yonit Halperin What happens on connect timeouts? immediately upon client_migrate_info I start a timer of 10 secs. If it timeouts before the connection is completed I call the async command

Re: [Spice-devel] [RFC PATCH spice 0.8 01/19] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-09-19 Thread Yonit Halperin
On 09/19/2011 03:15 PM, Gerd Hoffmann wrote: On 09/19/11 11:46, Yonit Halperin wrote: semi-seamless migration details: migration source side - (1) spice_server_migrate_info (*): tell client to link to the target side - send SPICE_MSG_MAIN_MIGRATE_BEGIN. client_migrate_info

Re: [Spice-devel] [PATCH] replace warning with comment in glz_usr_free_image

2011-09-19 Thread Yonit Halperin
On 09/19/2011 05:26 PM, Christophe Fergeau wrote: When running some xinerama tests, I got several glz_usr_free_image: error messages. Looking at the code, this error is reported when this function is called from a different DisplayChannelClient than the one which created the glz compressed image.

Re: [Spice-devel] [RFC PATCH spice 0.8 01/19] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-09-19 Thread Yonit Halperin
On 09/19/2011 04:24 PM, Alon Levy wrote: On Mon, Sep 19, 2011 at 04:06:25PM +0300, Yonit Halperin wrote: On 09/19/2011 03:15 PM, Gerd Hoffmann wrote: On 09/19/11 11:46, Yonit Halperin wrote: semi-seamless migration details: migration source side - (1

Re: [Spice-devel] [RFC PATCH spice 0.8 01/19] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-09-19 Thread Yonit Halperin
On 09/19/2011 07:13 PM, Gerd Hoffmann wrote: Hi, We need to handle another case: New client. New source server. Old target server. Indeed. 2. When client connects to the server it sees that the server doesn't have the SEMI_SEAMLESS_CAP present. So it disconnects, and sends to the source a

Re: [Spice-devel] [RFC PATCH spice 0.8 14/19] client: handle SpiceMsgMainMigrationBegin for 0.8.2

2011-09-20 Thread Yonit Halperin
On 09/20/2011 03:44 PM, Alon Levy wrote: On Mon, Sep 19, 2011 at 12:47:07PM +0300, Yonit Halperin wrote: RHBZ 725009, 738270 Signed-off-by: Yonit Halperin --- client/red_client.cpp | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/client

Re: [Spice-devel] [RFC PATCH spice 0.8 18/19] client: display channel migration

2011-09-20 Thread Yonit Halperin
On 09/20/2011 07:12 PM, Alon Levy wrote: On Mon, Sep 19, 2011 at 12:47:11PM +0300, Yonit Halperin wrote: Some nitpicks. One question on the added touch_context at the end. Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 158

Re: [Spice-devel] [RFC PATCH spice 0.8 05/19] server, proto: tell the client to connect to the migration target before migraton starts

2011-09-20 Thread Yonit Halperin
On 09/19/2011 03:21 PM, Gerd Hoffmann wrote: Hi, diff --git a/spice.proto b/spice.proto index 6160de1..d5b954e 100644 --- a/spice.proto +++ b/spice.proto @@ -167,9 +167,8 @@ channel MainChannel : BaseChannel { uint16 sport; uint32 host_size; uint8 *host_data[host_size] @zero_terminated @marshal

[Spice-devel] [PATCH 0/2] spice migration interface (RHBZ 737921)

2011-09-21 Thread Yonit Halperin
we implement a real seamless spice migration Spice server patches will be emailed next. They are for the 0.8 spice branch, but will be ported to upstream soon. Yonit Halperin (2): spice: turn client_migrate_info to async spice: support the new migration interface (spice 0.8.3) hmp-commands

[Spice-devel] [PATCH 1/2] spice: turn client_migrate_info to async

2011-09-21 Thread Yonit Halperin
cb will be called after spice client has been connected to the target (or a timeout). See following patches and spice patches. Signed-off-by: Yonit Halperin --- hmp-commands.hx |3 ++- monitor.c |6 -- qmp-commands.hx |3 ++- ui/qemu-spice.h | 13 +++-- ui/spice

[Spice-devel] [PATCH 2/2] spice: support the new migration interface (spice 0.8.3)

2011-09-21 Thread Yonit Halperin
- call spice_server_migrate_(start|end|connect). - register spice_migrate_connect completion callback Signed-off-by: Yonit Halperin --- ui/spice-core.c | 56 ++- 1 files changed, 55 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c

[Spice-devel] [PATCH spice-server 00/13] semi-seamless migration v2 (RHBZ #738266, 725009)

2011-09-21 Thread Yonit Halperin
not accept new spice client connections. Thus, we trigger the connection to the target upon client_migrate_info command. Yonit Halperin (13): server/spice.h: semi-seamless migration interface, RHBZ #738266 server: handle migration interface addition configure: spice-protocol >=

[Spice-devel] [PATCH spice-server 01/13] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-09-21 Thread Yonit Halperin
_migrate_info command. Signed-off-by: Yonit Halperin --- server/reds.c |9 + server/spice-experimental.h |3 --- server/spice.h | 27 ++- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/server/reds.c b/server

[Spice-devel] [PATCH spice-server 02/13] server: handle migration interface addition

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 29 + server/reds.h |4 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/server/reds.c b/server/reds.c index 9a983f8..99d52f9 100644 --- a/server/reds.c +++ b/server/reds.c @@ -73,6 +73,7

[Spice-devel] [PATCH spice-server 03/13] configure: spice-protocol >= 0.8.2 (semi-seamless migration protocol)

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 3a86515..e169f36 100644 --- a/configure.ac +++ b/configure.ac @@ -126,7 +126,7 @@ fi dnl

[Spice-devel] [PATCH spice-server 04/13] server, proto: tell the client to connect to the migration target before migraton starts

2011-09-21 Thread Yonit Halperin
(1) send SPICE_MSG_MAIN_MIGRATE_BEGIN upon spice_server_migrate_connect (2) wait for SPICE_MSGC_MAIN_MIGRATE_(CONNECTED|CONNECT_ERROR), or a timeout, in order to complete client_migrate_info monitor command Signed-off-by: Yonit Halperin --- common/messages.h |2 + server/reds.c

[Spice-devel] [PATCH spice-server 05/13] spice.proto: add SPICE_MSG_MAIN_MIGRATE_END & SPICE_MSGC_MAIN_MIGRATE_END

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- spice.proto |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/spice.proto b/spice.proto index d5b954e..235ec95 100644 --- a/spice.proto +++ b/spice.proto @@ -219,6 +219,8 @@ channel MainChannel : BaseChannel { uint8

[Spice-devel] [PATCH spice-server 06/13] server: send SPICE_MSG_MAIN_MIGRATE_END on spice_server_migrate_end

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 86 + 1 files changed, 68 insertions(+), 18 deletions(-) diff --git a/server/reds.c b/server/reds.c index 845b0ee..e088b08 100644 --- a/server/reds.c +++ b/server/reds.c @@ -275,6 +275,7

[Spice-devel] [PATCH spice-server 07/13] server: move SPICE_MSG_MAIN_INIT sending code to a separate routine

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 56 +--- 1 files changed, 33 insertions(+), 23 deletions(-) diff --git a/server/reds.c b/server/reds.c index e088b08..bea0eb0 100644 --- a/server/reds.c +++ b/server/reds.c @@ -2078,6

[Spice-devel] [PATCH spice-server 08/13] server: move the linking of channels to a separate routine

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 68 +++- 1 files changed, 42 insertions(+), 26 deletions(-) diff --git a/server/reds.c b/server/reds.c index bea0eb0..e7388a0 100644 --- a/server/reds.c +++ b/server/reds.c @@ -2612,12

[Spice-devel] [PATCH spice-server 09/13] server: handling semi-seamless migration in the target side

2011-09-21 Thread Yonit Halperin
(1) not sending anything to the client till we recieve SPICE_MSGC_MIGRATE_END (2) start a new migration (handle client_migrate_info) only after SPICE_MSGC_MIGRATE_END from the previous migration has been received (3) use the correct ticket Signed-off-by: Yonit Halperin --- server/reds.c

[Spice-devel] [PATCH spice-server 10/13] server: call migrate_connect_complete callback when no client is connected

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 72 ++--- 1 files changed, 43 insertions(+), 29 deletions(-) diff --git a/server/reds.c b/server/reds.c index ca4e1d1..6d2269c 100644 --- a/server/reds.c +++ b/server/reds.c @@ -761,6 +761,7

[Spice-devel] [PATCH spice-server 11/13] server: turn spice_server_migrate_start into a valid call

2011-09-21 Thread Yonit Halperin
We will add a qemu call to spice_server_migrate_start when migration starts. For now, it does nothing, but we may need this notification in the future. Signed-off-by: Yonit Halperin --- server/reds.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/server/reds.c b

[Spice-devel] [PATCH spice-server 12/13] server: fall back to switch host scheme in case semi-seamless connection to target fails

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 18 +- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/server/reds.c b/server/reds.c index 76aa0ed..54c06d1 100644 --- a/server/reds.c +++ b/server/reds.c @@ -283,6 +283,7 @@ typedef struct RedsState { int

[Spice-devel] [PATCH spice-server 13/13] Release 0.8.3

2011-09-21 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- NEWS |7 +++ configure.ac |2 +- server/spice-server.syms |4 server/spice.h |2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index ee6ceec..18168cb 100644

[Spice-devel] [PATCH spice-protocol] Release 0.8.2

2011-09-21 Thread Yonit Halperin
semi-seamless migration RHBZ 738262 Signed-off-by: Yonit Halperin --- NEWS |4 configure.ac |2 +- spice/enums.h|2 ++ spice/protocol.h |6 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f238abc..bb11ed2 100644

Re: [Spice-devel] [PATCH spice-server 08/13] server: move the linking of channels to a separate routine

2011-09-25 Thread Yonit Halperin
On 09/22/2011 05:01 PM, Alon Levy wrote: On Wed, Sep 21, 2011 at 06:51:18PM +0300, Yonit Halperin wrote: Signed-off-by: Yonit Halperin --- server/reds.c | 68 +++- 1 files changed, 42 insertions(+), 26 deletions(-) diff --git a/server

[Spice-devel] [PATCH v3 00/22] semi-seamless migration client & server v3

2011-09-25 Thread Yonit Halperin
ct_mig_src/on_channel_disconnect_mig_src_completed * client: rearrange RedClient::handle_init * server, client: fix whitespace, typos, etc. * client: support migration between spice servers with different protocols. Not needed right now, but maybe in the future it will be. Cheers, Yonit. Yonit Halperin (22): serv

[Spice-devel] [PATCH v3 01/22] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-09-25 Thread Yonit Halperin
_migrate_info command. Signed-off-by: Yonit Halperin --- server/reds.c |9 + server/spice-experimental.h |3 --- server/spice.h | 27 ++- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/server/reds.c b/server

[Spice-devel] [PATCH v3 02/22] server: handle migration interface addition

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 29 + server/reds.h |4 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/server/reds.c b/server/reds.c index 9a983f8..99d52f9 100644 --- a/server/reds.c +++ b/server/reds.c @@ -73,6 +73,7

[Spice-devel] [PATCH v3 03/22] configure: spice-protocol >= 0.8.2 (semi-seamless migration protocol)

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 3a86515..e169f36 100644 --- a/configure.ac +++ b/configure.ac @@ -126,7 +126,7 @@ fi dnl

[Spice-devel] [PATCH v3 04/22] server, proto: tell the client to connect to the migration target before migraton starts

2011-09-25 Thread Yonit Halperin
(1) send SPICE_MSG_MAIN_MIGRATE_BEGIN upon spice_server_migrate_connect (2) wait for SPICE_MSGC_MAIN_MIGRATE_(CONNECTED|CONNECT_ERROR), or a timeout, in order to complete client_migrate_info monitor command Signed-off-by: Yonit Halperin --- common/messages.h |2 + server/reds.c

[Spice-devel] [PATCH v3 05/22] spice.proto: add SPICE_MSG_MAIN_MIGRATE_END & SPICE_MSGC_MAIN_MIGRATE_END

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- spice.proto |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/spice.proto b/spice.proto index d5b954e..235ec95 100644 --- a/spice.proto +++ b/spice.proto @@ -219,6 +219,8 @@ channel MainChannel : BaseChannel { uint8

[Spice-devel] [PATCH v3 06/22] server: send SPICE_MSG_MAIN_MIGRATE_END on spice_server_migrate_end

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 85 + 1 files changed, 67 insertions(+), 18 deletions(-) diff --git a/server/reds.c b/server/reds.c index 845b0ee..4ffdfb2 100644 --- a/server/reds.c +++ b/server/reds.c @@ -275,6 +275,7

[Spice-devel] [PATCH v3 07/22] server: move SPICE_MSG_MAIN_INIT sending code to a separate routine

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 56 +--- 1 files changed, 33 insertions(+), 23 deletions(-) diff --git a/server/reds.c b/server/reds.c index 4ffdfb2..8ed84a8 100644 --- a/server/reds.c +++ b/server/reds.c @@ -2078,6

[Spice-devel] [PATCH v3 08/22] server: move the linking of channels to a separate routine

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 67 ++-- 1 files changed, 41 insertions(+), 26 deletions(-) diff --git a/server/reds.c b/server/reds.c index 8ed84a8..6e7b891 100644 --- a/server/reds.c +++ b/server/reds.c @@ -2612,12

[Spice-devel] [PATCH v3 09/22] server: handling semi-seamless migration in the target side

2011-09-25 Thread Yonit Halperin
and ater migration. i.e., SPICE_MSGC_MAIN_ATTACH_CHANNELS is not sent from the client. Signed-off-by: Yonit Halperin --- server/reds.c | 136 1 files changed, 116 insertions(+), 20 deletions(-) diff --git a/server/reds.c b/server/reds.c

[Spice-devel] [PATCH v3 10/22] server: call migrate_connect_complete callback when no client is connected

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 72 ++--- 1 files changed, 43 insertions(+), 29 deletions(-) diff --git a/server/reds.c b/server/reds.c index 0f67a95..e61751d 100644 --- a/server/reds.c +++ b/server/reds.c @@ -761,6 +761,7

[Spice-devel] [PATCH v3 11/22] server: turn spice_server_migrate_start into a valid call

2011-09-25 Thread Yonit Halperin
We will add a qemu call to spice_server_migrate_start when migration starts. For now, it does nothing, but we may need this notification in the future. Signed-off-by: Yonit Halperin --- server/reds.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/server/reds.c b

[Spice-devel] [PATCH v3 12/22] server: fall back to switch host scheme in case semi-seamless connection to target fails

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 26 +- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/server/reds.c b/server/reds.c index 8ee002f..10d2ffc 100644 --- a/server/reds.c +++ b/server/reds.c @@ -283,6 +283,7 @@ typedef struct RedsState

[Spice-devel] [PATCH v3 13/22] client: rewrite surfaces cache

2011-09-25 Thread Yonit Halperin
use std::map instead of a specific template (CHash). There is no need for special template. Moreover, using std::map will allow easy iteration over the surfaces. Signed-off-by: Yonit Halperin --- client/canvas.cpp | 25 +++- client/canvas.h| 152

[Spice-devel] [PATCH v3 14/22] client: RedPeer::HostAuthOptions::set_cert_subject

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/application.cpp | 57 ++-- client/red_peer.cpp| 51 ++ client/red_peer.h |2 +- 3 files changed, 59 insertions(+), 51 deletions(-) diff --git a/client

[Spice-devel] [PATCH v3 15/22] client: handle SpiceMsgMainMigrationBegin for 0.8.2

2011-09-25 Thread Yonit Halperin
RHBZ 725009, 738270 Signed-off-by: Yonit Halperin --- client/red_client.cpp | 21 ++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/client/red_client.cpp b/client/red_client.cpp index d7a3e6a..f09e3c9 100644 --- a/client/red_client.cpp +++ b/client

[Spice-devel] [PATCH v3 16/22] client: handle SPICE_MSG_MAIN_MIGRATE_END

2011-09-25 Thread Yonit Halperin
(1) disconnect all channels from the migration src (2) after all channels are disconnected, clean global resources (3) send SPICE_MSGC_MAIN_MIGRATE_END to migration target (4) wait for SPICE_MSG_MAIN_INIT (4) switch all channels to migration target Signed-off-by: Yonit Halperin --- client

[Spice-devel] [PATCH v3 17/22] client: main channel migration: do partial cleanup when switching hosts

2011-09-25 Thread Yonit Halperin
Implement on_disconnect_mig_src and on_connect_mig_target in order to avoid unnecessary cleanups done in on_(disconnet|connect). In addition, do not request guest display settings changes after migration. Signed-off-by: Yonit Halperin --- client/red_client.cpp |9 + client

[Spice-devel] [PATCH v3 18/22] client: playback/record channels: implement on_disconnect

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/audio_channels.h | 12 ++-- client/playback_channel.cpp | 22 -- client/record_channel.cpp | 39 --- 3 files changed, 54 insertions(+), 19 deletions(-) diff --git a/client

[Spice-devel] [PATCH v3 19/22] client: display channel migration

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 157 client/display_channel.h | 10 +++- 2 files changed, 153 insertions(+), 14 deletions(-) diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 6127a96

[Spice-devel] [PATCH v3 20/22] client: display channel - destroy all surfaces on disconnect

2011-09-25 Thread Yonit Halperin
Fix not destroying surfaces and other data (e.g., streams) upon disconnection. Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 18 -- client/display_channel.h |1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/client/display_channel.cpp

[Spice-devel] [PATCH v3 21/22] client: support semi-seamless migration between spice servers with different protocols.

2011-09-25 Thread Yonit Halperin
It can't actually happen right now, since switch-host migration scheme will take place if the src/target server has protocol 1. Signed-off-by: Yonit Halperin --- client/red_channel.cpp | 20 client/red_channel.h |2 ++ client/red_client.cpp |

[Spice-devel] [PATCH v3 22/22] Release 0.8.3

2011-09-25 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- NEWS |8 configure.ac |2 +- server/spice-server.syms |4 server/spice.h |2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index ee6ceec..e9ed92e 100644

[Spice-devel] [PATCH] fix for semi-seamless migration

2011-09-26 Thread Yonit Halperin
Hi, last fix before pushing to 0.8 branch the semi-seamless migration series. I wanted to avoid sending v5 for all the series. Yonit. Yonit Halperin (1): server: fix not calling migrate_connect completion callback server/reds.c | 18 -- 1 files changed, 8 insertions(+), 10

[Spice-devel] [PATCH] server: fix not calling migrate_connect completion callback

2011-09-26 Thread Yonit Halperin
should call the migrate_connect completion callback. Since reds->mig_inprogress wasn't set appropriately, it wasn't called. Signed-off-by: Yonit Halperin --- server/reds.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/server/reds.c b/server

Re: [Spice-devel] [PATCH v3 04/22] server, proto: tell the client to connect to the migration target before migraton starts

2011-09-27 Thread Yonit Halperin
On 09/28/2011 01:15 AM, Uri Lublin wrote: On 09/25/2011 03:36 PM, Yonit Halperin wrote: (1) send SPICE_MSG_MAIN_MIGRATE_BEGIN upon spice_server_migrate_connect (2) wait for SPICE_MSGC_MAIN_MIGRATE_(CONNECTED|CONNECT_ERROR), or a timeout, in order to complete client_migrate_info monitor command

Re: [Spice-devel] viewing continuous guest virtual memory as continuous in qemu

2011-10-03 Thread Yonit Halperin
On 10/02/2011 03:24 PM, Alon Levy wrote: Hi, I'm trying to acheive the $subject. Some background: currently spice relies on a preallocated pci bar for both surfaces and for VGA framebuffer + commands. I have been trying to get rid of the surfaces bar. To do that I allocate memory in the gue

Re: [Spice-devel] Question on fill_mask() (server/red_worker.c)

2011-10-04 Thread Yonit Halperin
On 10/04/2011 01:20 PM, Alon Levy wrote: On Tue, Oct 04, 2011 at 01:00:47PM +0200, Alon Levy wrote: On Tue, Oct 04, 2011 at 12:40:21PM +0200, Yaniv Kaul wrote: Unless I'm misreading the code (which may very well be), the function looks like: if (mask_bitmap&& m) { if (this or that) {

Re: [Spice-devel] [PATCH v3 01/22] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-10-11 Thread Yonit Halperin
On 10/11/2011 12:55 PM, Gerd Hoffmann wrote: +/* spice (semi-)seamless client migration */ +int spice_server_migrate_connect(SpiceServer *s, const char* dest, + int port, int secure_port, + const char* cert_subject); This must be added to server/spice-server.syms cheers, Gerd Welcome back :)

[Spice-devel] [PATCH migration 00/19] semi-seamless migration for master

2011-10-12 Thread Yonit Halperin
rrive after spice_server_migrate_connect and before spice_server_migrate_end, will receive SWITCH_HOST when migration completes. If it will be necessary, I will change the 0.8 branch as well. Yonit Yonit Halperin (19): server: set & test channel capabilities in red_channel server/spic

[Spice-devel] [PATCH migration 01/19] server: set & test channel capabilities in red_channel

2011-10-12 Thread Yonit Halperin
The code for setting and testing channel capabilities was unnecessarily duplicated. Now it is in red_channel. Signed-off-by: Yonit Halperin --- server/inputs_channel.c|4 +- server/main_channel.c | 27 server/main_channel.h | 20 -- server/red_channel.c

[Spice-devel] [PATCH migration 02/19] server/spice.h: semi-seamless migration interface, RHBZ #738266

2011-10-12 Thread Yonit Halperin
_migrate_info command. (cherry picked from commit 6e56bea67c5648b0c81990171d4bc0cf1a402043 branch 0.8) Conflicts: server/spice.h Signed-off-by: Yonit Halperin --- server/reds.c |9 + server/spice-experimental.h |3 --- server/spice.h

[Spice-devel] [PATCH migration 03/19] server: handle migration interface addition (cherry picked from commit 3ac0075cdac8fa42de47a7882022795e96cb1fee branch 0.8)

2011-10-12 Thread Yonit Halperin
Conflicts: server/reds.h Signed-off-by: Yonit Halperin --- server/reds.c | 29 + server/reds.h |4 2 files changed, 33 insertions(+), 0 deletions(-) diff --git a/server/reds.c b/server/reds.c index 79c2796..40b54bb 100644 --- a/server/reds.c

[Spice-devel] [PATCH migration 04/19] configure: spice-protocol >= 0.9.1 (semi-seamless migration protocol) (cherry picked from commit 55ccc022ec9829523ebe36fdf0ec7c593ce76c22 branch 0.8)

2011-10-12 Thread Yonit Halperin
Conflicts: configure.ac Signed-off-by: Yonit Halperin --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 2afc559..203e82f 100644 --- a/configure.ac +++ b/configure.ac @@ -132,7 +132,7 @@ AM_CONDITIONAL

[Spice-devel] [PATCH migration 05/19] server, proto: tell the clients to connect to the migration target before migraton starts

2011-10-12 Thread Yonit Halperin
from commit 5560c56ef05c74da5e0e0825dc1f134019593cad branch 0.8; Was modified to support the separation of main channel from reds, and multiple clients) Conflicts: server/reds.c Signed-off-by: Yonit Halperin --- common/messages.h |2 + server/main_channel.c | 164

[Spice-devel] [PATCH migration 06/19] spice.proto: add SPICE_MSG_MAIN_MIGRATE_END & SPICE_MSGC_MAIN_MIGRATE_END (cherry picked from commit cfbd07710562e522179ae5a7085a789489a821bb branch 0.8)

2011-10-12 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- spice.proto |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/spice.proto b/spice.proto index 78c1fad..266e03a 100644 --- a/spice.proto +++ b/spice.proto @@ -219,6 +219,8 @@ channel MainChannel : BaseChannel { uint8

[Spice-devel] [PATCH migration 07/19] server: handle spice_server_migrate_end

2011-10-12 Thread Yonit Halperin
commit 4b82580fc36228af13db4ac3c403753d6b5c40b5 branch 0.8; Was modified to support multiple clients, and the separation of main_channel from reds) Conflicts: server/reds.c Signed-off-by: Yonit Halperin --- server/main_channel.c | 111

[Spice-devel] [PATCH migration 08/19] server: move the linking of channels to a separate routine

2011-10-12 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- server/reds.c | 45 - 1 files changed, 28 insertions(+), 17 deletions(-) diff --git a/server/reds.c b/server/reds.c index 20032a9..2deed4c 100644 --- a/server/reds.c +++ b/server/reds.c @@ -1596,13 +1596,36

[Spice-devel] [PATCH migration 09/19] server: handling semi-seamless migration in the target side

2011-10-12 Thread Yonit Halperin
channles are linked before and ater migration. i.e., SPICE_MSGC_MAIN_ATTACH_CHANNELS is not sent from the clients. Signed-off-by: Yonit Halperin --- server/main_channel.c | 53 +++- server/main_channel.h |2 +- server/red_channel.c | 15 +++- server/red_channel.h |6

[Spice-devel] [PATCH migration 10/19] server: turn spice_server_migrate_start into a valid call

2011-10-12 Thread Yonit Halperin
We will add a qemu call to spice_server_migrate_start when migration starts. For now, it does nothing, but we may need this notification in the future. (cherry picked from commit b8213167717979e6f2fb52646e43eb458634e6a1 branch 0.8) Signed-off-by: Yonit Halperin --- server/reds.c |8

[Spice-devel] [PATCH migration 11/19] client: rewrite surfaces cache

2011-10-12 Thread Yonit Halperin
-off-by: Yonit Halperin --- client/canvas.cpp | 25 +++- client/canvas.h| 152 client/display_channel.cpp | 149 +++ client/display_channel.h | 18 +- client/red_gdi_canvas.cpp

[Spice-devel] [PATCH migration 12/19] client: handle SpiceMsgMainMigrationBegin (semi-seamless migration)

2011-10-12 Thread Yonit Halperin
RHBZ 725009, 738270 (cherry picked from commit 31ed2519a752b7332ed40d0d7ab02e938c0e65cb branch 0.8) Conflicts: client/red_client.cpp Signed-off-by: Yonit Halperin --- client/red_client.cpp | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a

[Spice-devel] [PATCH migration 13/19] client: handle SPICE_MSG_MAIN_MIGRATE_END

2011-10-12 Thread Yonit Halperin
510a4ff7c4f188fe6d0fb12198b8f9fdb74b9a2d branch 0.8) Conflicts: client/red_channel.h Signed-off-by: Yonit Halperin --- client/red_channel.cpp | 60 +++ client/red_channel.h | 19 client/red_client.cpp | 107 +++- client

[Spice-devel] [PATCH migration 14/19] client: main channel migration: do partial cleanup when switching hosts

2011-10-12 Thread Yonit Halperin
-by: Yonit Halperin --- client/red_client.cpp |9 + client/red_client.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/client/red_client.cpp b/client/red_client.cpp index 84440c1..4fc442f 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp

[Spice-devel] [PATCH migration 15/19] client: playback/record channels: implement on_disconnect (cherry picked from commit d3ed9d5e9d52ddcadcb3c8c77dd827b50071d813 branch 0.8)

2011-10-12 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- client/audio_channels.h | 12 ++-- client/playback_channel.cpp | 22 -- client/record_channel.cpp | 39 --- 3 files changed, 54 insertions(+), 19 deletions(-) diff --git a/client

[Spice-devel] [PATCH migration 16/19] client: display channel migration (cherry picked from commit cad3c585444f940f60c12789f4174f2d32bec70f branch 0.8)

2011-10-12 Thread Yonit Halperin
Conflicts: client/display_channel.cpp Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 157 client/display_channel.h | 10 +++- 2 files changed, 153 insertions(+), 14 deletions(-) diff --git a/client/display_channel.cpp b

[Spice-devel] [PATCH migration 17/19] client: display channel - destroy all surfaces on disconnect

2011-10-12 Thread Yonit Halperin
Fix not destroying surfaces and other data (e.g., streams) upon disconnection. (cherry picked from commit 010b22cd771b7e81363b4b6521e4265b093fcd25 branch 0.8) Signed-off-by: Yonit Halperin --- client/display_channel.cpp | 18 -- client/display_channel.h |1 + 2 files

[Spice-devel] [PATCH migration 18/19] client: support semi-seamless migration between spice servers with different protocols.

2011-10-12 Thread Yonit Halperin
It can't actually happen right now, since switch-host migration scheme will take place if the src/target server has protocol 1. (cherry picked from commit 4b2bf4d88c253502003aa5e4b93a045742eec9b4 branch 0.8) Signed-off-by: Yonit Halperin --- client/red_channel.cpp |

[Spice-devel] [PATCH migration 19/19] Release 0.9.2

2011-10-12 Thread Yonit Halperin
Signed-off-by: Yonit Halperin --- NEWS |8 configure.ac |2 +- server/spice-server.syms |1 + 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index 8b56038..a862449 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11

[Spice-devel] [PATCH v2 0/2] spice migration interface v2 (RHBZ 737921)

2011-10-17 Thread Yonit Halperin
be called upon migration start/end ** spice_server_start and the migrate_end_complete callback, were added for future use, in case we implement a real seamless spice migration Yonit Halperin (2): spice: turn client_migrate_info to async spice: support the new migration interface (spice 0.

[Spice-devel] [PATCH v2 1/2] spice: turn client_migrate_info to async

2011-10-17 Thread Yonit Halperin
cb will be called after spice client has been connected to the target (or a timeout). See following patches and spice patches. Signed-off-by: Yonit Halperin --- hmp-commands.hx |3 ++- monitor.c |6 -- qmp-commands.hx |3 ++- ui/qemu-spice.h | 14 +++--- ui/spice

[Spice-devel] [PATCH v2 2/2] spice: support the new migration interface (spice 0.8.3)

2011-10-17 Thread Yonit Halperin
- call spice_server_migrate_(start|end|connect). - register spice_migrate_connect completion callback Signed-off-by: Yonit Halperin --- ui/spice-core.c | 56 ++- 1 files changed, 55 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c

Re: [Spice-devel] [RFC] server: add main_dispatcher

2011-10-18 Thread Yonit Halperin
On 09/08/2011 02:17 AM, Alon Levy wrote: Hi, I think this patch is sufficient for the 0.8 branch (+ the comments bellow + locks (for several display channels threads)). However for master, due to the red_channel refactoring I think we should have a more general dispatcher. It would be nice if (1

[Spice-devel] [PATCH] server/red_worker: fix placing of ASSERT(red_channel_client_no_item_being_sent) (fdbz #41523)

2011-10-18 Thread Yonit Halperin
Call ASSERT(red_channel_client_no_item_being_sent) only if red_wait_outgoing_item/s did not timeout. Signed-off-by: Yonit Halperin --- server/red_worker.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index 7af715d

[Spice-devel] [PATCH] qxl: fix guest cursor tracking

2011-10-18 Thread Yonit Halperin
will prevent access to pci memory that was released. RHBZ: 744518 Signed-off-by: Yonit Halperin --- hw/qxl.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 03848ed..c9b60a2 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -238,6 +238,9 @@

Re: [Spice-devel] Possible SPICE/QEMU deadlock on fast client reconnect

2011-10-23 Thread Yonit Halperin
Hi, Sounds like https://bugzilla.redhat.com/show_bug.cgi?id=746950 and https://bugs.freedesktop.org/show_bug.cgi?id=41858 Alon's patch: http://lists.freedesktop.org/archives/spice-devel/2011-September /005369.html Should solve it. Cheers, Yonit. On 10/21/2011 05:26 PM, Daniel P. Berrange wrote

Re: [Spice-devel] [PATCH v3] [0.8 branch] server: add main_dispatcher

2011-10-24 Thread Yonit Halperin
On 10/23/2011 07:10 PM, Alon Levy wrote: add main_dispatcher, a message passing mechanism for sending messages to the main thread. The main thread is the thread that implements SpiceCoreInterface, which is assumed to be a single thread. Similar to the async operation of red_worker, a socket pair

Re: [Spice-devel] [PATCH v4] [0.8 branch] server: add main_dispatcher

2011-10-24 Thread Yonit Halperin
ACK On 10/24/2011 02:25 PM, Alon Levy wrote: add main_dispatcher, a message passing mechanism for sending messages to the main thread. The main thread is the thread that implements SpiceCoreInterface, which is assumed to be a single thread. Similar to the async operation of red_worker, a socket

Re: [Spice-devel] [PATCH migration 09/19] server: handling semi-seamless migration in the target side

2011-11-02 Thread Yonit Halperin
On 11/01/2011 11:34 PM, Alon Levy wrote: On Wed, Oct 12, 2011 at 12:38:59PM +0200, Yonit Halperin wrote: (1) not sending anything to a migrated client till we recieve SPICE_MSGC_MIGRATE_END (2) start a new client migration (handle client_migrate_info) only after SPICE_MSGC_MIGRATE_END

Re: [Spice-devel] [RFC 1/3] server/red_dispatcher: support concurrent asyncs

2011-11-02 Thread Yonit Halperin
Hi, One comment bellow. Besides that, Ack. On 11/01/2011 10:10 AM, Alon Levy wrote: This is part of the dispatcher update, extracting the dispatcher routine from red_dispatcher and main_dispatcher into dispatcher. Supporting multiple async operations will make it natural to support async monit

Re: [Spice-devel] [RFC 2/3] server: introduce dispatcher

2011-11-02 Thread Yonit Halperin
On 11/01/2011 10:10 AM, Alon Levy wrote: used for main_dispatcher only in this patch. Dispatcher is meant to be used for Main<->any low frequency messages. It's interface is meant to include the red_dispatcher usage: fixed size messages per message type some messages require an ack Some me

Re: [Spice-devel] [RFC 2/3] server: introduce dispatcher

2011-11-02 Thread Yonit Halperin
On 11/01/2011 10:10 AM, Alon Levy wrote: used for main_dispatcher only in this patch. Dispatcher is meant to be used for Main<->any low frequency messages. just curious: what is the advantage of using a pipe over an explicit ring of messages with signalling for writes and acks? __

Re: [Spice-devel] [RFC 3/3] server/red_worker: reuse dispatcher

2011-11-02 Thread Yonit Halperin
On 11/01/2011 10:10 AM, Alon Levy wrote: This patch reuses Dispatcher in RedDispatcher. It adds two helpers to red_worker to keep RedWorker opaque to the outside. The dispatcher is abused in three places that use the underlying socket directly: once sending a READY after red_init completes on

Re: [Spice-devel] spice broken with upstream qemu / qemu-kvm

2011-11-02 Thread Yonit Halperin
On 11/02/2011 10:06 PM, Hans de Goede wrote: Hi, Hi all, Today I've tried to build (succeeded) and run (failed) spice + qemu from upstream git (1.0-rc0) I tried both regular qemu as well as qemu-kvm. In both cases the qemu binary works fine as long as I don't start it with -vga qxl. What exact

Re: [Spice-devel] [PATCH 1/5] common/spice_common.h: red_printf_debug: fix wrong sign

2011-11-06 Thread Yonit Halperin
Hi, just trailing whitespace. Ack. On 11/06/2011 06:49 PM, Alon Levy wrote: --- common/spice_common.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/spice_common.h b/common/spice_common.h index 51c6a68..f6205a3 100644 --- a/common/spice_common.h +++ b/common/s

<    1   2   3   4   5   6   7   8   9   10   >