Re: [Spice-devel] [PATCH v3 00/28] Win10 support patches

2016-09-08 Thread Pavel Grunt
On Thu, 2016-09-08 at 09:01 +0300, Dmitry Fleytman wrote: > > On 7 Sep 2016, at 18:49 PM, Christophe Fergeau > m> wrote: > > > > On Wed, Sep 07, 2016 at 06:40:57PM +0300, Dmitry Fleytman wrote: > > > > On 7 Sep 2016, at 18:20 PM, Christophe Fergeau > > > t.com> wrote: > > > > > > > > On Wed, Se

Re: [Spice-devel] [PATCH v2 01/10] Move RedChannelClient to separate file

2016-09-08 Thread Frediano Ziglio
> > Reduce direct access to RedChannelClient, and get ready to convert to > GObject. Acked-by: Frediano Ziglio --- > Changes in v2: > - updated copyright dates > - removed unused function > - made red_channel_client_seamless_migration_done() static > - removed NULL check from function that c

Re: [Spice-devel] [PATCH v2 02/10] Move CursorChannelClient to separate file

2016-09-08 Thread Frediano Ziglio
> > --- > Changes in v2: > - fixed copyright date > - squashed frediano's fixup patch > > server/Makefile.am | 2 + > server/cursor-channel-client.c | 119 > + > server/cursor-channel-client.h | 44 +++ > server/cursor-channel

Re: [Spice-devel] [PATCH v2 04/10] Add SmartCardChannelClientPrivate struct

2016-09-08 Thread Frediano Ziglio
> > Prepare to port to GObject by encapsulating all private data > --- > Changes in v2: > - Fixed leak of priv by using 1-element array trick > > server/smartcard.c | 89 > -- > 1 file changed, 47 insertions(+), 42 deletions(-) > > diff --gi

Re: [Spice-devel] [PATCH v2 05/10] Add InputsChannelClientPrivate struct

2016-09-08 Thread Frediano Ziglio
> > Encapsulate private data and prepare for port to GObject. > --- > Changes in v2: > - Fixed leak of priv by using 1-element array trick > > server/inputs-channel-client.c | 29 +++-- > 1 file changed, 19 insertions(+), 10 deletions(-) > > diff --git a/server/inputs-c

Re: [Spice-devel] [PATCH v2 06/10] Add MainChannelClientPrivate struct

2016-09-08 Thread Frediano Ziglio
> > Encapsulate private data and prepare for port to GObject > --- > Changes in v2: > - Fixed leak of priv by using 1-element array trick > > server/main-channel-client.c | 144 > ++- > 1 file changed, 75 insertions(+), 69 deletions(-) > > diff --git a/

Re: [Spice-devel] [PATCH v2 07/10] Add RedChannelClientPrivate struct

2016-09-08 Thread Frediano Ziglio
> > Encapsulate private data and prepare for port to GObject > --- > Changes in v2: > - Fixed leak of priv by using 1-element array trick > - moved unrelated change > - added red_channel_client_get_pipe() and > red_channel_client_is_mini_header() >to avoid accessing RedChannelClientPrivate

Re: [Spice-devel] [PATCH v2 08/10] Add DisplayChannelClientPrivate and CursorChannelPrivate structs

2016-09-08 Thread Frediano Ziglio
> > These need to be introduced at the same time since cache-item.tmpl.c > assumes that both of these classes will have a cache in the same place: > either within the channel client struct itself or (now) within a priv > struct owned by the channel client. > > This encapsulates private data and p

Re: [Spice-devel] [PATCH v2 09/10] Rename RCC_TO_DCC() to DISPLAY_CHANNEL_CLIENT()

2016-09-08 Thread Frediano Ziglio
> > Prepare for port to GObject > --- > Changes in v2: > - none > > server/dcc-send.c| 86 > > server/dcc.c | 6 ++-- > server/dcc.h | 2 +- > server/display-channel.c | 4 +-- > 4 files changed, 49 insertions(

Re: [Spice-devel] [PATCH v3 13/28] Add arbitrary resolution and monitors_config Escape

2016-09-08 Thread Christophe Fergeau
Fwiw, commits with only a shortlog and no details in the commit log should be limited to very trivial ones. (picking that one up, but there are quite a few one-line logs in this series). Christophe On Wed, Sep 07, 2016 at 04:10:31PM +0300, Sameeh Jubran wrote: > Based on a patch by Sandy Stutsman

Re: [Spice-devel] [PATCH v3 00/28] Win10 support patches

2016-09-08 Thread Christophe Fergeau
On Thu, Sep 08, 2016 at 09:01:58AM +0300, Dmitry Fleytman wrote: > > > On 7 Sep 2016, at 18:49 PM, Christophe Fergeau wrote: > > > > On Wed, Sep 07, 2016 at 06:40:57PM +0300, Dmitry Fleytman wrote: > >> > >>> On 7 Sep 2016, at 18:20 PM, Christophe Fergeau > >>> wrote: > >>> > >>> On Wed, Sep

Re: [Spice-devel] [PATCH v2 03/10] Generate GTypes for spice-server enums

2016-09-08 Thread Christophe Fergeau
Looked at this a bit closer, any reason why this is limited to spice-server.h and not including the other public headers? I don't really understand why we need these enums at this point. Also, some of the enums in spice-server.h are not taken into account because they are not of the form typedef en

Re: [Spice-devel] [PATCH v3 00/28] Win10 support patches

2016-09-08 Thread Dmitry Fleytman
> On 8 Sep 2016, at 12:30 PM, Christophe Fergeau wrote: > > On Thu, Sep 08, 2016 at 09:01:58AM +0300, Dmitry Fleytman wrote: >> >>> On 7 Sep 2016, at 18:49 PM, Christophe Fergeau wrote: >>> >>> On Wed, Sep 07, 2016 at 06:40:57PM +0300, Dmitry Fleytman wrote: > On 7 Sep 2016, at 18:2

Re: [Spice-devel] [PATCH v2 10/10] Use RED_CHANNEL_CLIENT() macro for casting

2016-09-08 Thread Frediano Ziglio
> > Also remove (main|inputs)_channel_client_get_base() function to prepare > for porting to GObject. > --- > Changes in v2: > - > > server/cache-item.tmpl.c | 2 +- > server/dcc.c | 10 ++--- > server/inputs-channel-client.c | 10 +++-- > server/main-channel-client.c

Re: [Spice-devel] [PATCH v3 00/28] Win10 support patches

2016-09-08 Thread Frediano Ziglio
> > On 8 Sep 2016, at 12:30 PM, Christophe Fergeau < cferg...@redhat.com > > > wrote: > > > On Thu, Sep 08, 2016 at 09:01:58AM +0300, Dmitry Fleytman wrote: > > > > > On 7 Sep 2016, at 18:49 PM, Christophe Fergeau < cferg...@redhat.com > > > > > wrote: > > > > > > > > > > On Wed, Sep 07, 20

Re: [Spice-devel] [PATCH v3 00/28] Win10 support patches

2016-09-08 Thread Sameeh Jubran
On Thu, Sep 8, 2016 at 1:59 PM, Frediano Ziglio wrote: > On 8 Sep 2016, at 12:30 PM, Christophe Fergeau > wrote: > > On Thu, Sep 08, 2016 at 09:01:58AM +0300, Dmitry Fleytman wrote: > > > On 7 Sep 2016, at 18:49 PM, Christophe Fergeau > wrote: > > On Wed, Sep 07, 2016 at 06:40:57PM +0300, Dmitr

[Spice-devel] [PATCH] Fixed syntax error. Debugger is not an object or command. It is a reserved word and DEBUG > 0 && syntax does not work with it

2016-09-08 Thread Oliver Gutierrez
--- spiceconn.js | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spiceconn.js b/spiceconn.js index 010a446..796f954 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -189,8 +189,10 @@ SpiceConn.prototype = if (msg.type > 500) { -

[Spice-devel] [qxl-wddm-dod PATCH 1/2] Normalise line ending

2016-09-08 Thread Frediano Ziglio
Some files had different line ending (some lines DOS while some others UNIX). Use the same line ending using the nearest ending. Signed-off-by: Frediano Ziglio --- qxldod/QxlDod.cpp | 58 +-- qxldod/QxlDod.h | 2 +- qxldod/driver.h

[Spice-devel] [qxl-wddm-dod PATCH 2/2] Convert UTF-16LE files to single byte unix format

2016-09-08 Thread Frediano Ziglio
From: Dmitry Fleytman Git detect these files as binary which cause some issues with log and other command. The conversion allows different tools (git, VS and different editors) to work correctly. Signed-off-by: Dmitry Fleytman Signed-off-by: Frediano Ziglio --- qxldod/qxldod.inf | Bin 4242 ->

Re: [Spice-devel] [qxl-wddm-dod PATCH 1/2] Normalise line ending

2016-09-08 Thread Frediano Ziglio
> > Some files had different line ending (some lines DOS while some others > UNIX). Use the same line ending using the nearest ending. > > Signed-off-by: Frediano Ziglio > --- > qxldod/QxlDod.cpp | 58 > +-- > qxldod/QxlDod.h | 2 +- >

Re: [Spice-devel] [PATCH v2 03/10] Generate GTypes for spice-server enums

2016-09-08 Thread Frediano Ziglio
> > Looked at this a bit closer, any reason why this is limited to > spice-server.h and not including the other public headers? I don't > really understand why we need these enums at this point. > Also, some of the enums in spice-server.h are not taken into account > because they are not of the fo

Re: [Spice-devel] [PATCH] Fixed syntax error. Debugger is not an object or command. It is a reserved word and DEBUG > 0 && syntax does not work with it

2016-09-08 Thread Pavel Grunt
Ah, I didn't realized before pushing /o\ Please make the summary shorter - you can put the other sentence to the commit body. On Thu, 2016-09-08 at 13:21 +0200, Oliver Gutierrez wrote: > --- >  spiceconn.js | 6 -- >  1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/spiceconn.

Re: [Spice-devel] [PATCH v2 00/10] Rebased patches from refactory branch (Sept 7)

2016-09-08 Thread Frediano Ziglio
> > Sorry for the delay in sending the next patch series. This is mostly the same > series as previously sent, but with the first patch merged and changes from > previous review. See individual patches for details. > > Jonathon Jongsma (10): > Move RedChannelClient to separate file > Move Cur

Re: [Spice-devel] [PATCH] Fixed syntax error. Debugger is not an object or command. It is a reserved word and DEBUG > 0 && syntax does not work with it

2016-09-08 Thread Oliver Gutierrez
Ok. Thanks for the tips :D On Thu, Sep 8, 2016 at 2:26 PM, Pavel Grunt wrote: > Ah, I didn't realized before pushing /o\ > > Please make the summary shorter - you can put the other sentence to > the commit body. > > On Thu, 2016-09-08 at 13:21 +0200, Oliver Gutierrez wrote: > > --- > > spicecon

[Spice-devel] [PATCH] Fixed syntax error in debugger command.

2016-09-08 Thread Oliver Gutierrez
Debugger is not an object or command. It is a reserved word and DEBUG > 0 && syntax does not work with it --- spiceconn.js | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spiceconn.js b/spiceconn.js index 010a446..796f954 100644 --- a/spiceconn.js +++ b/spiceconn.js @@ -

Re: [Spice-devel] [PATCH] Fixed syntax error in debugger command.

2016-09-08 Thread Pavel Grunt
On Thu, 2016-09-08 at 14:51 +0200, Oliver Gutierrez wrote: > Debugger is not an object or command. It is a reserved word and > DEBUG > 0 && syntax does not work with it > --- >  spiceconn.js | 6 -- >  1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/spiceconn.js b/spiceconn.js

[Spice-devel] [PATCH spice-common] proto: Use Empty keyword for empty message

2016-09-08 Thread Pavel Grunt
No need to generate marshallers for it --- common/messages.h | 3 --- spice.proto | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/common/messages.h b/common/messages.h index 516a345..c787166 100644 --- a/common/messages.h +++ b/common/messages.h @@ -386,9 +386,6 @@ typ

Re: [Spice-devel] [PATCH v2 00/10] Rebased patches from refactory branch (Sept 7)

2016-09-08 Thread Jonathon Jongsma
On Thu, 2016-09-08 at 08:26 -0400, Frediano Ziglio wrote: > > > > > > Sorry for the delay in sending the next patch series. This is > > mostly the same > > series as previously sent, but with the first patch merged and > > changes from > > previous review. See individual patches for details. > >

Re: [Spice-devel] [PATCH v2 03/10] Generate GTypes for spice-server enums

2016-09-08 Thread Jonathon Jongsma
On Thu, 2016-09-08 at 08:25 -0400, Frediano Ziglio wrote: > > > > > > Looked at this a bit closer, any reason why this is limited to > > spice-server.h and not including the other public headers? I don't > > really understand why we need these enums at this point. > > Also, some of the enums in s

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

2016-09-08 Thread Jeremy White
> > I'm glad it's broadly usable; I hope to have a patch attacking the CPU > usage sometime fairly soon. I've pushed a series of patches that improve both CPU usage and performance in the extreme damage case for me. Cheers, Jeremy ___ Spice-devel mail

[Spice-devel] [PATCH] Fix marshallers for SpiceMsgPortInit

2016-09-08 Thread Victor Toso
Protocol states that name is an array of bytes but the marshallers are considering it a pointer to an array of bytes. A client that does not use demarshallers from spice-common will find an incorrect implementation of spice-server SpiceMsgPortInit. Reported-by: Oliver Gutierrez Signed-off-by: Pav

[Spice-devel] [PATCH 01/10] RedsState: clean up spice_server_char_device_add_interface

2016-09-08 Thread Jonathon Jongsma
Previously we were creating a variable named 'dev_state' and then apparently not using it. Well, we *were* actually using it, but in a convoluted sort of way. Creating a new RedCharDevice has a side-effect of setting itself as the 'st' attribute of SpiceCharDeviceInstance. So 'dev_state' and 'char_

[Spice-devel] [PATCH 02/10] Add DisplayChannelPrivate struct

2016-09-08 Thread Jonathon Jongsma
Move all of the DisplayChannel data memembers into a private struct to encapsulate things better. This necessitated a few new 'public' methods and a small bit of refactoring to avoid poking into DisplayChannel internals from too many places. The DisplayChannel and the DisplayChannelClient are still

[Spice-devel] [PATCH 08/10] Make glz_dictionary_list a GList

2016-09-08 Thread Jonathon Jongsma
Removing more intrusive RingItems from various structures and improving readibility. --- server/image-encoders.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/server/image-encoders.c b/server/image-encoders.c index 5759230..39aca6c 100644 --- a/server/image

[Spice-devel] [PATCH 04/10] Rename display_channel_set_monitors_config_to_primary()

2016-09-08 Thread Jonathon Jongsma
Since this function is a DisplayChannel method, use a name consistent with naming conventions. --- server/display-channel.c | 2 +- server/display-channel.h | 2 +- server/red-worker.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/display-channel.c b/server/dis

[Spice-devel] [PATCH 10/10] Change RedCharDevicePrivate::clients to GList

2016-09-08 Thread Jonathon Jongsma
More Ring cleanup --- server/char-device.c | 72 ++-- 1 file changed, 30 insertions(+), 42 deletions(-) diff --git a/server/char-device.c b/server/char-device.c index e01f34c..40512f8 100644 --- a/server/char-device.c +++ b/server/char-device.c @@ -

[Spice-devel] [PATCH 00/10] Rebased patches from refactory branch (Sept 8)

2016-09-08 Thread Jonathon Jongsma
A few smaller cleanup patches before we start the GObject stuff. Jonathon Jongsma (10): RedsState: clean up spice_server_char_device_add_interface Add DisplayChannelPrivate struct Add CursorChannelPrivate struct Rename display_channel_set_monitors_config_to_primary() Replace a couple Rin

[Spice-devel] [PATCH 05/10] Replace a couple Rings with GList

2016-09-08 Thread Jonathon Jongsma
Make RedsState::mig_target_clients into a GList to improve encapsulation and maintainability. Also RedsMigTargetClient::pending_links. With GList, a type implementation can be ignorant of whether they're contained within a list or not. --- server/reds-private.h | 6 ++ server/reds.c |

[Spice-devel] [PATCH 03/10] Add CursorChannelPrivate struct

2016-09-08 Thread Jonathon Jongsma
Encapsulate private data of CursorChannel in a private struct. This isn't very useful at the moment, but it will help prepare the way for porting the RedChannel heirarchy to GObject. --- server/cursor-channel.c | 53 - 1 file changed, 30 insertions(+

[Spice-devel] [PATCH 06/10] RedChannelClient: store pipe items in a GList

2016-09-08 Thread Jonathon Jongsma
Instead of using a Ring (and having a ring item link in every pipe item), store them in a GList. This also necesitated changing RedCharDeviceVDIPort->priv->read_bufs to a GList as well. --- server/cursor-channel.c | 2 - server/dcc-send.c | 22 +-- server/dcc

[Spice-devel] [PATCH 07/10] Change Drawable->pipes from Ring to GList

2016-09-08 Thread Jonathon Jongsma
This greatly improves the readability of the code and keeps things encapsulated better. --- server/dcc.c | 12 +--- server/dcc.h | 1 - server/display-channel.c | 39 ++- server/display-channel.h | 6 +- server/stream.c

[Spice-devel] [PATCH 09/10] Change RedCharDevice write_queue to GList

2016-09-08 Thread Jonathon Jongsma
Change a couple more Rings to GList --- server/char-device.c | 88 ++-- server/char-device.h | 1 - 2 files changed, 37 insertions(+), 52 deletions(-) diff --git a/server/char-device.c b/server/char-device.c index 957fb26..e01f34c 100644 --- a/serv

Re: [Spice-devel] [PATCH] Fix marshallers for SpiceMsgPortInit

2016-09-08 Thread Frediano Ziglio
> > Protocol states that name is an array of bytes but the marshallers are > considering it a pointer to an array of bytes. A client that does not > use demarshallers from spice-common will find an incorrect > implementation of spice-server SpiceMsgPortInit. > > Reported-by: Oliver Gutierrez > S

Re: [Spice-devel] [PATCH 08/10] Make glz_dictionary_list a GList

2016-09-08 Thread Frediano Ziglio
> > Removing more intrusive RingItems from various structures and improving > readibility. > --- > server/image-encoders.c | 17 +++-- > 1 file changed, 7 insertions(+), 10 deletions(-) > > diff --git a/server/image-encoders.c b/server/image-encoders.c > index 5759230..39aca6c 100644

Re: [Spice-devel] [PATCH 01/10] RedsState: clean up spice_server_char_device_add_interface

2016-09-08 Thread Frediano Ziglio
> > Previously we were creating a variable named 'dev_state' and then > apparently not using it. Well, we *were* actually using it, but in a > convoluted sort of way. Creating a new RedCharDevice has a > side-effect of setting itself as the 'st' attribute of > SpiceCharDeviceInstance. So 'dev_stat

Re: [Spice-devel] [PATCH] Fix marshallers for SpiceMsgPortInit

2016-09-08 Thread Frediano Ziglio
> > > > Protocol states that name is an array of bytes but the marshallers are > > considering it a pointer to an array of bytes. A client that does not > > use demarshallers from spice-common will find an incorrect > > implementation of spice-server SpiceMsgPortInit. > > > > Reported-by: Oliver

[Spice-devel] [PATCH spice-gtk] display: Do not marshall empty message

2016-09-08 Thread Pavel Grunt
--- src/channel-display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/channel-display.c b/src/channel-display.c index 709b3d2..020b7fb 100644 --- a/src/channel-display.c +++ b/src/channel-display.c @@ -1816,7 +1816,6 @@ void spice_display_gl_draw_done(SpiceDisplayChannel *display)

Re: [Spice-devel] [PATCH 01/10] RedsState: clean up spice_server_char_device_add_interface

2016-09-08 Thread Jonathon Jongsma
On Thu, 2016-09-08 at 13:39 -0400, Frediano Ziglio wrote: > >  > >  > > Previously we were creating a variable named 'dev_state' and then > > apparently not using it. Well, we *were* actually using it, but in > > a > > convoluted sort of way. Creating a new RedCharDevice has a > > side-effect of se

Re: [Spice-devel] [PATCH spice-gtk] display: Do not marshall empty message

2016-09-08 Thread Marc-André Lureau
Hi - Original Message - > --- > src/channel-display.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/src/channel-display.c b/src/channel-display.c > index 709b3d2..020b7fb 100644 > --- a/src/channel-display.c > +++ b/src/channel-display.c > @@ -1816,7 +1816,6 @@ void spice_displ

Re: [Spice-devel] [PATCH spice-gtk] display: Do not marshall empty message

2016-09-08 Thread Pavel Grunt
Hi, On Thu, 2016-09-08 at 17:45 -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > --- > >  src/channel-display.c | 1 - > >  1 file changed, 1 deletion(-) > > > > diff --git a/src/channel-display.c b/src/channel-display.c > > index 709b3d2..020b7fb 100644 > > --- a/src/cha

[Spice-devel] [PATCH spice-gtk] Remove trailing semicolon

2016-09-08 Thread Pavel Grunt
--- src/channel-main.c | 2 +- src/usb-device-manager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel-main.c b/src/channel-main.c index 26c8c6d..990a06a 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -3128,7 +3128,7 @@ gboolean spice_main_fil