[Spice-devel] [PATCH 1/2 v3] remove dangling pointer for RedCharDeviceVDIPort

2016-05-05 Thread Frediano Ziglio
When a client disconnects remove it from the list of clients connected to the spice char-device. This was caused by commit 1cec1c5118b65124de6bc6f984f376ff4e297bfb ("reds: Make VDIPortState a GObject") as the lifespan of RedCharDevice was changed. This could be reproduced with: - start rhel7 mach

Re: [Spice-devel] [PATCH 0/2] Fix some regression introduced by recent patches

2016-05-05 Thread Uri Lublin
On 05/05/2016 03:54 PM, Eduardo Lima (Etrunko) wrote: On 05/05/2016 09:33 AM, Frediano Ziglio wrote: Frediano Ziglio (2): remove dangling pointer for RedCharDeviceVDIPort Revert "Remove use of opaque from vdi_port_read_one_msg_from_device" server/reds.c | 16 ++-- 1 file change

Re: [Spice-devel] [PATCH] remove dandling pointer for RedCharDeviceVDIPort

2016-05-05 Thread Uri Lublin
On 05/04/2016 11:51 AM, Frediano Ziglio wrote: On 05/03/2016 01:53 PM, Frediano Ziglio wrote: On 05/02/2016 11:25 AM, Frediano Ziglio wrote: This was caused by commit 1cec1c5118b65124de6bc6f984f376ff4e297bfb ("reds: Make VDIPortState a GObject") as the lifespan of RedCharDevice was changed.

Re: [Spice-devel] [PATCH 2/2] Revert "Remove use of opaque from vdi_port_read_one_msg_from_device"

2016-05-05 Thread Frediano Ziglio
> > > > > This reverts commit 0f947b425cc2219f3c5a8705f4214c2deb607a5b. > > This patch causes bug as sin->st can be NULL in some cases. > > opaque is always referring to RedsState. > > > > Signed-off-by: Frediano Ziglio > > --- > > It could be weird but I'm not sure this is the right fix to do

Re: [Spice-devel] [PATCH 2/2] Revert "Remove use of opaque from vdi_port_read_one_msg_from_device"

2016-05-05 Thread Eduardo Lima (Etrunko)
On 05/05/2016 10:05 AM, Frediano Ziglio wrote: >> >> This reverts commit 0f947b425cc2219f3c5a8705f4214c2deb607a5b. >> This patch causes bug as sin->st can be NULL in some cases. >> opaque is always referring to RedsState. >> >> Signed-off-by: Frediano Ziglio >> --- > > It could be weird but I'm n

Re: [Spice-devel] [PATCH 2/2] Revert "Remove use of opaque from vdi_port_read_one_msg_from_device"

2016-05-05 Thread Frediano Ziglio
> > This reverts commit 0f947b425cc2219f3c5a8705f4214c2deb607a5b. > This patch causes bug as sin->st can be NULL in some cases. > opaque is always referring to RedsState. > > Signed-off-by: Frediano Ziglio > --- It could be weird but I'm not sure this is the right fix to do. Why sin->st is rese

Re: [Spice-devel] [PATCH 0/2] Fix some regression introduced by recent patches

2016-05-05 Thread Eduardo Lima (Etrunko)
On 05/05/2016 09:33 AM, Frediano Ziglio wrote: > Frediano Ziglio (2): > remove dangling pointer for RedCharDeviceVDIPort > Revert "Remove use of opaque from vdi_port_read_one_msg_from_device" > > server/reds.c | 16 ++-- > 1 file changed, 6 insertions(+), 10 deletions(-) > Teste

[Spice-devel] [PATCH 2/2] Revert "Remove use of opaque from vdi_port_read_one_msg_from_device"

2016-05-05 Thread Frediano Ziglio
This reverts commit 0f947b425cc2219f3c5a8705f4214c2deb607a5b. This patch causes bug as sin->st can be NULL in some cases. opaque is always referring to RedsState. Signed-off-by: Frediano Ziglio --- server/reds.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/red

[Spice-devel] [PATCH 0/2] Fix some regression introduced by recent patches

2016-05-05 Thread Frediano Ziglio
Frediano Ziglio (2): remove dangling pointer for RedCharDeviceVDIPort Revert "Remove use of opaque from vdi_port_read_one_msg_from_device" server/reds.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) -- 2.5.5 ___ Spice-de

[Spice-devel] [PATCH 1/2] remove dangling pointer for RedCharDeviceVDIPort

2016-05-05 Thread Frediano Ziglio
This was caused by commit 1cec1c5118b65124de6bc6f984f376ff4e297bfb ("reds: Make VDIPortState a GObject") as the lifespan of RedCharDevice was changed. This could be reproduced with: - start rhel7 machine - connect remote viewer (RV) - RV: login - connect ssh - SSH: stop agent - disconnect RV - SSH

Re: [Spice-devel] [PATCH 07/14] Limit direct access to DisplayChannelClient

2016-05-05 Thread Pavel Grunt
Hi Jonathon, there are some unrelated changes which should go in separate patch. On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > Add a few more methods and accessors so that other files don't need to > manipulate the struct members directly. Move the struct definition to a > private

Re: [Spice-devel] [PATCH 08/14] Add missing include to red-pipe-item.h

2016-05-05 Thread Frediano Ziglio
> > On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > > This doesn't cause problems at the moment, because the files that > > include this file also include the other files that are needed, but just > > for completeness... > For me the shortlog itself is enough. From this ^ paragraph I

Re: [Spice-devel] [PATCH 02/14] Move MainChannelClient to separate file

2016-05-05 Thread Frediano Ziglio
> > Preparation for converting to GObject > --- > server/Makefile.am | 2 + > server/inputs-channel.c | 2 +- > server/main-channel-client.c | 552 ++ > server/main-channel-client.h | 163 > server/main-channel.c| 616 >

Re: [Spice-devel] [PATCH 08/14] Add missing include to red-pipe-item.h

2016-05-05 Thread Pavel Grunt
On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > This doesn't cause problems at the moment, because the files that > include this file also include the other files that are needed, but just > for completeness... For me the shortlog itself is enough. From this ^ paragraph I get a feeling

[Spice-devel] [spice-common PATCH v4] Add LZ4 data compression and used it in spicevmc channel

2016-05-05 Thread Snir Sheriber
Compressed message type is CompressedData which contains compression type (1 byte) followed by the uncompressed data size (4 bytes) followed by the compressed data size (4 bytes) followed by the compressed data --- common/client_marshallers.h | 1 + common/messages.h | 7 +++ spice

[Spice-devel] [spice-protocol PATCH v4] LZ4 compression is now available at the Spicevmc channel

2016-05-05 Thread Snir Sheriber
-New message type for compressed messages has been added to the protocol -SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4 capability has been added --- spice/enums.h| 10 ++ spice/protocol.h | 4 2 files changed, 14 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index c6e9840..cf

[Spice-devel] [server PATCH v4] LZ4 compression is now available at the Spicevmc channel

2016-05-05 Thread Snir Sheriber
Compressed message type is CompressedData which contains compression type (1 byte) followed by the uncompressed data size (4 bytes) followed by the compressed data size (4 bytes) followed by the compressed data If SPICE_USBREDIR_CAP_DATA_COMPRESS_LZ4 capability is available && data_size > COMPRESS

[Spice-devel] [spice-gtk PATCH v4] Usbredir: enable lz4 compression

2016-05-05 Thread Snir Sheriber
Compressed message type is CompressedData which contains compression type (1 byte) followed by the uncompressed data size (4 bytes) followed by the compressed data size (4 bytes) followed by the compressed data If SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4 capability is available && data_size > COMPRESS

Re: [Spice-devel] [PATCH 06/14] Replace RedClient::channels with GList

2016-05-05 Thread Pavel Grunt
On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > Allows us to not expose the client_link in RedChannelClient. Acked-by: Pavel Grunt > --- >  server/red-channel.c | 51 --- >  server/red-channel.h |  5 + >  2 files changed, 29 insertio

Re: [Spice-devel] [PATCH 05/14] rename red_channel_peer_ function to red_channel_client_

2016-05-05 Thread Pavel Grunt
Hi, there is more functions using peer in name, but rcc as a parameter. Would you mind changing all of them for consitency. Pavel On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote: > Use consistent naming > --- >  server/red-channel.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deleti

Re: [Spice-devel] [PATCH spice-gtk 2/4] main: do not always request client mouse mode

2016-05-05 Thread Victor Toso
On Mon, Nov 09, 2015 at 03:02:08PM +0100, Marc-André Lureau wrote: > Whenever the mouse mode changed on the server, spice-gtk was requesting > client mode. Instead keep the last requested mode and request it > whenever it's possible. > > Signed-off-by: Marc-André Lureau > --- > src/channel-main.

Re: [Spice-devel] [PATCH spice-gtk 1/4] gtk: add spice_main_request_mouse_mode()

2016-05-05 Thread Victor Toso
On Tue, Nov 10, 2015 at 11:05:09AM +0100, Victor Toso wrote: > Hi, > > On Mon, Nov 09, 2015 at 03:02:07PM +0100, Marc-André Lureau wrote: > > Send a SpiceMsgcMainMouseModeRequest message to request a mouse mode. > > > > This allows to switch between client/absolute and server/relative mouse > > mo

Re: [Spice-devel] [PATCH spice-gtk 1/4] gtk: add spice_main_request_mouse_mode()

2016-05-05 Thread Victor Toso
On Wed, May 04, 2016 at 01:01:47PM +0200, Marc-André Lureau wrote: > Hi > > On Mon, Nov 16, 2015 at 4:34 PM, Victor Toso wrote: > > Hm.. I would either prefer that mouse mode did not change if it can't > > because the function and its documentation suggested that it will only > > try to change th