[Spice-devel] [spice-gtk v1] spicy: fix leak of transfer hash table

2016-05-10 Thread Victor Toso
184 (88 direct, 96 indirect) bytes in 1 blocks are definitely lost in loss record 10,025 of 11,515 at 0x4C28BF6: malloc (vg_replace_malloc.c:299) by 0x9D33218: g_malloc (gmem.c:94) by 0x9D49D02: g_slice_alloc (gslice.c:1025) by 0x9D1CCBD: g_hash_table_new_full (ghash.c:711) by 0x406196: connect

Re: [Spice-devel] [spice-gtk v1] spicy: fix leak of transfer hash table

2016-05-10 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, May 10, 2016 at 10:28:28AM +0200, Victor Toso wrote: > 184 (88 direct, 96 indirect) bytes in 1 blocks are definitely lost in > loss record 10,025 of 11,515 at 0x4C28BF6: malloc > (vg_replace_malloc.c:299) > by 0x9D33218: g_malloc (gmem.c:94) > by 0x9D49D02:

[Spice-devel] [spice-devel]Please help me to check this problem , Compile spice-gtk-0.30 error

2016-05-10 Thread hongzhen_luo
[root@fc21 spice-gtk-0.30]# mingw32-make make all-recursive make[1]: Entering directory '/home/luohongzhen/Downloads/spice-gtk-0.30' Making all in spice-common make[2]: Entering directory '/home/luohongzhen/Downloads/spice-gtk-0.30/spice-common' make all-recursive make[3]: Entering directory '/

Re: [Spice-devel] spice-server style documentation

2016-05-10 Thread Frediano Ziglio
> > Hey, > > On Mon, May 09, 2016 at 11:09:40AM -0400, Frediano Ziglio wrote: > > I think it's time to update this document > > > > > > > > 1. C and C++ style > > > > > > All of the following are applicable for both c and c++, except for > > > section 25 > > > which is c++ extension. > > >

Re: [Spice-devel] spice-server style documentation

2016-05-10 Thread Victor Toso
Hey, On Tue, May 10, 2016 at 05:45:40AM -0400, Frediano Ziglio wrote: > > > > Hey, > > > > On Mon, May 09, 2016 at 11:09:40AM -0400, Frediano Ziglio wrote: > > > I think it's time to update this document > > > > > > > > > > > 1. C and C++ style > > > > > > > > All of the following are applic

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

2016-05-10 Thread Victor Toso
Hi, On Thu, May 05, 2016 at 02:43:33PM +0300, Snir Sheriber wrote: > -New message type for compressed messages has been added to the protocol > -SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4 capability has been added Let's keep the commit messages under 72 char. > --- > spice/enums.h| 10 ++

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

2016-05-10 Thread Victor Toso
On Tue, May 10, 2016 at 12:23:30PM +0200, Victor Toso wrote: > Hi, > > On Thu, May 05, 2016 at 02:43:33PM +0300, Snir Sheriber wrote: > > -New message type for compressed messages has been added to the protocol > > -SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4 capability has been added > > Let's keep the

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

2016-05-10 Thread Victor Toso
On Thu, May 05, 2016 at 02:43:32PM +0300, Snir Sheriber wrote: > 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 Acked-by: Victor T

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

2016-05-10 Thread Victor Toso
Hi, On Thu, May 05, 2016 at 02:43:35PM +0300, Snir Sheriber wrote: > 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_

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

2016-05-10 Thread Victor Toso
Hi, On Thu, May 05, 2016 at 02:43:34PM +0300, Snir Sheriber wrote: > 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_U

Re: [Spice-devel] [spice-gtk v1] spicy: fix leak of transfer hash table

2016-05-10 Thread Victor Toso
Hi, On Tue, May 10, 2016 at 11:16:43AM +0200, Christophe Fergeau wrote: > > Acked-by: Christophe Fergeau Thanks, pushed as https://cgit.freedesktop.org/spice/spice-gtk/commit/?id=e6ca385208d68204c470b51e312582bba8076551 > > On Tue, May 10, 2016 at 10:28:28AM +0200, Victor Toso wrote: > > 184

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

2016-05-10 Thread Pavel Grunt
Hi Snir, it is also needed to increase required version of the spice-protocol in configure.ac for the components using new symbols. Currently  spice-common requires spice-protocol >= 0.12.10  spice-gtk requires spice-protocol >= 0.12.11  spice-server requires spice-protocol >= 0.12.11 And the ne

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

2016-05-10 Thread Christophe Fergeau
Have you measured how much of a gain lz4 compression gives for some use cases? Christophe On Thu, May 05, 2016 at 02:43:32PM +0300, Snir Sheriber wrote: > Compressed message type is CompressedData which contains compression > type (1 byte) followed by the uncompressed data size (4 bytes) followed

[Spice-devel] [PATCH] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
The conversion try keeps the content as is no matter if updated or not. Asciidoc format is already used for manual. Using a text format make easier to see git diff and send patches. Also it's easier to convert to different format and copy to web pages. Signed-off-by: Frediano Ziglio --- docs/Mak

[Spice-devel] [PATCH v2] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
The conversion try keeps the content as is no matter if updated or not. Asciidoc format is already used for manual. Using a text format make easier to see git diff and send patches. Also it's easier to convert to different format and copy to web pages. Signed-off-by: Frediano Ziglio --- docs/Mak

Re: [Spice-devel] [PATCH v2] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Pavel Grunt
Hi Frediano, Thanks! You can add Related: https://bugs.freedesktop.org/show_bug.cgi?id=95258 And the generated file should be removed on clean. Also make distcheck is failing for me: No rule to make target 'spice_style.txt', needed by 'spice_style.html'.  Stop. Thanks, Pavel On Tue, 2016-05-10

Re: [Spice-devel] [spice v13 11/29] server: Avoid copying the input frame in the GStreamer encoder

2016-05-10 Thread Christophe Fergeau
On Tue, Apr 19, 2016 at 09:49:44AM +0200, Francois Gouget wrote: > Note that we can only avoid copies for the first 1 Mpixels or so. > That's because Spice splits larger frames into more chunks than we can > fit GstMemory fragments in a GStreamer buffer. So if there are more > pixels we will avoid

Re: [Spice-devel] [PATCH v2] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Christophe Fergeau
On Tue, May 10, 2016 at 02:27:42PM +0200, Pavel Grunt wrote: > Hi Frediano, > > Thanks! You can add > Related: https://bugs.freedesktop.org/show_bug.cgi?id=95258 > > And the generated file should be removed on clean. Also make distcheck is > failing for me: > > No rule to make target 'spice_styl

[Spice-devel] [PATCH 0/2 v3] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
Changes since v2: - split conversion and cleanup; - fixed make distcheck distributing files. Frediano Ziglio (2): converts Spice_style.odt to asciidoc spice_style.txt removed converted Spice_style.odf docs/Makefile.am | 13 ++ docs/Spice_style.odt | Bin 19045 -> 0 bytes docs/spice_styl

[Spice-devel] [PATCH 1/2 v3] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
The conversion try keeps the content as is no matter if updated or not. Asciidoc format is already used for manual. Using a text format make easier to see git diff and send patches. Also it's easier to convert to different format and copy to web pages. Signed-off-by: Frediano Ziglio --- docs/Mak

[Spice-devel] [PATCH 2/2 v3] removed converted Spice_style.odf

2016-05-10 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- docs/Spice_style.odt | Bin 19045 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 docs/Spice_style.odt diff --git a/docs/Spice_style.odt b/docs/Spice_style.odt deleted file mode 100644 index efdcd1a62ba0c4995e470b6a5ec22301f24ab3

[Spice-devel] [PATCH] fix "spice--gtk" typo in configure.ac

2016-05-10 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8419508..524e845 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ dnl Check optional features SPICE_CHECK_SMARTCARD AC_ARG_ENABLE

Re: [Spice-devel] [PATCH] fix "spice--gtk" typo in configure.ac

2016-05-10 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, May 10, 2016 at 01:57:19PM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index 8419508..524e845 100644 > --- a/conf

Re: [Spice-devel] [PATCH v2 2/2] fix crash if agent interface is removed

2016-05-10 Thread Christophe Fergeau
Hey, On Mon, May 09, 2016 at 11:20:00AM -0400, Frediano Ziglio wrote: > > > > Hey, > > > > On Mon, May 09, 2016 at 10:03:03AM +0100, Frediano Ziglio wrote: > > > Removing an interface cause SpiceBaseInstance->st to be set to NULL. > > > This pointer was then deferenced in agent code. > > > As Sp

[Spice-devel] [PATCH 1/2] unify header include order

2016-05-10 Thread Frediano Ziglio
Use this style for include headers inside headers: #include #include #include #include #include "spice_server.h" Signed-off-by: Frediano Ziglio --- server/cache-item.h | 3 ++- server/dcc-encoders.h | 1 + server/dispatcher.h | 1 + server/display-channel.h

[Spice-devel] [PATCH 2/2] EXP: try to minimize header dependencies

2016-05-10 Thread Frediano Ziglio
Different headers changes: - every header must be auto sufficient; - include an header only if definitions are necessary (ie: don't include just to use some structure pointers). Signed-off-by: Frediano Ziglio --- server/agent-msg-filter.h | 9 ++--- server/cache-item.h |

Re: [Spice-devel] [PATCH v2 2/2] fix crash if agent interface is removed

2016-05-10 Thread Frediano Ziglio
> > Hey, > > On Mon, May 09, 2016 at 11:20:00AM -0400, Frediano Ziglio wrote: > > > > > > Hey, > > > > > > On Mon, May 09, 2016 at 10:03:03AM +0100, Frediano Ziglio wrote: > > > > Removing an interface cause SpiceBaseInstance->st to be set to NULL. > > > > This pointer was then deferenced in age

[Spice-devel] [PATCH v3] fix crash if agent interface is removed

2016-05-10 Thread Frediano Ziglio
Removing an interface cause SpiceBaseInstance->st to be set to NULL. This pointer was then deferenced in agent code. As SpiceBaseInstance should not be used after this call make sure we don't keep pointers to it. Signed-off-by: Frediano Ziglio --- server/reds.c | 1 + server/spice-server

Re: [Spice-devel] [PATCH v3] fix crash if agent interface is removed

2016-05-10 Thread Eduardo Lima (Etrunko)
On 05/10/2016 10:38 AM, Frediano Ziglio wrote: > Removing an interface cause SpiceBaseInstance->st to be set to NULL. > This pointer was then deferenced in agent code. > As SpiceBaseInstance should not be used after this call make sure > we don't keep pointers to it. > > Signed-off-by: Frediano Zi

Re: [Spice-devel] [PATCH spice-gtk 1/2] spice-gtk-session: Add sync modifiers property

2016-05-10 Thread Frediano Ziglio
Acked-by: Frediano Ziglio Frediano > > It will help in cases where syncing modifiers keys is complicated: > * not working leds for modifiers keys > * different keyboard layout on the guest side > --- > src/spice-gtk-session.c | 30 ++ > 1 file changed, 30 insertio

Re: [Spice-devel] [PATCH spice-gtk 2/2] spicy: Add option to control syncing modifiers

2016-05-10 Thread Frediano Ziglio
Acked-by: Frediano Ziglio Frediano > > --- > src/spicy.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/spicy.c b/src/spicy.c > index 0475530..0826c03 100644 > --- a/src/spicy.c > +++ b/src/spicy.c > @@ -712,6 +712,7 @@ static const char *spice_display_properties[] = { >

[Spice-devel] [PATCH v4] fix crash if agent interface is removed

2016-05-10 Thread Frediano Ziglio
Removing an interface cause SpiceBaseInstance->st to be set to NULL. This pointer was then deferenced in agent code. As SpiceBaseInstance should not be used after this call make sure we don't keep pointers to it. Signed-off-by: Frediano Ziglio --- server/reds.c | 1 + server/spice-server

Re: [Spice-devel] [PATCH] reset pointer to RedCharDeviceWriteBuffer calling red_char_device_write_buffer_release

2016-05-10 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, May 09, 2016 at 02:21:04PM +0100, Frediano Ziglio wrote: > This code make easier to be sure we don't have dangling pointers > resetting in the function which free the structure. > > Signed-off-by: Frediano Ziglio > --- > server/char-device.c | 21 +

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

2016-05-10 Thread Christophe Fergeau
Hey, On Tue, May 03, 2016 at 03:00:22PM -0500, Jonathon Jongsma wrote: > @@ -2086,30 +2083,33 @@ void red_client_set_migration_seamless(RedClient > *client) // dest > > void red_client_migrate(RedClient *client) > { > -RingItem *link, *next; > +GList *link, *next; > RedChannelCli

Re: [Spice-devel] [PATCH 04/14] Replace RedChannel::clients with GList

2016-05-10 Thread Christophe Fergeau
Hey, This patch mostly looks good to me, a few minor comments: On Tue, May 03, 2016 at 03:00:20PM -0500, Jonathon Jongsma wrote: > Instead of using a Ring, use a GList to store the list of channel > clients. This allows us to iterate the clients without poking inside of > the client struct to get

Re: [Spice-devel] [PATCH spice-common 1/3] Remove GL support

2016-05-10 Thread Christophe Fergeau
There are still some GL_CANVAS occurrences in canvas_base.c after this patch. Apart from that, looks good to me. Christophe On Fri, May 06, 2016 at 05:14:50PM +0200, Pavel Grunt wrote: > It is not needed since spice-server commit > c5c176a5c7718177f23b07981556b5d460627498 signature.asc Descrip

[Spice-devel] [PATCH 0/2 v4] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
Changes since v3: - added a comment; - remove another fixed section number in the documentation using a link. Changes since v2: - split conversion and cleanup; - fixed make distcheck distributing files. Frediano Ziglio (2): converts Spice_style.odt to asciidoc spice_style.txt removed converte

[Spice-devel] [PATCH 2/2 v4] removed converted Spice_style.odf

2016-05-10 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- docs/Spice_style.odt | Bin 19045 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 docs/Spice_style.odt diff --git a/docs/Spice_style.odt b/docs/Spice_style.odt deleted file mode 100644 index efdcd1a62ba0c4995e470b6a5ec22301f24ab3

[Spice-devel] [PATCH 1/2 v4] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Frediano Ziglio
The conversion try keeps the content as is no matter if updated or not. Asciidoc format is already used for manual. Using a text format make easier to see git diff and send patches. Also it's easier to convert to different format and copy to web pages. Related: https://bugs.freedesktop.org/show_bu

Re: [Spice-devel] [PATCH 1/2 v4] converts Spice_style.odt to asciidoc spice_style.txt

2016-05-10 Thread Pavel Grunt
Hi, something like this can be added for `make clean` in docs: diff --git a/docs/Makefile.am b/docs/Makefile.am index a3e418a..3dba2c3 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -14,3 +14,6 @@ all-local: spice_style.html  spice_style.html: spice_style.txt $(AM_V_GEN) $(ASCIIDO

Re: [Spice-devel] [PATCH 2/2 v4] removed converted Spice_style.odf

2016-05-10 Thread Pavel Grunt
Hi, just a typo in the commit s/odf/odt Acked-by: Pavel Grunt On Tue, 2016-05-10 at 17:24 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  docs/Spice_style.odt | Bin 19045 -> 0 bytes >  1 file changed, 0 insertions(+), 0 deletions(-) >  delete mode 100644 docs/Spice_styl

[Spice-devel] [PATCH 1/2] style: remove documentation for C++

2016-05-10 Thread Frediano Ziglio
C++ use was removed many time ago. Signed-off-by: Frediano Ziglio --- docs/spice_style.txt | 120 +-- 1 file changed, 2 insertions(+), 118 deletions(-) diff --git a/docs/spice_style.txt b/docs/spice_style.txt index f354c30..74aae0c 100644 --- a/do

[Spice-devel] [PATCH 2/2] style: remove spice client section

2016-05-10 Thread Frediano Ziglio
Spice client is no more in this repository and also the style was changed Signed-off-by: Frediano Ziglio --- docs/spice_style.txt | 19 --- 1 file changed, 19 deletions(-) diff --git a/docs/spice_style.txt b/docs/spice_style.txt index 74aae0c..8966365 100644 --- a/docs/spice_sty