Re: [Spice-devel] Postcopy+spice crash

2016-12-05 Thread Gerd Hoffmann
Hi, > >> On a quick glance I'd blame the guest for sending corrupted commands. > >> Strange though that it happens on migration only, so there could be > >> a host issue too. Or a timing issue triggered by migration. > >> > >> Which migration phase? > > > > This is the point at which it switche

[Spice-devel] [PATCH spice-common] Marshaller: rename _add_ref() to _add_by_ref()

2016-12-05 Thread Jonathon Jongsma
The spice_marshaller_add_ref() family of functions is confusing since it sounds like you're incrementing a reference on the marshaller. What it is actually doing is adding a data buffer to the marshaller by reference rather than by value. Changing the function names to _add_by_ref() makes this clea

Re: [Spice-devel] [spice v2] display-channel: Make video-codecs property read-write

2016-12-05 Thread Jonathon Jongsma
Looks fine to me. Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 14:59 +0100, Victor Toso wrote: > From: Victor Toso > > This patch creates display_channel_get_video_codecs() helper to let > stream.c get the video-codecs without accessing the internal > structure > of DisplayChannel. > > As

Re: [Spice-devel] [PATCH v5 8/8] Support QXL remove on spice_server_remove_interface

2016-12-05 Thread Jonathon Jongsma
On Mon, 2016-12-05 at 12:16 +, Frediano Ziglio wrote: > Allow to dynamically remove QXL interfaces. This could be used to > support hot swapping of QXL cards. > This code is actually not used in any way. > QXL interfaces are destroyed by spice_server_destroy automatically. > > Signed-off-by: F

Re: [Spice-devel] [PATCH v5 5/8] replay: Free spice server to detect leaks

2016-12-05 Thread Jonathon Jongsma
looks like it's already acked by Pavel, but Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 12:16 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > Acked-by: Pavel Grunt > --- >  server/tests/replay.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/se

Re: [Spice-devel] [PATCH v5 4/8] Free main_dispatcher in spice_server_destroy

2016-12-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 12:16 +, Frediano Ziglio wrote: > Avoid leaking it. > > Signed-off-by: Frediano Ziglio > --- >  server/reds.c | 5 + >  1 file changed, 5 insertions(+) > > diff --git a/server/reds.c b/server/reds.c > index 95295c8..d350331 100644 > ---

Re: [Spice-devel] [PATCH v5 3/8] Free QXL instances in spice_server_destroy

2016-12-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 12:16 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- >  server/reds.c | 2 ++ >  1 file changed, 2 insertions(+) > > diff --git a/server/reds.c b/server/reds.c > index 17e5ada..95295c8 100644 > --- a/server/reds.c > +++ b/se

Re: [Spice-devel] [PATCH v5 2/8] Free inputs_channel in spice_server_destroy

2016-12-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 12:16 +, Frediano Ziglio wrote: > Avoid leaking this channel. > > Signed-off-by: Frediano Ziglio > --- >  server/reds.c | 4 >  1 file changed, 4 insertions(+) > > diff --git a/server/reds.c b/server/reds.c > index 479a815..17e5ada 1006

Re: [Spice-devel] [PATCH v5 1/8] Call parent finalize at the and of display_channel_finalize

2016-12-05 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2016-12-05 at 12:15 +, Frediano Ziglio wrote: > Make finalization of DisplayChannel consistent with other code. > > Signed-off-by: Frediano Ziglio > --- >  server/display-channel.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --gi

Re: [Spice-devel] [PATCH qxl-wddm-dod] Implements screen to screen move correctly

2016-12-05 Thread Yuri Benditovich
On Mon, Dec 5, 2016 at 2:51 PM, Frediano Ziglio wrote: > ping > > Maybe this requires some follow ups for VgaDevice and > possibly avoinind taking into account moves during mapping > computation. > > Indeed, it seems GetMaxSourceMappingHeight(NULL, 0,...) will be also correct. >From other side, I

Re: [Spice-devel] [PATCH qxl-wddm-dod] Implements screen to screen move correctly

2016-12-05 Thread Yuri Benditovich
On Mon, Nov 28, 2016 at 1:03 PM, Frediano Ziglio wrote: > Doing some fast check on Windows 8.1 you could note that > moving windows you got a weird effect were windows were a > bit misaligned. > As documented in DXGKARG_PRESENT_DISPLAYONLY page > NumMoves/pMoves fields point to an array of screen

Re: [Spice-devel] [PATCH spice 3/3] build-sys: Warn on usage of unavailable glib functions

2016-12-05 Thread Pavel Grunt
On Mon, 2016-12-05 at 11:06 -0500, Frediano Ziglio wrote: > > > > It works only with glib2 >= 2.32 > > --- > >  configure.ac | 3 +++ > >  1 file changed, 3 insertions(+) > > > > diff --git a/configure.ac b/configure.ac > > index c978b924..1400c503 100644 > > --- a/configure.ac > > +++ b/configure

Re: [Spice-devel] [PATCH spice 3/3] build-sys: Warn on usage of unavailable glib functions

2016-12-05 Thread Frediano Ziglio
> > It works only with glib2 >= 2.32 > --- > configure.ac | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/configure.ac b/configure.ac > index c978b924..1400c503 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -149,7 +149,10 @@ PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol

Re: [Spice-devel] Now available: x11spice utility

2016-12-05 Thread Jeremy White
On 12/04/2016 09:11 AM, Snir Sheriber wrote: > Hi, > > I've tried your x11spice utility , works well! Great! > > We were thinking about doing something similar for Wayland, have you > thought how it can be done under Wayland? basically the main difference > is getting the post-compositor-buffer

[Spice-devel] [PATCH spice 3/3] build-sys: Warn on usage of unavailable glib functions

2016-12-05 Thread Pavel Grunt
It works only with glib2 >= 2.32 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index c978b924..1400c503 100644 --- a/configure.ac +++ b/configure.ac @@ -149,7 +149,10 @@ PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= $SPICE_PROTOCOL_MI

[Spice-devel] [PATCH spice 2/3] build-sys: Require GLIB 2.28

2016-12-05 Thread Pavel Grunt
We are already using it --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd78f08f..c978b924 100644 --- a/configure.ac +++ b/configure.ac @@ -148,7 +148,7 @@ SPICE_PROTOCOL_MIN_VER=0.12.12 PKG_CHECK_MODULES([SPICE_PROTOCOL], [sp

[Spice-devel] [PATCH spice 1/3] build-sys: Use variable instead of number

2016-12-05 Thread Pavel Grunt
--- configure.ac | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 4fa4c836..cd78f08f 100644 --- a/configure.ac +++ b/configure.ac @@ -148,23 +148,27 @@ SPICE_PROTOCOL_MIN_VER=0.12.12 PKG_CHECK_MODULES([SPICE_PROTOCOL], [spic

Re: [Spice-devel] [spice v1] syntax-check: Fix missing AUTHORS

2016-12-05 Thread Victor Toso
Hi, On Mon, Dec 05, 2016 at 09:39:51AM -0500, Frediano Ziglio wrote: > > > > > > From: Victor Toso > > > > > > Signed-off-by: Victor Toso > > > --- > > > .mailmap | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/.mailmap b/.mailmap > > > index c05ba00..d66229a 100644 > >

Re: [Spice-devel] [spice v1] syntax-check: Fix missing AUTHORS

2016-12-05 Thread Frediano Ziglio
> > > > From: Victor Toso > > > > Signed-off-by: Victor Toso > > --- > > .mailmap | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/.mailmap b/.mailmap > > index c05ba00..d66229a 100644 > > --- a/.mailmap > > +++ b/.mailmap > > @@ -8,3 +8,4 @@ > > > > > > > > + > > Ack

Re: [Spice-devel] [PATCH v4 06/17] sound: Implements config_socket RedChannel callback

2016-12-05 Thread Frediano Ziglio
> > On Thu, Dec 01, 2016 at 03:43:01PM -0600, Jonathon Jongsma wrote: > > On Thu, 2016-12-01 at 11:24 +, Frediano Ziglio wrote: > > > This code is the same inside __new_channel but will set the > > > RedsStream from RedChannel. > > > > Shouldn't this code be removed from __new_channel() then?

Re: [Spice-devel] [PATCH v4 06/17] sound: Implements config_socket RedChannel callback

2016-12-05 Thread Christophe Fergeau
On Thu, Dec 01, 2016 at 03:43:01PM -0600, Jonathon Jongsma wrote: > On Thu, 2016-12-01 at 11:24 +, Frediano Ziglio wrote: > > This code is the same inside __new_channel but will set the > > RedsStream from RedChannel. > > Shouldn't this code be removed from __new_channel() then? I agree that

Re: [Spice-devel] [spice v1 2/2] display-channel: Make video-codecs readwrite

2016-12-05 Thread Victor Toso
Hi, On Fri, Dec 02, 2016 at 01:09:54PM -0500, Frediano Ziglio wrote: > > Indeed, it seems that it can be improved but I'm not sure how it should > > be designed? > > > > Nowadays: > > > > host calls reds:spice_server_set_video_codecs() that calls > > reds_on_vc_change() which end up sending > > RE

Re: [Spice-devel] [qxl-wddm-dod] Added Changelog file

2016-12-05 Thread Christophe Fergeau
Hey, On Sun, Dec 04, 2016 at 06:29:12PM +0200, Yuri Benditovich wrote: > Signed-off-by: Yuri Benditovich > --- > Changelog | 7 +++ > 1 file changed, 7 insertions(+) > create mode 100644 Changelog > > diff --git a/Changelog b/Changelog > new file mode 100644 > index 000..4946ad9 > ---

Re: [Spice-devel] [spice v1 2/2] display-channel: Make video-codecs readwrite

2016-12-05 Thread Christophe Fergeau
On Fri, Dec 02, 2016 at 06:37:26PM +0100, Victor Toso wrote: > > I prefer accessors. > > Should I drop also the change from G_PARAM_WRITABLE to > G_PARAM_READWRITE or should I drop the patch entirely? You can go with both :) > > > Also streaming code should have access to this information, in a

[Spice-devel] [spice v2] display-channel: Make video-codecs property read-write

2016-12-05 Thread Victor Toso
From: Victor Toso This patch creates display_channel_get_video_codecs() helper to let stream.c get the video-codecs without accessing the internal structure of DisplayChannel. As video-codecs is a property of DisplayChannel, this change means making this property readable as well. Signed-off-by

Re: [Spice-devel] [spice v1] syntax-check: Fix missing AUTHORS

2016-12-05 Thread Frediano Ziglio
> > From: Victor Toso > > Signed-off-by: Victor Toso > --- > .mailmap | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.mailmap b/.mailmap > index c05ba00..d66229a 100644 > --- a/.mailmap > +++ b/.mailmap > @@ -8,3 +8,4 @@ > > > > + Acked-by: Frediano Ziglio Still thanks

Re: [Spice-devel] [PATCH spice 2/2] build-sys: Require GLIB 2.28

2016-12-05 Thread Christophe Fergeau
On Mon, Dec 05, 2016 at 09:10:48AM +0100, Pavel Grunt wrote: > We are already using it. > > Also add support for generating deprecation warnings for the usage > of possibly unavailable functions. Fwiw, I would have split this in 2 patches, the "also" is a strong hint ;) Christophe > --- > conf

[Spice-devel] [spice v1] syntax-check: Fix missing AUTHORS

2016-12-05 Thread Victor Toso
From: Victor Toso Signed-off-by: Victor Toso --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index c05ba00..d66229a 100644 --- a/.mailmap +++ b/.mailmap @@ -8,3 +8,4 @@ + -- 2.9.3 ___ Spice-devel mailin

Re: [Spice-devel] [PATCH qxl-wddm-dod] Implements screen to screen move correctly

2016-12-05 Thread Frediano Ziglio
ping Maybe this requires some follow ups for VgaDevice and possibly avoinind taking into account moves during mapping computation. Frediano > > Doing some fast check on Windows 8.1 you could note that > moving windows you got a weird effect were windows were a > bit misaligned. > As documented

Re: [Spice-devel] [PATCH spice 2/2] build-sys: Require GLIB 2.28

2016-12-05 Thread Frediano Ziglio
> > We are already using it. > > Also add support for generating deprecation warnings for the usage > of possibly unavailable functions. > --- > configure.ac | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 4fa4c836..af2

Re: [Spice-devel] [PATCH spice 1/2] test: Ignore too new warnings

2016-12-05 Thread Frediano Ziglio
> > There is an explicit check for the version > --- > server/tests/test-codecs-parsing.c | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Frediano Ziglio Frediano > diff --git a/server/tests/test-codecs-parsing.c > b/server/tests/test-codecs-parsing.c > index 0e23553b..c1b3276d 100644

[Spice-devel] [PATCH v5 8/8] Support QXL remove on spice_server_remove_interface

2016-12-05 Thread Frediano Ziglio
Allow to dynamically remove QXL interfaces. This could be used to support hot swapping of QXL cards. This code is actually not used in any way. QXL interfaces are destroyed by spice_server_destroy automatically. Signed-off-by: Frediano Ziglio Acked-by: Jonathon Jongsma --- server/reds.c | 7 +++

[Spice-devel] [PATCH v5 1/8] Call parent finalize at the and of display_channel_finalize

2016-12-05 Thread Frediano Ziglio
Make finalization of DisplayChannel consistent with other code. Signed-off-by: Frediano Ziglio --- server/display-channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/display-channel.c b/server/display-channel.c index 061a99d..bd9d2be 100644 --- a/server/displ

[Spice-devel] [PATCH v5 4/8] Free main_dispatcher in spice_server_destroy

2016-12-05 Thread Frediano Ziglio
Avoid leaking it. Signed-off-by: Frediano Ziglio --- server/reds.c | 5 + 1 file changed, 5 insertions(+) diff --git a/server/reds.c b/server/reds.c index 95295c8..d350331 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3602,6 +3602,11 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(Spic

[Spice-devel] [PATCH v5 2/8] Free inputs_channel in spice_server_destroy

2016-12-05 Thread Frediano Ziglio
Avoid leaking this channel. Signed-off-by: Frediano Ziglio --- server/reds.c | 4 1 file changed, 4 insertions(+) diff --git a/server/reds.c b/server/reds.c index 479a815..17e5ada 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3592,6 +3592,10 @@ SPICE_GNUC_VISIBLE void spice_server_des

[Spice-devel] [PATCH v5 3/8] Free QXL instances in spice_server_destroy

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/reds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/reds.c b/server/reds.c index 17e5ada..95295c8 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3592,6 +3592,8 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds) se

[Spice-devel] [PATCH v5 7/8] Free properly primary surface during replay

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio Acked-by: Pavel Grunt --- server/red-replay-qxl.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c index 2176068..aeaa545 100644 --- a/server/red-replay-qxl.c +++ b/server/red-replay-qxl.c @@ -48,6 +48,7 @@

[Spice-devel] [PATCH v5 5/8] replay: Free spice server to detect leaks

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio Acked-by: Pavel Grunt --- server/tests/replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/replay.c b/server/tests/replay.c index f32fa2f..23d4125 100644 --- a/server/tests/replay.c +++ b/server/tests/replay.c @@ -221,7 +221,6

[Spice-devel] [PATCH v5 6/8] Free replay queues

2016-12-05 Thread Frediano Ziglio
There could be still some data pending. Signed-off-by: Frediano Ziglio Acked-by: Pavel Grunt --- server/tests/replay.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/server/tests/replay.c b/server/tests/replay.c index 23d4125..8ec65d6 100644 --- a/serve

[Spice-devel] [PATCH v5 0/8] Start cleaning objects on destruction

2016-12-05 Thread Frediano Ziglio
These patches start destroying objects upon destruction. Lot of the objects are just allocated but never freed. This however make hardier to understand automatically leaks as objects are still linked together. Currently spice_server_destroy is not called so objects are freed only when program ends

[Spice-devel] [PATCH v7 10/12] sound: Use default message handler if possible

2016-12-05 Thread Frediano Ziglio
red_channel_client_handle_message can handle base messages so reuse it. Signed-off-by: Frediano Ziglio --- server/sound.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/server/sound.c b/server/sound.c index ed20125..04e08a2 100644 --- a/server/sound.c +++ b/

[Spice-devel] [PATCH v7 09/12] sound: Reuse code to set volume and mute

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/sound.c | 51 +-- 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/server/sound.c b/server/sound.c index 191e4fe..ed20125 100644 --- a/server/sound.c +++ b/server/sound.c @@ -824,12 +824,11 @@

[Spice-devel] [PATCH v7 11/12] sound: Make clear active and client_active are boolean

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/sound.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/sound.c b/server/sound.c index 04e08a2..de2f0b3 100644 --- a/server/sound.c +++ b/server/sound.c @@ -93,8 +93,8 @@ GType snd_channel_client_get_type(void) G_

[Spice-devel] [PATCH v7 01/12] sound: Implements config_socket RedChannel callback

2016-12-05 Thread Frediano Ziglio
This code is the same inside __new_channel but will set the RedsStream from RedChannel. Signed-off-by: Frediano Ziglio --- server/sound.c | 46 +- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/server/sound.c b/server/sound.c index 534f2

[Spice-devel] [PATCH v7 12/12] sound: Use memcpy instead of manually copy volume array

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/sound.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/sound.c b/server/sound.c index de2f0b3..7b35c87 100644 --- a/server/sound.c +++ b/server/sound.c @@ -386,7 +386,6 @@ static int snd_playback_send_migrate(PlaybackChan

[Spice-devel] [PATCH v7 02/12] sound: Convert SndChannelClient to GObject

2016-12-05 Thread Frediano Ziglio
This patch is quite huge but have some benefits: - reduce dependency (DummyChannel* and some RedChannelClient internals); - reuse RedChannelClient instead of reading from the RedsStream directly. You can see that SndChannelClient has much less field as the code to read/write from/to client is re

[Spice-devel] [PATCH v7 04/12] Make RedChannelClient::incoming private

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/red-channel-client-private.h | 11 +++ server/red-channel-client.c | 12 ++-- server/red-channel-client.h | 13 - 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/server/red-channel-client-privat

[Spice-devel] [PATCH v7 05/12] sound: Free more on SndChannel finalize

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/sound.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/server/sound.c b/server/sound.c index d3b4bbd..2a4472c 100644 --- a/server/sound.c +++ b/server/sound.c @@ -1433,10 +1433,26 @@ snd_channel_init(SndChannel *s

[Spice-devel] [PATCH v7 07/12] sound: Reuse code for snd_set_{playback, record}_peer

2016-12-05 Thread Frediano Ziglio
Almost identical beside the type. Signed-off-by: Frediano Ziglio --- server/sound.c | 53 +++ 1 file changed, 16 insertions(+), 37 deletions(-) diff --git a/server/sound.c b/server/sound.c index fed6062..a4313c4 100644 --- a/server/sound.c +++ b/s

[Spice-devel] [PATCH v7 06/12] sound: Use default disconnect for client channels

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/sound.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/server/sound.c b/server/sound.c index 2a4472c..fed6062 100644 --- a/server/sound.c +++ b/server/sound.c @@ -816,23 +816,6 @@ snd_channel_client_release_recv_buf(RedChannelClie

[Spice-devel] [PATCH v7 08/12] sound: Reuse code for migrating client channels

2016-12-05 Thread Frediano Ziglio
We support only a single client so don't waste code just to check this. The worst stuff can happen is that we'll migrate multiple connections. Signed-off-by: Frediano Ziglio --- server/sound.c | 35 +-- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git

[Spice-devel] [PATCH v7 03/12] Remove DummyChannel* objects

2016-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/Makefile.am| 4 +- server/dummy-channel-client.c | 138 +--- server/dummy-channel-client.h | 64 + server/dummy-channel.c| 94 + server/dummy-channel.h

[Spice-devel] [PATCH v7 00/12] Remove DummyChannel* objects

2016-12-05 Thread Frediano Ziglio
These objects were used by the sound channel as this channel read/write to/from client directly. This make the code of this channel quite different from the other ones. Also this reduce code duplication from RedChannelClient and increase encapsulation. Also there are multiple cleanup following this

Re: [Spice-devel] Postcopy+spice crash

2016-12-05 Thread Uri Lublin
On 12/05/2016 11:46 AM, Dr. David Alan Gilbert wrote: * Gerd Hoffmann (kra...@redhat.com) wrote: On Fr, 2016-12-02 at 17:44 +, Dr. David Alan Gilbert wrote: Hi Gerd, I've got a moderately repeatable crash with spice playing a video + postcopy. Some of the time I just get a warning (that

Re: [Spice-devel] [spice v2 1/2] display-channel: reuse function to set video codecs

2016-12-05 Thread Frediano Ziglio
> From: Victor Toso > > Including g_clear_pointer() in glib-compat.h and using it to avoid > warnings in odd situations. > > Signed-off-by: Victor Toso Acked > --- > server/display-channel.c | 8 +++- > server/glib-compat.h | 19 +++ > 2 files changed, 22 insertions(

Re: [Spice-devel] Postcopy+spice crash

2016-12-05 Thread Dr. David Alan Gilbert
* Gerd Hoffmann (kra...@redhat.com) wrote: > On Fr, 2016-12-02 at 17:44 +, Dr. David Alan Gilbert wrote: > > Hi Gerd, > > I've got a moderately repeatable crash with spice playing > > a video + postcopy. Some of the time I just get a warning > > (that I also get in precopy) but sometimes it

Re: [Spice-devel] [PATCH spice-server] smartcard: Optimise sending data

2016-12-05 Thread Pavel Grunt
On Fri, 2016-12-02 at 11:31 -0500, Frediano Ziglio wrote: > > > > As data is packae in a single piece of memory send it > > altogether. > > > > typo: packaged > > > Signed-off-by: Frediano Ziglio > > --- > >  server/smartcard-channel-client.c | 5 + > >  1 file changed, 1 insertion(+), 4 de

Re: [Spice-devel] Postcopy+spice crash

2016-12-05 Thread Gerd Hoffmann
On Fr, 2016-12-02 at 17:44 +, Dr. David Alan Gilbert wrote: > Hi Gerd, > I've got a moderately repeatable crash with spice playing > a video + postcopy. Some of the time I just get a warning > (that I also get in precopy) but sometimes it turns into > a backtrace; > > This is: > f24 guest

[Spice-devel] [PATCH spice 1/2] test: Ignore too new warnings

2016-12-05 Thread Pavel Grunt
There is an explicit check for the version --- server/tests/test-codecs-parsing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/tests/test-codecs-parsing.c b/server/tests/test-codecs-parsing.c index 0e23553b..c1b3276d 100644 --- a/server/tests/test-codecs-parsing.c +++ b/server/tes

[Spice-devel] [PATCH spice 2/2] build-sys: Require GLIB 2.28

2016-12-05 Thread Pavel Grunt
We are already using it. Also add support for generating deprecation warnings for the usage of possibly unavailable functions. --- configure.ac | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 4fa4c836..af271e46 100644 --- a/conf