[Spice-devel] change the Monitor refresh rate of VM

2012-08-15 Thread flooding Controlled
Hi all: I am now using spice now, but stucked by some problems. My vm is XP, and I can the monitor refresh rate! It is always 100HZ, and it it too high, How can I decrease it ? Thanks a lot! Yours. ___ Spice-devel mailing list

Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

2012-08-15 Thread Arnon Gilboa
Hi Naga, Tested and reproduced it on Win7. I don't have a patch yet for solving it, but you comment out the line: //ret = _running = false; so vdagent won't exit, although mouse will not be effective on such apps. If it's a must, meanwhile you can always switch back to server mouse mode by

Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

2012-08-15 Thread Yaniv Kaul
- Original Message - Hi Naga, Tested and reproduced it on Win7. I bet you'd see this in any many personal FW / Antivirus, to prevent a malicious software from manipulating it via the mouse (and disable it, for example). I'd try with ZoneAlarm

[Spice-devel] [spice-protocol PATCH 1/2] add SPICE_MSG_MAIN_AGENT_CONNECTED_TOKENS

2012-08-15 Thread Yonit Halperin
Similarly to SPICE_MSG_AGENT_CONNECTED, the msg notifies the main channel about attaching an agent. In addition the msg also contains the number of tokens allocated to the client. --- spice/enums.h|1 + spice/protocol.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff

[Spice-devel] [spice-protocol PATCH 2/2] seamless migration support

2012-08-15 Thread Yonit Halperin
The main difference between semi-seamless and seamless migration is that while in semi-seamless migration the state of all the channels is being completely reset after migration is complete, in seamless migration the essential parts of the state are restored on the server side, and are left the

[Spice-devel] [spice-common PATCH 1/2] add SPICE_MSG_MAIN_AGENT_CONNECTED_TOKENS

2012-08-15 Thread Yonit Halperin
The msg is used for setting the number of allocated client tokens when we notify the client that the agent is attached. --- common/messages.h |2 ++ spice-protocol|2 +- spice.proto |4 3 files changed, 7 insertions(+), 1 deletions(-) diff --git a/common/messages.h

[Spice-devel] [spice-common PATCH 2/2] support seamless migration

2012-08-15 Thread Yonit Halperin
see spice-protocol for more details commit 1ad5d259cb4b695ec3106de7ccd082e031e7ae11 --- common/client_marshallers.h |1 + common/messages.h | 15 ++- spice-protocol |2 +- spice.proto | 24 +--- spice1.proto

[Spice-devel] [spice PATCH 01/55] red_channel: add red_channel_test_remote_cap

2012-08-15 Thread Yonit Halperin
for checking if all the channel clients connected support the cap --- server/red_channel.c | 28 server/red_channel.h |4 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/server/red_channel.c b/server/red_channel.c index 2a7acbf..1cad9eb

[Spice-devel] [spice PATCH 02/55] agent: reset client tokens when notifying on agent connection

2012-08-15 Thread Yonit Halperin
send SPICE_MSG_MAIN_AGENT_CONNECTED_TOKENS --- server/main_channel.c | 17 - server/reds.c | 16 ++-- spice-common |2 +- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/server/main_channel.c b/server/main_channel.c index

[Spice-devel] [spice PATCH 03/55] agent: don't attempt to read from the device if it was released

2012-08-15 Thread Yonit Halperin
if vdi_port_read_buf_process failes, we detach the agent and also release the read buffer. We shouldn't try reading from the device afterwards. --- server/reds.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/server/reds.c b/server/reds.c index 8d6dbfb..53f0a39 100644

[Spice-devel] [spice PATCH 04/55] reds: add tracking for char devices

2012-08-15 Thread Yonit Halperin
The list of attached char_devices will be used in the next patch for notifying each instance of SpiceCharDeviceState when the vm is started or stopped. --- server/char_device.c |1 + server/reds.c| 44 server/reds.h|1 + 3

[Spice-devel] [spice PATCH 05/55] spice.h: add entries for tracking vm state

2012-08-15 Thread Yonit Halperin
When vm state changes (started/stopped), we notify all the attached SpiceCharDeviceStates about the change. This is mainly required for avoiding writing/reading to/from the device during the non-live stage of migration. spice version will be bumped in one of the following patches. ---

[Spice-devel] [spice PATCH 06/55] spice.h: add spice_server_set_seamless_migration

2012-08-15 Thread Yonit Halperin
This new call is used in order to identify whether qemu, or the management (e.g. libvirt), support seamless migration. If it is supported, qemu spice cmd-line configuration should have seamless-migration=on. In addition, we disable seamless migration support if multiple clients are allowed.

[Spice-devel] [spice PATCH 07/55] bump version to 0.11.2

2012-08-15 Thread Yonit Halperin
New api entries: spice_server_vm_start spice_server_vm_stop spice_server_set_seamless_migration --- server/spice-server.syms |7 +++ server/spice.h |2 +- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/server/spice-server.syms

[Spice-devel] [spice PATCH 08/55] seamless-migration: add migration_protocol.h

2012-08-15 Thread Yonit Halperin
The file will hold the declarations of the different migration data messages (depending on the channel), that will be passed from the src server to the dst server, via the client, using SPICE_MSG_MIGRATE_DATA. --- server/Makefile.am |1 + server/migration_protocol.h | 49

[Spice-devel] [spice PATCH 09/55] seamless-migration: update spice-common submodule

2012-08-15 Thread Yonit Halperin
Also Update server and client according to the change of SpiceMsgMainMigrationBegin: it now holds all the fields inside SpiceMigrationDstInfo. --- client/red_client.cpp | 18 +- server/main_channel.c | 16 spice-common |2 +- 3 files changed, 18

[Spice-devel] [spice PATCH 10/55] seamless migration: pre migration phase on the src side

2012-08-15 Thread Yonit Halperin
sending SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS and handling SPICE_MSGC_MAIN_MIGRATE_CONNECTED_SEAMLESS The src side signals the client to establish a connection to the destination. In seamless migration, the client is also used to perform a sort of handshake with the destination, for verifying if

[Spice-devel] [spice PATCH 11/55] seamless migration: pre migration phase on the destination side

2012-08-15 Thread Yonit Halperin
- handle SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS - reply with SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_ACK/NACK - prepare the channels for migration according to the migration type (semi/seamless) see spice-protocol for more details: commit 1ad5d259cb4b695ec3106de7ccd082e031e7ae11 ---

[Spice-devel] [spice PATCH 12/55] seamleass migration: manage post migration phase in the src side

2012-08-15 Thread Yonit Halperin
In semi-seamless, SPICE_MSG_MAIN_MIGRATE_END is sent. In seamless, each channel migrates separately. The src waits till all the clients are disconnected (or a timeout), and then it notifies qemu that spice migration has completed. The patch doesn't include the per-channel logic for seamless

[Spice-devel] [spice PATCH 13/55] red_channel: fix pipe item leak

2012-08-15 Thread Yonit Halperin
--- server/red_channel.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/server/red_channel.c b/server/red_channel.c index 1cad9eb..a108bc2 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -461,6 +461,7 @@ static void

[Spice-devel] [spice PATCH 14/55] red_channel: handle sending SPICE_MSG_MIGRATE

2012-08-15 Thread Yonit Halperin
The relevant code is common to all channels. The patch also contains a fix to the return value for handle_migrate_data callback: s/uint64_t/int --- server/inputs_channel.c |3 ++- server/main_channel.c |5 +++-- server/red_channel.c| 38 ++

[Spice-devel] [spice PATCH 15/55] seamless migration: migration completion on the destination side

2012-08-15 Thread Yonit Halperin
Tracking the channels that wait for migration data. If there is a new migration process pending, when all the channels have restored their state, we begin the new migration. --- server/main_channel.c| 11 +++- server/main_channel.h|3 +- server/main_dispatcher.c | 32

[Spice-devel] [spice PATCH 16/55] replace some migration related spice_error calls with info/warning

2012-08-15 Thread Yonit Halperin
--- server/reds.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/reds.c b/server/reds.c index d53b245..3b53056 100644 --- a/server/reds.c +++ b/server/reds.c @@ -4111,7 +4111,7 @@ SPICE_GNUC_VISIBLE int spice_server_migrate_connect(SpiceServer *s, const char*

[Spice-devel] [spice PATCH 17/55] migration_protocol: add migration data for char devices

2012-08-15 Thread Yonit Halperin
--- server/migration_protocol.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/server/migration_protocol.h b/server/migration_protocol.h index 2b7f4c2..7a1cb1d 100644 --- a/server/migration_protocol.h +++ b/server/migration_protocol.h @@ -31,6 +31,26

[Spice-devel] [spice PATCH 18/55] char_device: variable token price for write buffers

2012-08-15 Thread Yonit Halperin
When restoring migration data, we also restore data that is addressed to the device, and that might have been originated from more than 1 message. When the write buffer that is assoicated with this data is released, we need to free all the relevant tokens. --- server/char_device.c | 40

[Spice-devel] [spice PATCH 19/55] char device migration: marshall migration data

2012-08-15 Thread Yonit Halperin
--- server/char_device.c | 69 ++ server/char_device.h |5 +++ 2 files changed, 74 insertions(+), 0 deletions(-) diff --git a/server/char_device.c b/server/char_device.c index 419b7df..84121e6 100644 --- a/server/char_device.c +++

[Spice-devel] [spice PATCH 20/55] char device migration: don't read or write from/to the device while waiting for migraion data

2012-08-15 Thread Yonit Halperin
--- server/char_device.c | 24 +++- server/char_device.h |3 ++- server/reds.c| 13 +++-- server/smartcard.c |3 ++- server/spicevmc.c|3 ++- 5 files changed, 32 insertions(+), 14 deletions(-) diff --git a/server/char_device.c

[Spice-devel] [spice PATCH 21/55] char device migration: restore state at destination from migration data

2012-08-15 Thread Yonit Halperin
--- server/char_device.c | 49 + server/char_device.h |3 +++ 2 files changed, 52 insertions(+), 0 deletions(-) diff --git a/server/char_device.c b/server/char_device.c index d97c6dd..b85a24d 100644 --- a/server/char_device.c +++

[Spice-devel] [spice PATCH 23/55] spicevmc: send MSG_MIGRATE upon vm migration completion

2012-08-15 Thread Yonit Halperin
The above is the default behaviour for red_channel_client, if client_cbs.migrate is not registered as part of red_channel_register_client_cbs --- server/spicevmc.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index

[Spice-devel] [spice PATCH 24/55] spicevmc migration: send migration data

2012-08-15 Thread Yonit Halperin
--- server/spicevmc.c | 60 1 files changed, 55 insertions(+), 5 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index a1092d2..b14ba63 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -31,6 +31,7 @@ #include

[Spice-devel] [spice PATCH 25/55] spicevmc migration: restore migration dest state from migration data

2012-08-15 Thread Yonit Halperin
--- server/spicevmc.c | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index b14ba63..1ce3169 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -206,12 +206,39 @@ static void

[Spice-devel] [spice PATCH 26/55] smartcard: change the timing of attaching a client to SpiceCharDeviceState

2012-08-15 Thread Yonit Halperin
Attach/detach a client to a SpiceCharDeviceState upon its connection/disconnection, instead of upon reader_add/remove messages. When the client is removed from a SpiceCharDeviceState, all the messages from this client are removed from the device write queue. This shouldn't happen when we only

[Spice-devel] [spice PATCH 27/55] smartcard: fix PIPE_ITEMs enum indexing

2012-08-15 Thread Yonit Halperin
The enum should start from PIPE_ITEM_TYPE_CHANNEL_BASE, otherwise, PIPE_ITEM_TYPE_ERROR is handled like PIPE_ITEM_TYPE_SET_ACK. --- server/smartcard.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/smartcard.c b/server/smartcard.c index 44a3fae..bbd6826 100644

[Spice-devel] [spice PATCH 28/55] smartcard: send MSG_MIGRATE upon vm migration completion

2012-08-15 Thread Yonit Halperin
The above is the default behaviour for red_channel_client, if client_cbs.migrate is not registered as part of red_channel_register_client_cbs --- server/smartcard.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/server/smartcard.c b/server/smartcard.c index

[Spice-devel] [spice PATCH 29/55] migration_protocol: add migration data for smartcard

2012-08-15 Thread Yonit Halperin
--- server/migration_protocol.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/server/migration_protocol.h b/server/migration_protocol.h index 127ab0a..67ad1bf 100644 --- a/server/migration_protocol.h +++ b/server/migration_protocol.h @@ -62,6 +62,20 @@

[Spice-devel] [spice PATCH 30/55] smartcard migration: send migration data

2012-08-15 Thread Yonit Halperin
--- server/smartcard.c | 56 +++ 1 files changed, 51 insertions(+), 5 deletions(-) diff --git a/server/smartcard.c b/server/smartcard.c index bc1c6e4..15f5324 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -26,6 +26,7 @@ #include

[Spice-devel] [spice PATCH 32/55] red_channel: introduce PIPE_ITEM_TYPE_EMPTY_MSG

2012-08-15 Thread Yonit Halperin
The pipe item is used for sending messages that don't have body. --- server/red_channel.c | 39 +++ server/red_channel.h |4 2 files changed, 43 insertions(+), 0 deletions(-) diff --git a/server/red_channel.c b/server/red_channel.c index

[Spice-devel] [spice PATCH 33/55] main_channel: fix using spice messages enums as pipe items type

2012-08-15 Thread Yonit Halperin
A channel pipe item type must start from PIPE_ITEM_TYPE_CHANNEL_BASE. SPICE_MSG_MIGRATE value eq. PIPE_ITEM_TYPE_SET_ACK. Setting a pipe item type to SPICE_MSG_MIGRATE, leads to red_channel handling PIPE_ITEM_TYPE_SET_ACK. Also removed sending SPICE_MSG_MIGRATE. It will be handled in the next

[Spice-devel] [spice PATCH 34/55] migration_protocol: add migration data for the main channel (mainly for the agent)

2012-08-15 Thread Yonit Halperin
--- server/migration_protocol.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/server/migration_protocol.h b/server/migration_protocol.h index 67ad1bf..d2a5575 100644 --- a/server/migration_protocol.h +++ b/server/migration_protocol.h @@

[Spice-devel] [spice PATCH 35/55] reds: s/HADER/HEADER

2012-08-15 Thread Yonit Halperin
--- server/reds.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/reds.c b/server/reds.c index 7e31b18..a31bad9 100644 --- a/server/reds.c +++ b/server/reds.c @@ -158,7 +158,7 @@ static VDIReadBuf *vdi_port_read_buf_ref(VDIReadBuf *buf); static void

[Spice-devel] [spice PATCH 36/55] main: send MSG_MIGRATE upon vm migration completion

2012-08-15 Thread Yonit Halperin
Before sending the above msg, if there is a pending partial msg that has been read from the agent, we send it to the client. The alternative was to keep the msg as part of the migration data, and then to send it to the destination server via the client and to wait there for the msg chunk

[Spice-devel] [spice PATCH 37/55] main: send migration data

2012-08-15 Thread Yonit Halperin
Also removed some unused definitions from reds that used to belong to old agent and migration code. --- server/main_channel.c | 14 +- server/reds.c | 102 +++- server/reds.h |2 +- 3 files changed, 95 insertions(+), 23

[Spice-devel] [spice PATCH 38/55] main: restore state from migration data

2012-08-15 Thread Yonit Halperin
Also removed old migration leftovers. --- server/main_channel.c | 34 -- server/main_channel.h | 21 -- server/reds.c | 162 +--- server/reds.h |4 +- 4 files changed, 168 insertions(+), 53 deletions(-) diff --git

[Spice-devel] [spice PATCH 39/55] char_device: don't connect a migrated client if the state of the device might have changed since it was created

2012-08-15 Thread Yonit Halperin
If reading/writing from the device have occured before migration data has arrived, the migration data might no longer be relvant, and we disconnect the client. --- server/char_device.c | 22 ++ server/char_device.h | 14 +++--- server/reds.c| 44

[Spice-devel] [spice PATCH 40/55] inputs channel: fix using spice messages enums as pipe items type

2012-08-15 Thread Yonit Halperin
A channel pipe item type must start from PIPE_ITEM_TYPE_CHANNEL_BASE. SPICE_MSG_MIGRATE value eq. PIPE_ITEM_TYPE_SET_ACK. Setting a pipe item type to SPICE_MSG_MIGRATE, leads to red_channel handling PIPE_ITEM_TYPE_SET_ACK. --- server/inputs_channel.c | 24 +++- 1 files

[Spice-devel] [spice PATCH 41/55] inputs channel: use the default red_channel behaviour for client_cbs.migrate

2012-08-15 Thread Yonit Halperin
The default callback sends SPICE_MSG_MIGRATE to the client. --- server/inputs_channel.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/server/inputs_channel.c b/server/inputs_channel.c index 9f96624..d753bac 100644 --- a/server/inputs_channel.c +++

[Spice-devel] [spice PATCH 42/55] migration_protocol: add display channel migration data

2012-08-15 Thread Yonit Halperin
--- server/migration_protocol.h | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/server/migration_protocol.h b/server/migration_protocol.h index d2a5575..285d86d 100644 --- a/server/migration_protocol.h +++

[Spice-devel] [spice PATCH 43/55] display cursor migration: send SPICE_MSG_MIGRATE

2012-08-15 Thread Yonit Halperin
--- server/red_worker.c | 55 ++ 1 files changed, 3 insertions(+), 52 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index 7c71ba0..9e9908e 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -253,8 +253,6 @@ enum {

[Spice-devel] [spice PATCH 44/55] display migration: marshall migration data

2012-08-15 Thread Yonit Halperin
--- server/red_worker.c | 52 +- 1 files changed, 46 insertions(+), 6 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index 9e9908e..d37bbac 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -79,6 +79,7 @@

[Spice-devel] [spice PATCH 45/55] display migration: restore destination state

2012-08-15 Thread Yonit Halperin
Restoring display channel from migration data. Not notifying client about changes that are artifacts of loading the vm. Remove legacy migration code. --- server/red_worker.c | 223 ++- 1 files changed, 149 insertions(+), 74 deletions(-) diff --git

[Spice-devel] [spice PATCH 46/55] red_channel (dummy): fix not adding dummy RedChannelClient to the client

2012-08-15 Thread Yonit Halperin
snd channel wasn't added to be part of the client's channels list. As a result, when the client was destroyed, or migrated, snd channel client wasn't destroy, or its migration callback wasn't called. However, due to adding dummy channels to the client, we need special handling for calls to

[Spice-devel] [spice PATCH 47/55] snd_channel: fix double release

2012-08-15 Thread Yonit Halperin
Due to the fix in the previous patch, snd_disconnect_channel can be called both when there is write/read error in the channel, or from red_client_destroy (which calls client_cbs.disconnect). Multiple calls to snd_disconnect_channel resulted in calling channel-cleanup(channel) more than once

[Spice-devel] [spice PATCH 48/55] snd_worker: handling migration

2012-08-15 Thread Yonit Halperin
The playback and record channel send SPICE_MSG_MIGRATE to the client. Both playback and record channel does not have a state to restore: while in the legacy migration implementation the record channel used to restore the mode and start time, it looks unnecessary since the client receives from the

[Spice-devel] [spice PATCH 49/55] red_channel: remove unused migrate flag from RedChannel

2012-08-15 Thread Yonit Halperin
The relevant flags reside in RedChannelClient and RedClient --- server/inputs_channel.c |1 - server/main_channel.c |2 +- server/red_channel.c|7 +++ server/red_channel.h|5 ++--- server/red_worker.c |7 +++ server/smartcard.c |1 -

[Spice-devel] [spice PATCH 51/55] main_channel: don't expect init msg in a seamless migration destination

2012-08-15 Thread Yonit Halperin
If the server is a destination of seamless migration, send msgs to the client, even though an init msg has not been sent to the client. --- server/main_channel.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/server/main_channel.c b/server/main_channel.c index

[Spice-devel] [spice PATCH 53/55] inputs_channel: send and handle migration data

2012-08-15 Thread Yonit Halperin
--- server/inputs_channel.c | 52 -- 1 files changed, 49 insertions(+), 3 deletions(-) diff --git a/server/inputs_channel.c b/server/inputs_channel.c index 684dec6..fcf3f82 100644 --- a/server/inputs_channel.c +++ b/server/inputs_channel.c @@ -37,6

[Spice-devel] [spice PATCH 54/55] inputs channel migration: don't send any msg after MSG_MIGRATE

2012-08-15 Thread Yonit Halperin
Pending motion acks, and keyboard modifiers messages will be sent by the destination after receiving the migration data. --- server/inputs_channel.c | 30 +- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/server/inputs_channel.c

[Spice-devel] [spice PATCH 55/55] enable seamless migration and set migration protocol version

2012-08-15 Thread Yonit Halperin
--- server/main_channel.c |1 + server/migration_protocol.h |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/server/main_channel.c b/server/main_channel.c index 22660f5..0fd5ab6 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -1184,6 +1184,7 @@

[Spice-devel] [spice-gtk PATCH 2/7] channel_main: handle SPICE_MSG_AGENT_CONNECTED_TOKENS

2012-08-15 Thread Yonit Halperin
--- gtk/channel-main.c | 12 spice-common |2 +- 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/gtk/channel-main.c b/gtk/channel-main.c index 0c15dfa..91c9167 100644 --- a/gtk/channel-main.c +++ b/gtk/channel-main.c @@ -163,6 +163,7 @@ static void

[Spice-devel] [spice-gtk PATCH 3/7] seamless-migration: update spice-common submodule

2012-08-15 Thread Yonit Halperin
Update channel-main as well to support the change made to SpiceMsgMainMigrationBegin: it now holds all the destination fields inside SpiceMigrationDstInfo. --- gtk/channel-main.c |6 +++--- spice-common |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[Spice-devel] [spice-gtk PATCH 4/7] seamless migration: src and dest servers handshake

2012-08-15 Thread Yonit Halperin
Flow: (1) *src* main channel coroutine (main_handle_migrate_begin_seamless): handles SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS; yields to the main loop, supplying it the destination information needed for connection. (2) main context (migrate_connect): Establishes a new session for

[Spice-devel] [spice-gtk PATCH 5/7] seamless migration: transfer pending msgs to the destination, instead of sending them to the src before FLUSH_MARK

2012-08-15 Thread Yonit Halperin
In order to save migration time, and probably also decrease migration data size, we push the flush mark to the src server before any other message. All the other pending msgs will be sent later to the destination server (see next patch). --- gtk/channel-base.c |7 +++ 1 files changed, 3

[Spice-devel] [spice-gtk PATCH 6/7] seamless migration: don't reset messages data when swapping channels

2012-08-15 Thread Yonit Halperin
When swapping the src and dest channels's, we need to keep the xmit_queue and msg serials. Their state is expected to stay the same after migration. --- gtk/channel-main.c |4 +++- gtk/spice-channel-priv.h |2 +- gtk/spice-channel.c | 12 +++- gtk/spice-session-priv.h

[Spice-devel] [spice-gtk PATCH 7/7] migration: copy enable-smartcard and enable-audio state to the migrated session

2012-08-15 Thread Yonit Halperin
Otherwise, we will not create smartcard channel on the destination side, and we will create audio channels, no matter if they existed of didn't exist for the src side. --- gtk/spice-session.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/gtk/spice-session.c

Re: [Spice-devel] [PATCH] Implement spice_server_set_exit_on_disconnect to enable an option whereby the spice server shuts down on client disconnect.

2012-08-15 Thread Alon Levy
On Tue, Aug 14, 2012 at 03:43:14PM -0500, Jeremy White wrote: ACK. --- configure.ac |6 +++--- server/reds.c| 14 ++ server/spice-server.syms |4 server/spice.h |1 + 4 files changed, 22 insertions(+), 3 deletions(-) diff

Re: [Spice-devel] [PATCH] Implement spice_server_set_exit_on_disconnect to enable an option whereby the spice server shuts down on client disconnect.

2012-08-15 Thread Alon Levy
On Tue, Aug 14, 2012 at 07:14:06PM -0500, Jeremy White wrote: Hmm. I'm not sure this is complete; in writing the patch for the qxl driver, I realized I wanted to key off of SPICE_SERVER_VERSION, which I want to bump to 0x000b02. But then if I do that, how should I map out spice-server.syms?

Re: [Spice-devel] crazy feature wish Spice had

2012-08-15 Thread David Jaša
mzawdx wang píše v Út 14. 08. 2012 v 23:27 +0800: Yeah. I think so. For HTML5, en. Is spice-xpi a possible select ? No, spice-xpi is not a client, it's a browser plugin that launches standalone client. There is an ongoing effort for HTML5/JS client, you can browse the archives here for

Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

2012-08-15 Thread Arnon Gilboa
Yaniv Kaul wrote: - Original Message - Hi Naga, Tested and reproduced it on Win7. I bet you'd see this in any many personal FW / Antivirus, to prevent a malicious software from manipulating it via the mouse (and disable it, for example). I'd try with ZoneAlarm

Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

2012-08-15 Thread Yaniv Kaul
On 08/15/2012 01:05 PM, Arnon Gilboa wrote: Yaniv Kaul wrote: - Original Message - Hi Naga, Tested and reproduced it on Win7. I bet you'd see this in any many personal FW / Antivirus, to prevent a malicious software from manipulating it via the mouse (and disable it, for example).

Re: [Spice-devel] Mouse failure happens when mouse hovers on some Apps like Kaspersky Anti-virus tool.

2012-08-15 Thread Naga Mohan Pothula
Arnon, I tried //ret = _running = falseearlier and noticed vdagent was not stopped but had seen mouse tracking offset issue. I can't stop VDService because VDAgent functionality is mandatory. As Yaniv suggestion, will it be possible keep running VDAgent and keeping server mode for such apps?

[Spice-devel] [PATCH spice-protocol] inputs: add an INPUTS_KEY_SCANCODE message

2012-08-15 Thread Marc-André Lureau
Add a new arbitrary keyboard scancodes message. For now, it will be used to avoid unwanted key repeatition when there is jitter in the network and too much time between DOWN and UP messages, instead the client will send the press release scancode in a sequence from a single message. If the

[Spice-devel] [PATCH spice-common] inputs: add a INPUTS_KEY_SCANCODE message

2012-08-15 Thread Marc-André Lureau
Add a new arbitrary keyboard scancodes message. For now, it will be used to avoid unwanted key repeatition when there is jitter in the network and too much time between DOWN and UP messages, instead the client will send the press release scancode in a sequence. See also:

[Spice-devel] [PATCH spice] inputs: handle SPICE_MSGC_INPUTS_KEY_SCANCODE

2012-08-15 Thread Marc-André Lureau
Handle SPICE_MSGC_INPUTS_KEY_SCANCODE message, allowing arbitrary keyboard scancode sequence. --- server/inputs_channel.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/server/inputs_channel.c b/server/inputs_channel.c index e14e995..8df657e 100644 --- a/server/inputs_channel.c

[Spice-devel] [PATCH spice-gtk 1/5] util-priv: factor out spice_make_scancode()

2012-08-15 Thread Marc-André Lureau
Factor out the keyboard scancode manipulation function, to be reusable by newer code. --- gtk/channel-inputs.c | 22 -- gtk/spice-util-priv.h |1 + gtk/spice-util.c | 21 + 3 files changed, 26 insertions(+), 18 deletions(-) diff --git

[Spice-devel] [PATCH spice-gtk 2/5] inputs: add spice_inputs_key_press_and_release()

2012-08-15 Thread Marc-André Lureau
If the server is capable of SPICE_INPUTS_CAP_SCANCODE, then we send can send a single message with key press and release, to avoid unwanted guest side key repeatition due to network jitter. If the server is not capable, spice-gtk will use some compatibility mode and send the existing DOWN and UP

[Spice-devel] [PATCH spice-gtk 3/5] widget: give more context to send_key()

2012-08-15 Thread Marc-André Lureau
- use a more explicit SendKeyType enum - if the key is a modifier key, we don't want to delay press event --- gtk/spice-widget.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c index 2bb7b38..a3369d5 100644 ---

[Spice-devel] [PATCH spice-gtk 4/5] widget: add keypress-delay property

2012-08-15 Thread Marc-André Lureau
The delay before the press event is sent to the server if the key is kept pressed. If the key is released within that time, that delay is ignored and a single key-press-release event will be sent. --- gtk/spice-widget-priv.h |1 + gtk/spice-widget.c | 27 +++ 2

[Spice-devel] [PATCH spice-gtk 5/5] widget: differentiate key press release from press only events

2012-08-15 Thread Marc-André Lureau
Until now, Spice clients only sent seperate key events for press and release. But this may result in unwanted key repeatition from guest VM side. It seems OSes have various implementation. While MS Windows rely on hardware key repeats (which are several sequential press events), otoh, X11 uses

Re: [Spice-devel] [Users] Spice console - Windows

2012-08-15 Thread Itamar Heim
On 08/15/2012 11:15 PM, Ricardo Esteves wrote: Hi, I logged in to ovirt manager using IE9 (64 bits) and when I click the console icon of my VM nothing happens. virt-viewer-0.5.3_x64.exe http://spice-space.org/download/gtk/windows/virt-viewer-0.5.3_x64.exeis installed. There is no firefox

Re: [Spice-devel] change the Monitor refresh rate of VM

2012-08-15 Thread mzawdx wang
On VMWare Workstation, there is no such problems. I think it is the issue of QXL driver. Thanks. 2012/8/15 flooding Controlled flooding2...@gmail.com Hi all: I am now using spice now, but stucked by some problems. My vm is XP, and I can the monitor refresh rate! It is always 100HZ, and