Re: [Spice-devel] GStreamer's zero-copy code is broken

2017-03-02 Thread Francois Gouget
On Thu, 2 Mar 2017, Frediano Ziglio wrote: [...] > Before I forgot this. > > Looks like GStreamer when you call gst_buffer_add_video_meta_full > assume that buffer is contiguous. The 8 pixel shift (more or less) > you can see are artifacts due to how the guest send the frames but > basically are b

[Spice-devel] KVM-SPICE: View youtube videos smoothly

2017-03-02 Thread Oscar Segarra
Hi, In my environment I have a W10 guest running on a centos 7 KVM host. I have installed the following QXL Video driver: [image: Imágenes integradas 1] But when I try to see (on LAN) a youtube video, it doesn't play smoothly, even video and sound stops for a while and continues a little bit la

Re: [Spice-devel] [PATCH v2 2/2] display-channel: Handle timeout for joining drawables

2017-03-02 Thread Jonathon Jongsma
I'm trying to decide if there's any benefit to splitting this out from the other patch. I'm leaning toward squashing them. On Thu, 2017-03-02 at 11:34 +, Frediano Ziglio wrote: > The previous patch join correctly the commands however if there > are no more commands the command joined is delaye

Re: [Spice-devel] [PATCH v2 1/2] display-channel: Join drawables to improve rhel7 behaviour

2017-03-02 Thread Jonathon Jongsma
On Thu, 2017-03-02 at 11:34 +, Frediano Ziglio wrote: > Due to the way RHEL7 works the images came out from guest using > multiple > commands. This increase the commands to the client and cause the > video code to create and handle multiple streams creating some > visual glitches. > This patch

Re: [Spice-devel] [PATCH v2 0/2] RHEL7 improvements

2017-03-02 Thread Jonathon Jongsma
On Thu, 2017-03-02 at 11:34 +, Frediano Ziglio wrote: > These 2 patches attempt to join images split by RHEL7 graphic > stack (Mesa) decreasing commands handled by spice-server. > > You can see the difference between the 2 video: > - https://www.youtube.com/watch?v=OarV6zUmUdg (before) > - htt

[Spice-devel] [PATCH spice-server] Revert "gstreamer: Avoid memory copy if strides are different"

2017-03-02 Thread Frediano Ziglio
This reverts commit c3d237075b994fe67e58f2b3164cb579e6f4. --- server/gstreamer-encoder.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c index 991eb51..df54cad 100644 --- a/server/gstreamer-

[Spice-devel] [RFC spice-gtk 3/3] just disable usbredir compression

2017-03-02 Thread Snir Sheriber
--- src/channel-usbredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c index fef62ce..318adf1 100644 --- a/src/channel-usbredir.c +++ b/src/channel-usbredir.c @@ -282,7 +282,7 @@ void spice_usbredir_channel_set_context(SpiceU

[Spice-devel] [RFC spice-common] Adding compressed message to base channel

2017-03-02 Thread Snir Sheriber
--- spice.proto | 4 1 file changed, 4 insertions(+) diff --git a/spice.proto b/spice.proto index e841272..3cad253 100644 --- a/spice.proto +++ b/spice.proto @@ -188,6 +188,8 @@ channel BaseChannel { Data list; /* the msg body is SpiceSubMessageList */ +CompressedData compressed

[Spice-devel] [RFC protocol 2/2] Adding LZ4 compression common caps and LZ4 stream type

2017-03-02 Thread Snir Sheriber
Assuming LZ4 capabilities could handle both LZ4 stream message and regular LZ4 compressed message --- spice/enums.h| 1 + spice/protocol.h | 1 + 2 files changed, 2 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index a931497..136813c 100644 --- a/spice/enums.h +++ b/spice/enums.h @

[Spice-devel] [RFC spice-gtk 2/3] Sending LZ4 compressed msgs over selected channels

2017-03-02 Thread Snir Sheriber
If channel number is included in the CHANNEL_COMPRESS environment variable, LZ4 compression will be applied on the channel messages if possible. First LZ4 stream compression is trying to be applied, if message size is too large, regular LZ4 compression is applied, in stream compression mode messag

[Spice-devel] [RFC protocol 1/2] Adding compressed data message to base channel

2017-03-02 Thread Snir Sheriber
--- spice/enums.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spice/enums.h b/spice/enums.h index 0074b0f..a931497 100644 --- a/spice/enums.h +++ b/spice/enums.h @@ -436,6 +436,7 @@ enum { SPICE_MSG_DISCONNECTING, SPICE_MSG_NOTIFY, SPICE_MSG_LIST, +SPICE_MSG_COMPRESSED

[Spice-devel] [RFC server 1/3] Handle LZ4 compressed messages in rcc

2017-03-02 Thread Snir Sheriber
If LZ4 lib exists, handle LZ4 compressed & stream compressed messages in any channel In stream compression mode decompressed messages are being saved sequentially in a pre-allocated buffer which will be utilized by the decompression mechanism in the following decompressions Update spice-common --

[Spice-devel] [RFC spice-gtk 1/3] Handle LZ4 compressed msgs in any channel

2017-03-02 Thread Snir Sheriber
If LZ4 lib exists, handle LZ4 compressed & stream compressed messages in any channel In stream compression mode decompressed messages are being saved sequentially in a pre-allocated buffer which will be utilized by the decompression mechanism in the following decompressions Update spice-common --

[Spice-devel] [RFC server 3/3] just disable usbredir compression

2017-03-02 Thread Snir Sheriber
--- server/spicevmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index abb0b52..074a8cf 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -207,7 +207,7 @@ red_vmc_channel_constructed(GObject *object) stat_init_counter(&sel

[Spice-devel] [RFC server 2/3] Sending LZ4 compressed msgs over selected channels

2017-03-02 Thread Snir Sheriber
If channel number is included in the CHANNEL_COMPRESS environment variable, LZ4 compression will be applied on the channel messages if possible. First LZ4 stream compression is trying to be applied, if message size is too large, regular LZ4 compression is applied, in stream compression mode messag

[Spice-devel] [RFC] Spice channels compression

2017-03-02 Thread Snir Sheriber
This series of patches allows compression of messages over selected spice channels Few notes: *Currently lz4 stream and regular compression are in use for small and large messages accordingly. packets are being sent in common msg type that was added, and it utilize previous compressed message str

Re: [Spice-devel] GStreamer's zero-copy code is broken

2017-03-02 Thread Frediano Ziglio
> > On Fri, 24 Feb 2017, Francois Gouget wrote: > > > On Fri, 24 Feb 2017, Christophe de Dinechin wrote: > > [...] > > > Looking at the patch, I wonder why we pass an offset and a stride from > > > different sources (offset is from the source, but stride is from the > > > bitmap)? Shouldn’t we us

Re: [Spice-devel] How to send a custom resolution message to windows/linux guest vdagent

2017-03-02 Thread Thiago Nascimento Araujo
Hi, First of all, thank you all for the quick answers. The cut off message was my fault, sorry about that. I am trying to understand this: Lets say I am connected to a win/lnx guest though remote-viewer and my remote-viewer is a window with the dimensions 1440x900, so: When I resize the windo

Re: [Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Jonathon Jongsma
Looks fine to me, with potential changes from TYPE_RED_ to RED_TYPE_ due to changes in previous patches. Acked-by: Jonathon Jongsma On Thu, 2017-03-02 at 12:30 +, Frediano Ziglio wrote: > For each channel there are two set of capabilities, one > for the common ones and one for the specific

Re: [Spice-devel] [PATCH spice-server v2] record: Allocate recording file globally from reds.c

2017-03-02 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-03-02 at 15:28 +, Frediano Ziglio wrote: > Allows to use recording function for multiple purposes. > This will allow to register multiple screen VM or recording > additional stuff like sound. > > Signed-off-by: Frediano Ziglio > --- >  server/red-wor

Re: [Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Frediano Ziglio
> > Looks fine to me, with potential changes from TYPE_RED_ to RED_TYPE_ > due to changes in previous patches. > > Acked-by: Jonathon Jongsma > Done (both) Frediano ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedes

[Spice-devel] [PATCH spice-server v2] record: Allocate recording file globally from reds.c

2017-03-02 Thread Frediano Ziglio
Allows to use recording function for multiple purposes. This will allow to register multiple screen VM or recording additional stuff like sound. Signed-off-by: Frediano Ziglio --- server/red-worker.c | 6 +- server/reds-private.h | 2 ++ server/reds.c | 18 ++ ser

Re: [Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 10:15:15AM -0500, Frediano Ziglio wrote: > > Not really a big fan of having this kind of functions because we use > > stack-allocated struct rather than just allocating a new struct. This > > function should only be used on non-initialized RedChannelCapabilities > > (this wi

Re: [Spice-devel] [PATCH spice-server v4 2/3] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Jonathon Jongsma
On Thu, 2017-03-02 at 16:04 +0100, Christophe Fergeau wrote: > On Thu, Mar 02, 2017 at 09:55:46AM -0500, Frediano Ziglio wrote: > > > > +/* GObject type that can be used to box RedChannelCapabilities > > > > */ > > > > +extern GType red_channel_capabilities_type; > > > > +#define TYPE_RED_CHANNEL_C

Re: [Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Frediano Ziglio
> > On Thu, Mar 02, 2017 at 12:30:26PM +, Frediano Ziglio wrote: > > diff --git a/server/red-worker.c b/server/red-worker.c > > index 8735cd1..fbb7070 100644 > > --- a/server/red-worker.c > > +++ b/server/red-worker.c > > @@ -736,7 +736,7 @@ static void handle_dev_display_connect(void *opaque,

Re: [Spice-devel] [PATCH spice-server 3/3] record: Allocate recording file globally from reds.c

2017-03-02 Thread Jonathon Jongsma
On Thu, 2017-03-02 at 10:38 +, Frediano Ziglio wrote: > Allows to use recording function for multiple purposes. > This will allow to register multiple screen VM or recording > additional stuff like sound. > > Signed-off-by: Frediano Ziglio > --- >  server/red-worker.c   |  6 +- >  server/

Re: [Spice-devel] How to send a custom resolution message to windows/linux guest vdagent

2017-03-02 Thread Jonathon Jongsma
On Thu, 2017-03-02 at 03:58 -0300, Thiago Nascimento Araujo wrote: > Hello, > > Is there a way to send a spice message, connect to pipe, or any other > method to contact vdservice/vdagent to create/simulate a resize to an > arbitrary resolution or full screen effect caused by remote-viewer? > > A

Re: [Spice-devel] [PATCH spice-server 2/3] record: Use reference counting for recording

2017-03-02 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-03-02 at 10:38 +, Frediano Ziglio wrote: > Allows to share the recording object. > > Signed-off-by: Frediano Ziglio > --- >  server/red-record-qxl.c | 19 ++- >  server/red-record-qxl.h |  3 ++- >  server/red-worker.c |  2 +- >  3

Re: [Spice-devel] [PATCH spice-server 1/3] record: Synchronize write to record file

2017-03-02 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-03-02 at 10:38 +, Frediano Ziglio wrote: > The synchronization code is required to avoid mixing writing > from multiple threads. > Following patches will add this feature. > > Signed-off-by: Frediano Ziglio > --- >  server/red-record-qxl.c | 18 +

Re: [Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 12:30:26PM +, Frediano Ziglio wrote: > diff --git a/server/red-worker.c b/server/red-worker.c > index 8735cd1..fbb7070 100644 > --- a/server/red-worker.c > +++ b/server/red-worker.c > @@ -736,7 +736,7 @@ static void handle_dev_display_connect(void *opaque, void > *paylo

Re: [Spice-devel] [PATCH spice-server v4 2/3] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 09:55:46AM -0500, Frediano Ziglio wrote: > > > +/* GObject type that can be used to box RedChannelCapabilities */ > > > +extern GType red_channel_capabilities_type; > > > +#define TYPE_RED_CHANNEL_CAPABILITIES red_channel_capabilities_type > > > > RED_TYPE_CHANNEL_CAPABILIT

Re: [Spice-devel] [spice v11] dcc: handle preferred video codec message

2017-03-02 Thread Frediano Ziglio
> > From: Victor Toso > > [0] SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE > > This message provides a list of video codecs based on client's order > of preference. > > We duplicate the video codecs array from reds.c and sort it using the > order of codecs as reference. > > This message will

Re: [Spice-devel] [PATCH spice-server v4 2/3] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Frediano Ziglio
> > On Thu, Mar 02, 2017 at 12:30:25PM +, Frediano Ziglio wrote: > > Add function to initialize and destroy this type. > > Add GType type for boxing it. > > These changes a in preparation for next patch. > > > > Signed-off-by: Frediano Ziglio > > --- > > server/Makefile.am|

Re: [Spice-devel] [PATCH spice-server v4 2/3] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 12:30:25PM +, Frediano Ziglio wrote: > Add function to initialize and destroy this type. > Add GType type for boxing it. > These changes a in preparation for next patch. > > Signed-off-by: Frediano Ziglio > --- > server/Makefile.am| 2 ++ > server/red

Re: [Spice-devel] [PATCH spice-server 3/3] tests: Reuse GLib compatibility code

2017-03-02 Thread Frediano Ziglio
> > On Thu, Mar 02, 2017 at 01:50:03PM +, Frediano Ziglio wrote: > > Instead of disabling the code use the compatibility functions. > > > > Signed-off-by: Frediano Ziglio > > --- > > server/tests/test-codecs-parsing.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > >

Re: [Spice-devel] [PATCH spice-server 3/3] tests: Reuse GLib compatibility code

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 01:50:03PM +, Frediano Ziglio wrote: > Instead of disabling the code use the compatibility functions. > > Signed-off-by: Frediano Ziglio > --- > server/tests/test-codecs-parsing.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/server/t

Re: [Spice-devel] [PATCH spice-server 2/3] tests: Move some specific GLib compatibility to compatibility file

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 01:50:02PM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/glib-compat.h | 8 > server/tests/test-codecs-parsing.c | 6 +- > server/tests/test-leaks.c | 7 +-- > server/tests/test-options.c|

Re: [Spice-devel] [PATCH spice-server 1/3] tests: Move some glib compatibility code to a separate file

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 01:50:01PM +, Frediano Ziglio wrote: > Allow to reuse this code in other tests. > > Signed-off-by: Frediano Ziglio > --- > server/glib-compat.h| 9 > server/tests/Makefile.am| 1 + > server/tests/test-glib-compat.c | 112 > +++

Re: [Spice-devel] [spice-gtk v3 4/6] spice_channel_read_wire: move variables to internal scope

2017-03-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, Feb 28, 2017 at 12:21:49PM +0100, Victor Toso wrote: > From: Victor Toso > > And avoid single line if plus comment > > Signed-off-by: Victor Toso > --- > src/spice-channel.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git

Re: [Spice-devel] [spice-gtk v4 3/6] spice_channel_read_wire: prefer while(TRUE) instead of goto

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 03:08:11PM +0100, Victor Toso wrote: > From: Victor Toso > > Although this is likely to be a single loop iteration based on the > implementation of g_coroutine_socket_wait(), using goto to reiterate > in the code should be avoided based on spice style recommendation. > >

[Spice-devel] [spice-gtk v4 3/6] spice_channel_read_wire: prefer while(TRUE) instead of goto

2017-03-02 Thread Victor Toso
From: Victor Toso Although this is likely to be a single loop iteration based on the implementation of g_coroutine_socket_wait(), using goto to reiterate in the code should be avoided based on spice style recommendation. This also make it easier to add follow up changes that can increase the loo

Re: [Spice-devel] Multi Console

2017-03-02 Thread Pavel Grunt
On Wed, 2017-03-01 at 10:21 +0100, Christian Rilke wrote: > Hi, >   > first think i have to say is THANK YOU! Spice is the best think > happened to the qmeu community since we need graphical consoles. >   > I just have a short question about multiple console feature. I read > that is still experime

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 02:28:37PM +0100, Christophe Fergeau wrote: > On Thu, Mar 02, 2017 at 02:05:21PM +0100, Victor Toso wrote: > > > and the while (TRUE) is equally odd if you ask me (mostly because you > > > said it would loop at most once anyway). > > > > The iteration should happen only

Re: [Spice-devel] [PATCH v4] Switch over to using keycodemapdb submodule

2017-03-02 Thread Pavel Grunt
On Thu, 2017-03-02 at 10:07 +, Daniel P. Berrange wrote: > Consume the keymaps.csv file from a git submodule instead of having > a private copy. This makes it easier to ensure all users of the > keymap > (libvirt, gtk-vnc, spice-gtk, and eventually QEMU) to have a > consistent > set of data. >

[Spice-devel] [PATCH spice-server 2/3] tests: Move some specific GLib compatibility to compatibility file

2017-03-02 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/glib-compat.h | 8 server/tests/test-codecs-parsing.c | 6 +- server/tests/test-leaks.c | 7 +-- server/tests/test-options.c| 7 +-- server/tests/test-stat-file.c | 10 +- 5 files change

[Spice-devel] [PATCH spice-server 3/3] tests: Reuse GLib compatibility code

2017-03-02 Thread Frediano Ziglio
Instead of disabling the code use the compatibility functions. Signed-off-by: Frediano Ziglio --- server/tests/test-codecs-parsing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/tests/test-codecs-parsing.c b/server/tests/test-codecs-parsing.c index 571d8ab..8

[Spice-devel] [PATCH spice-server 1/3] tests: Move some glib compatibility code to a separate file

2017-03-02 Thread Frediano Ziglio
Allow to reuse this code in other tests. Signed-off-by: Frediano Ziglio --- server/glib-compat.h| 9 server/tests/Makefile.am| 1 + server/tests/test-glib-compat.c | 112 server/tests/test-vdagent.c | 92 +

Re: [Spice-devel] [PATCH spice-gtk v2] spicy: Add dialog for precise resizing

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 02:05:06PM +0100, Pavel Grunt wrote: > It helps when testing whether the guest resizes to requested resolution Yes it does, LGTM Acked-by: Victor Toso > --- > tools/spicy.c | 62 > +++ > 1 file changed, 62 ins

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 02:05:21PM +0100, Victor Toso wrote: > > and the while (TRUE) is equally odd if you ask me (mostly because you > > said it would loop at most once anyway). > > The iteration should happen only once because g_coroutine_socket_wait() > does wait G_IO_IN/G_IO_OUT. Its very unl

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 01:35:32PM +0100, Christophe Fergeau wrote: > The code is preexisting Hm, so I should avoid reworking code that does not fit in newer style or standards? > it's arguably error handling Agreed > and the while (TRUE) is equally odd if you ask me (mostly because you >

[Spice-devel] [PATCH spice-gtk v2] spicy: Add dialog for precise resizing

2017-03-02 Thread Pavel Grunt
It helps when testing whether the guest resizes to requested resolution --- tools/spicy.c | 62 +++ 1 file changed, 62 insertions(+) diff --git a/tools/spicy.c b/tools/spicy.c index ce6b40b..c47e208 100644 --- a/tools/spicy.c +++ b/tools/spi

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 11:46:34AM +0100, Victor Toso wrote: > Hi, > > Thanks for taking a look :) > > On Thu, Mar 02, 2017 at 10:59:12AM +0100, Christophe Fergeau wrote: > > On Thu, Mar 02, 2017 at 10:23:45AM +0100, Victor Toso wrote: > > > Hi, > > > > > > On Tue, Feb 28, 2017 at 12:21:45PM +010

[Spice-devel] [PATCH spice-server v4 3/3] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Frediano Ziglio
For each channel there are two set of capabilities, one for the common ones and one for the specific ones. A single set were almost always passed using 2 arguments, a number of elements and an array but then before using these were converted to a GArray. Use a single structure (already available) t

[Spice-devel] [PATCH spice-server v4 2/3] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Frediano Ziglio
Add function to initialize and destroy this type. Add GType type for boxing it. These changes a in preparation for next patch. Signed-off-by: Frediano Ziglio --- server/Makefile.am| 2 ++ server/red-channel-capabilities.c | 68 +++ server/red-

[Spice-devel] [PATCH spice-server v4 0/3] Change the way we pass capabilities

2017-03-02 Thread Frediano Ziglio
This patchset attempt to pass capabilities using a single RedChannelCapabilities (already existing) structure. Changes since v3: - revert some indentation; - define and use a TYPE_RED_CHANNEL_CAPABILITIES; - minor style changes. Changes since v2: - merge GArray and RedChannelCapabilites usage; -

[Spice-devel] [PATCH spice-server v4 1/3] red-channel-client: Make capabilities property write only

2017-03-02 Thread Frediano Ziglio
These properties are not read and code is broken (the content of the array would be uninitialized). Signed-off-by: Frediano Ziglio Acked-by: Christophe Fergeau --- server/red-channel-client.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/server/red-ch

Re: [Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 07:08:08AM -0500, Frediano Ziglio wrote: > Does it actually make sense the if? > Maybe free is enough, if the pointer is valid is supposed to > came from a malloc. Ah right, wanted to tell to drop the if(), but then forgot :) Christophe signature.asc Description: PGP sig

Re: [Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 07:03:55AM -0500, Frediano Ziglio wrote: > I used TYPE_RED_CHANNEL_CAPABILITIES define, seems more consistent with > other code and keep the "RedChannel" together. I disagree, RedChannel is for example RED_TYPE_CHANNEL, not TYPE_RED_CHANNEL. The way I see it is that 'red' (

Re: [Spice-devel] [PATCH spice-server v3 5/5] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 09:16:11AM +, Frediano Ziglio wrote: > For each channel there are two set of capabilities, one > for the common ones and one for the specific ones. > A single set were almost always passed using 2 arguments, > a number of elements and an array but then before using > the

Re: [Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Frediano Ziglio
> > On Thu, Mar 02, 2017 at 09:16:10AM +, Frediano Ziglio wrote: > > Add function to initialize and destroy this type. > > Add GObject type for boxing it. > > Nit: I would not call 'GObject type' a GType/GBoxed GObject. > > > > These changes a in preparation for next patch. > > > > Signed-

Re: [Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Frediano Ziglio
> > On Thu, Mar 02, 2017 at 09:16:10AM +, Frediano Ziglio wrote: > > Add function to initialize and destroy this type. > > Add GObject type for boxing it. > > Nit: I would not call 'GObject type' a GType/GBoxed GObject. > > > > These changes a in preparation for next patch. > > > > Signed-

Re: [Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 09:16:10AM +, Frediano Ziglio wrote: > Add function to initialize and destroy this type. > Add GObject type for boxing it. Nit: I would not call 'GObject type' a GType/GBoxed GObject. > These changes a in preparation for next patch. > > Signed-off-by: Frediano Ziglio

Re: [Spice-devel] [PATCH spice-server v3 3/5] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Christophe Fergeau
I'd merge that with the next commit. On Thu, Mar 02, 2017 at 09:16:09AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/Makefile.am| 2 ++ > server/red-channel-capabilities.c | 22 ++ > server/red-channel-capabilities.h | 36

Re: [Spice-devel] [PATCH spice-server v3 2/5] red-channel-client: Make capabilities property write only

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 09:16:08AM +, Frediano Ziglio wrote: > These properties are not read and code is broken (you would get > uninitialized values). Acked-by: Christophe Fergeau (maybe the more specific "the content of the array would be uninitialized" rather than "you would get uninitial

Re: [Spice-devel] [PATCH spice-server v3 1/5] red-channel: Remove unused type definition

2017-03-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Thu, Mar 02, 2017 at 09:16:07AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > I don't consider this patch really specific to this set Yup, definitely not. > --- > server/red-channel.c | 1 - > 1 file changed, 1 deletion(-) > > diff --

[Spice-devel] [PATCH v2 0/2] RHEL7 improvements

2017-03-02 Thread Frediano Ziglio
These 2 patches attempt to join images split by RHEL7 graphic stack (Mesa) decreasing commands handled by spice-server. You can see the difference between the 2 video: - https://www.youtube.com/watch?v=OarV6zUmUdg (before) - https://www.youtube.com/watch?v=5fTdCCbFeCg (after) These video are reali

[Spice-devel] [PATCH v2 2/2] display-channel: Handle timeout for joining drawables

2017-03-02 Thread Frediano Ziglio
The previous patch join correctly the commands however if there are no more commands the command joined is delayed till new commands arrive. This patch introduce a timeout (currently 10 ms) after the command is executed. Signed-off-by: Frediano Ziglio --- server/display-channel-private.h | 4 ++

[Spice-devel] [PATCH v2 1/2] display-channel: Join drawables to improve rhel7 behaviour

2017-03-02 Thread Frediano Ziglio
Due to the way RHEL7 works the images came out from guest using multiple commands. This increase the commands to the client and cause the video code to create and handle multiple streams creating some visual glitches. This patch attempt to detect and join the multiple commands to avoid these issues

Re: [Spice-devel] [PATCH spice-server] tests: Allows to detect loop leaks in test-leaks

2017-03-02 Thread Frediano Ziglio
> > I'd just squash this one in the previous patch (if you think it's > needed, with a note in the commit log that the added > basic_event_loop_destroy() addition allows to see that this leak is > gone). But feel free to keep it separate if you think it's best. > > Acked-by: Christophe Fergeau >

Re: [Spice-devel] [PATCH spice-server] tests: Allows to detect loop leaks in test-leaks

2017-03-02 Thread Christophe Fergeau
I'd just squash this one in the previous patch (if you think it's needed, with a note in the commit log that the added basic_event_loop_destroy() addition allows to see that this leak is gone). But feel free to keep it separate if you think it's best. Acked-by: Christophe Fergeau Christophe On

Re: [Spice-devel] [PATCH spice-server] main-dispatcher: Remove watch leak

2017-03-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Mar 01, 2017 at 05:09:54PM +, Frediano Ziglio wrote: > Watch was added but never removed. > > Signed-off-by: Frediano Ziglio > --- > server/main-dispatcher.c | 20 > 1 file changed, 16 insertions(+), 4 deletions(-) > > diff --git

Re: [Spice-devel] [PATCH spice-gtk] spicy: Add dialog for precise resizing

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 10:49:24AM +0100, Pavel Grunt wrote: > It helps when testing whether the guest resizes to requested resolution > > Also it gives spicy a basic multimonitor support 1-) IMHO we should enable multi monitor elsewhere 2-) The switch should keep the state of the resizing bo

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Victor Toso
Hi, Thanks for taking a look :) On Thu, Mar 02, 2017 at 10:59:12AM +0100, Christophe Fergeau wrote: > On Thu, Mar 02, 2017 at 10:23:45AM +0100, Victor Toso wrote: > > Hi, > > > > On Tue, Feb 28, 2017 at 12:21:45PM +0100, Victor Toso wrote: > > > From: Victor Toso > > > > > > Hi, > > > > > > v2->

Re: [Spice-devel] [PATCH spice-server] Release cursor as soon as possible

2017-03-02 Thread Christophe Fergeau
On Wed, Mar 01, 2017 at 11:54:20AM -0500, Frediano Ziglio wrote: > > > > On Tue, Feb 28, 2017 at 03:20:09PM +, Frediano Ziglio wrote: > > > Cursor resources (basically the shape of it) was retained till > > > it was used however it was copied so there were no reason to not release > > > this r

[Spice-devel] [PATCH spice-server 3/3] record: Allocate recording file globally from reds.c

2017-03-02 Thread Frediano Ziglio
Allows to use recording function for multiple purposes. This will allow to register multiple screen VM or recording additional stuff like sound. Signed-off-by: Frediano Ziglio --- server/red-worker.c | 6 +- server/reds-private.h | 2 ++ server/reds.c | 17 + serv

[Spice-devel] [PATCH spice-server 2/3] record: Use reference counting for recording

2017-03-02 Thread Frediano Ziglio
Allows to share the recording object. Signed-off-by: Frediano Ziglio --- server/red-record-qxl.c | 19 ++- server/red-record-qxl.h | 3 ++- server/red-worker.c | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/server/red-record-qxl.c b/server/red-recor

[Spice-devel] [PATCH spice-server 1/3] record: Synchronize write to record file

2017-03-02 Thread Frediano Ziglio
The synchronization code is required to avoid mixing writing from multiple threads. Following patches will add this feature. Signed-off-by: Frediano Ziglio --- server/red-record-qxl.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/server/red-record-qxl.c

Re: [Spice-devel] [spice-gtk v2] spicy: keep status of mouse/agent on server mode

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 10:48:23AM +0100, Christophe Fergeau wrote: > missing log.. Sorry, I've improved it in the v3 (sending it with the other related patches as well) > > Christophe > > On Thu, Mar 02, 2017 at 10:45:15AM +0100, Victor Toso wrote: > > From: Victor Toso > > > > Signed-off

[Spice-devel] [spice-gtk v3 1/3] spicy: keep information on status label in server mode

2017-03-02 Thread Victor Toso
From: Victor Toso So we can still check the agent status while mouse is in server mode. Signed-off-by: Victor Toso --- tools/spicy.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/spicy.c b/tools/spicy.c index ce6b40b..112312c 100644 --- a/tools/spic

[Spice-devel] [spice-gtk v3 3/3] spicy: improve status label with stream information

2017-03-02 Thread Victor Toso
From: Victor Toso By using stream-video-codec-type property, we can display which video-codec is being used. Signed-off-by: Victor Toso --- tools/spicy.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/tools/spicy.c b/tools/spicy

[Spice-devel] [spice-gtk v3 2/3] channel-display: new stream-video-codec-type property

2017-03-02 Thread Victor Toso
From: Victor Toso This is a per channel-display property that stores and notifies the video-codec type being used if a stream is being used or 0 if there is no ongoing stream. Signed-off-by: Victor Toso --- src/channel-display.c | 29 + 1 file changed, 29 insertions

[Spice-devel] [spice-gtk v3 0/3] channel-display with new stream-video-codec property

2017-03-02 Thread Victor Toso
From: Victor Toso Hi, The main idea is to be able to easily see the video-codec changing. Spicy uses thes new property and set the information in its status label. v1->v3: * (1/3) Don't need to use #defines in the string messages (Jonathon) * (1/3) Improve commit log Victor Toso (3): spicy:

Re: [Spice-devel] [PATCH spice-gtk v3] Switch over to using keycodemapdb submodule

2017-03-02 Thread Daniel P. Berrange
On Thu, Mar 02, 2017 at 07:59:42AM +0100, Pavel Grunt wrote: > On Mon, 2017-02-27 at 10:44 +, Daniel P. Berrange wrote: > > On Mon, Feb 27, 2017 at 11:37:44AM +0100, Pavel Grunt wrote: > > > Hello Daniel, > > > > > > On Mon, 2017-02-27 at 10:25 +, Daniel P. Berrange wrote: > > > > Consume

[Spice-devel] [PATCH v4] Switch over to using keycodemapdb submodule

2017-03-02 Thread Daniel P. Berrange
Consume the keymaps.csv file from a git submodule instead of having a private copy. This makes it easier to ensure all users of the keymap (libvirt, gtk-vnc, spice-gtk, and eventually QEMU) to have a consistent set of data. Signed-off-by: Daniel P. Berrange --- Changed in v4: - Use correct su

Re: [Spice-devel] [PATCH spice-gtk v3] Switch over to using keycodemapdb submodule

2017-03-02 Thread Daniel P. Berrange
On Thu, Mar 02, 2017 at 08:16:15AM +0100, Pavel Grunt wrote: > On Thu, 2017-03-02 at 07:59 +0100, Pavel Grunt wrote: > > On Mon, 2017-02-27 at 10:44 +, Daniel P. Berrange wrote: > > > On Mon, Feb 27, 2017 at 11:37:44AM +0100, Pavel Grunt wrote: > > > > Hello Daniel, > > > > > > > > On Mon, 201

Re: [Spice-devel] [PATCH spice-gtk v3] Switch over to using keycodemapdb submodule

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 08:16:15AM +0100, Pavel Grunt wrote: > On Thu, 2017-03-02 at 07:59 +0100, Pavel Grunt wrote: > > On Mon, 2017-02-27 at 10:44 +, Daniel P. Berrange wrote: > > > On Mon, Feb 27, 2017 at 11:37:44AM +0100, Pavel Grunt wrote: > > > > Hello Daniel, > > > > > > > > On Mon, 201

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Christophe Fergeau
On Thu, Mar 02, 2017 at 10:23:45AM +0100, Victor Toso wrote: > Hi, > > On Tue, Feb 28, 2017 at 12:21:45PM +0100, Victor Toso wrote: > > From: Victor Toso > > > > Hi, > > > > v2->v3: > > * Breaking spice_channel_read_wire() into smaller changes. (teuf) > > > > v2: > > https://lists.freedesktop

[Spice-devel] [PATCH spice-gtk] spicy: Add dialog for precise resizing

2017-03-02 Thread Pavel Grunt
It helps when testing whether the guest resizes to requested resolution Also it gives spicy a basic multimonitor support --- tools/spicy.c | 72 +++ 1 file changed, 72 insertions(+) diff --git a/tools/spicy.c b/tools/spicy.c index ce6b40b..

Re: [Spice-devel] [spice-gtk v2] spicy: keep status of mouse/agent on server mode

2017-03-02 Thread Christophe Fergeau
missing log.. Christophe On Thu, Mar 02, 2017 at 10:45:15AM +0100, Victor Toso wrote: > From: Victor Toso > > Signed-off-by: Victor Toso > --- > tools/spicy.c | 16 +--- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/tools/spicy.c b/tools/spicy.c > index ce6b4

[Spice-devel] [spice-gtk v2] spicy: keep status of mouse/agent on server mode

2017-03-02 Thread Victor Toso
From: Victor Toso Signed-off-by: Victor Toso --- tools/spicy.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/spicy.c b/tools/spicy.c index ce6b40b..112312c 100644 --- a/tools/spicy.c +++ b/tools/spicy.c @@ -182,23 +182,25 @@ static int ask_user(GtkWi

Re: [Spice-devel] How to send a custom resolution message to windows/linux guest vdagent

2017-03-02 Thread Victor Toso
Hi, On Thu, Mar 02, 2017 at 10:32:30AM +0100, Pavel Grunt wrote: > Actually I sent a patch for it few months ago ;) > https://github.com/xerus/spice-gtk/commit/2fbf5aaed4adec593a5e89e93d3b > 286b98816419 Yay, mind to rebase and send again? signature.asc Description: PGP signature __

Re: [Spice-devel] How to send a custom resolution message to windows/linux guest vdagent

2017-03-02 Thread Pavel Grunt
On Thu, 2017-03-02 at 10:18 +0100, Victor Toso wrote: > Oi Thiago, > > On Thu, Mar 02, 2017 at 03:58:34AM -0300, Thiago Nascimento Araujo > wrote: > > Hello, > > > > Is there a way to send a spice message, connect to pipe, or any > > other > > method to contact vdservice/vdagent to create/simulat

Re: [Spice-devel] [spice-gtk v3 0/6] spice-channel: read/flush wire functions

2017-03-02 Thread Victor Toso
Hi, On Tue, Feb 28, 2017 at 12:21:45PM +0100, Victor Toso wrote: > From: Victor Toso > > Hi, > > v2->v3: > * Breaking spice_channel_read_wire() into smaller changes. (teuf) > > v2: > https://lists.freedesktop.org/archives/spice-devel/2017-February/035455.html > v1: > https://lists.freedeskto

Re: [Spice-devel] How to send a custom resolution message to windows/linux guest vdagent

2017-03-02 Thread Victor Toso
Oi Thiago, On Thu, Mar 02, 2017 at 03:58:34AM -0300, Thiago Nascimento Araujo wrote: > Hello, > > Is there a way to send a spice message, connect to pipe, or any other > method to contact vdservice/vdagent to create/simulate a resize to an > arbitrary resolution or full screen effect caused by rem

[Spice-devel] [PATCH spice-server v3 0/5] Change the way we pass capabilities

2017-03-02 Thread Frediano Ziglio
This patchset attempt to pass capabilities using a single RedChannelCapabilities (already existing) structure. Changes since v2: - merge GArray and RedChannelCapabilites usage; - split removing reading capability properties; - move object to separate files. Changes since v1: - use RedChannelCapab

[Spice-devel] [PATCH spice-server v3 3/5] red-channel: Separate RedChannelCapabilities

2017-03-02 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/Makefile.am| 2 ++ server/red-channel-capabilities.c | 22 ++ server/red-channel-capabilities.h | 36 server/red-channel.h | 8 +--- 4 files changed, 61 insertions

[Spice-devel] [PATCH spice-server v3 5/5] red-channel: Use RedChannelCapabilities directly to pass capabilities

2017-03-02 Thread Frediano Ziglio
For each channel there are two set of capabilities, one for the common ones and one for the specific ones. A single set were almost always passed using 2 arguments, a number of elements and an array but then before using these were converted to a GArray. Use a single structure (already available) t

[Spice-devel] [PATCH spice-server v3 4/5] red-channel-capabilities: Enhance

2017-03-02 Thread Frediano Ziglio
Add function to initialize and destroy this type. Add GObject type for boxing it. These changes a in preparation for next patch. Signed-off-by: Frediano Ziglio --- server/red-channel-capabilities.c | 55 +++ server/red-channel-capabilities.h | 16 +++-

[Spice-devel] [PATCH spice-server v3 1/5] red-channel: Remove unused type definition

2017-03-02 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- I don't consider this patch really specific to this set --- server/red-channel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/red-channel.c b/server/red-channel.c index 67a570d..8fe0d33 100644 --- a/server/red-channel.c +++ b/server/red-channel.c @@

[Spice-devel] [PATCH spice-server v3 2/5] red-channel-client: Make capabilities property write only

2017-03-02 Thread Frediano Ziglio
These properties are not read and code is broken (you would get uninitialized values). Signed-off-by: Frediano Ziglio --- server/red-channel-client.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/server/red-channel-client.c b/server/red-channel-client.

  1   2   >