Re: [Spice-devel] [PATCH spice-protocol 3/3] vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL

2019-03-28 Thread Marc-André Lureau
Hi On Thu, Mar 28, 2019 at 6:05 PM Frediano Ziglio wrote: > > > > > ..Hi > > > > On Thu, Mar 28, 2019 at 4:14 PM Frediano Ziglio wrote: > > > > The role of the grab message is to take ownership of the clipboard (to > > > > advertize clipboard data available). It may come at any time from both >

Re: [Spice-devel] [PATCH linux/vd-agent 10/11] clipboard: only send release when no immediate grab

2019-03-28 Thread Marc-André Lureau
Hi On Thu, Mar 28, 2019 at 5:30 PM Frediano Ziglio wrote: > > > > > From: Marc-André Lureau > > > > Do not send a release event between two grabs, this helps with window > > manager interaction issues on peer side. > > > > I would explain which kind of issue this is supposed to fix. They react

Re: [Spice-devel] [PATCH spice-server v2 12/12] display-channel: Inline red_migrate_display function

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > The only caller only called that function. > > Signed-off-by: Frediano Ziglio > --- > server/display-channel.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git

Re: [Spice-devel] [PATCH spice-server v2 11/12] Move image_compression field from RedWorker to DisplayChannel

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/display-channel-private.h | 1 + > server/display-channel.c | 10 -- > server/display-channel.h | 2 ++ > server/red-worker.c

Re: [Spice-devel] [PATCH spice-server v2 10/12] Check image compression value earlier

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Do not check it after assigning to reds->config->image_compression, > check the value as soon as possible. > This prevent potential invalid settings. > > Signed-off-by: Frediano Ziglio > --- >

Re: [Spice-devel] [PATCH spice-server v2 09/12] red-worker: Remove only assigned fields

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > DisplayChannelClient get them directly from reds (they are changed > only during initialisation so they can be read freely from any > thread). > > Signed-off-by: Frediano Ziglio > --- >

Re: [Spice-devel] [PATCH spice-server v2 08/12] cursor-channel: Update some declarations and documentation

2019-03-28 Thread Jonathon Jongsma
This also looks like a patch that should get squashed (maybe parts should be squashed into two different previous commits, see below), but I agree with all of the changes. Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio >

Re: [Spice-devel] [PATCH spice-server v2 07/12] Make some function static

2019-03-28 Thread Jonathon Jongsma
Personally, I would squash this patch with the previous one Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Now that stuff are a bit more on their correct place some > function can be static. > > Signed-off-by: Frediano Ziglio > --- >

Re: [Spice-devel] [PATCH spice-server v2 05/12] Check running state in red_qxl_set_client_capabilities

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > No reasons to expose red_qxl_is_running, this was used to not > send capability is the state was not running. > > Signed-off-by: Frediano Ziglio > --- > server/display-channel.c | 3 --- > server/red-qxl.c

Re: [Spice-devel] [PATCH spice-server v2 04/12] Move DisplayChannel callbacks from RedWorker to DisplayChannel

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/display-channel.c | 108 + > server/display-channel.h | 7 +++ > server/red-worker.c | 114

Re: [Spice-devel] [spice-common 2/8] backtrace: Add missing include

2019-03-28 Thread Frediano Ziglio
> > This fixes a warning about missing prototype for backtrace() > > Signed-off-by: Christophe Fergeau Acked-by: Frediano Ziglio > --- > common/backtrace.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/common/backtrace.c b/common/backtrace.c > index c4edde1..ff72d1b 100644 >

Re: [Spice-devel] [spice-common 7/8] quic: Fix QUIC_VERSION definition

2019-03-28 Thread Frediano Ziglio
> > QUIC_VERSION_MINOR is never used.. Set QUIC_VERSION_MINOR to the same > version as QUIC_VERSION_MAJOR to avoid breaking backwards compatibility, > and fix the QUIC_VERSION macro. > > Signed-off-by: Christophe Fergeau Acked-by: Frediano Ziglio > --- > common/quic.c | 4 ++-- > 1 file

Re: [Spice-devel] [spice-common 8/8] log: Let gcc know about the logging macros which abort

2019-03-28 Thread Frediano Ziglio
> > The for(;;) hack was taken from glib's logging macros. > > Signed-off-by: Christophe Fergeau > --- > common/log.h | 8 > 1 file changed, 8 insertions(+) > > diff --git a/common/log.h b/common/log.h > index 7c67e7a..b397306 100644 > --- a/common/log.h > +++ b/common/log.h > @@

Re: [Spice-devel] [spice-common 5/8] build: Update verify.h to latest version

2019-03-28 Thread Frediano Ziglio
> > Signed-off-by: Christophe Fergeau > --- > common/verify.h | 24 +++- > 1 file changed, 15 insertions(+), 9 deletions(-) > > diff --git a/common/verify.h b/common/verify.h > index 267de29..b2e5f64 100644 > --- a/common/verify.h > +++ b/common/verify.h > @@ -1,19 +1,19 @@

Re: [Spice-devel] [spice-common 3/8] lz: Don't try to print uninitialized variable

2019-03-28 Thread Frediano Ziglio
> > encoder->type is only going to be set by lz_set_sizes() after the > error() call. We can use 'type' directly which is what encoder->type is > going to be set to. > > Signed-off-by: Christophe Fergeau Acked-by: Frediano Ziglio > --- > common/lz.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [Spice-devel] [spice-common 6/8] test-marshallers: Fix header guard

2019-03-28 Thread Frediano Ziglio
> > test-marshallers.h is missing a #define _H_TEST_MARSHALLERS in order to > prevent multiple #include for the same header. > > Signed-off-by: Christophe Fergeau > --- > tests/test-marshallers.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/test-marshallers.h

Re: [Spice-devel] [spice-common 4/8] build: Add missing G_GNUC_PRINTF annotations

2019-03-28 Thread Frediano Ziglio
> > They were suggested by gcc when using -Wsuggest-attribute=format > > Signed-off-by: Christophe Fergeau > --- > common/log.c | 13 +++-- > tests/test-logging.c | 1 + > 2 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/common/log.c b/common/log.c > index

[Spice-devel] [spice-common 2/8] backtrace: Add missing include

2019-03-28 Thread Christophe Fergeau
This fixes a warning about missing prototype for backtrace() Signed-off-by: Christophe Fergeau --- common/backtrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/backtrace.c b/common/backtrace.c index c4edde1..ff72d1b 100644 --- a/common/backtrace.c +++ b/common/backtrace.c @@

[Spice-devel] [spice-common 6/8] test-marshallers: Fix header guard

2019-03-28 Thread Christophe Fergeau
test-marshallers.h is missing a #define _H_TEST_MARSHALLERS in order to prevent multiple #include for the same header. Signed-off-by: Christophe Fergeau --- tests/test-marshallers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-marshallers.h b/tests/test-marshallers.h index

[Spice-devel] [spice-common 1/8] canvas_base: Fix variable shadowing warning

2019-03-28 Thread Christophe Fergeau
canvas_base.c is #included by spice-common users. They currently don't enable this warning, but if/when they do, we don't want code from spice-common to trigger it. Signed-off-by: Christophe Fergeau --- common/canvas_base.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[Spice-devel] [spice-common 8/8] log: Let gcc know about the logging macros which abort

2019-03-28 Thread Christophe Fergeau
The for(;;) hack was taken from glib's logging macros. Signed-off-by: Christophe Fergeau --- common/log.h | 8 1 file changed, 8 insertions(+) diff --git a/common/log.h b/common/log.h index 7c67e7a..b397306 100644 --- a/common/log.h +++ b/common/log.h @@ -20,6 +20,7 @@ #include

[Spice-devel] [spice-common 0/8] warning fixes

2019-03-28 Thread Christophe Fergeau
Hey, This is the first set of hopefully more patches, long story short, I wanted to add manywarnings.m4 to spice-common, but its compilation is not fully clean at the moment. Here are patches for some of the warnings I got when trying to add support for it. Christophe

[Spice-devel] [spice-common 3/8] lz: Don't try to print uninitialized variable

2019-03-28 Thread Christophe Fergeau
encoder->type is only going to be set by lz_set_sizes() after the error() call. We can use 'type' directly which is what encoder->type is going to be set to. Signed-off-by: Christophe Fergeau --- common/lz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lz.c

[Spice-devel] [spice-common 7/8] quic: Fix QUIC_VERSION definition

2019-03-28 Thread Christophe Fergeau
QUIC_VERSION_MINOR is never used.. Set QUIC_VERSION_MINOR to the same version as QUIC_VERSION_MAJOR to avoid breaking backwards compatibility, and fix the QUIC_VERSION macro. Signed-off-by: Christophe Fergeau --- common/quic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[Spice-devel] [spice-common 5/8] build: Update verify.h to latest version

2019-03-28 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- common/verify.h | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/common/verify.h b/common/verify.h index 267de29..b2e5f64 100644 --- a/common/verify.h +++ b/common/verify.h @@ -1,19 +1,19 @@ /* Compile-time

[Spice-devel] [spice-common 4/8] build: Add missing G_GNUC_PRINTF annotations

2019-03-28 Thread Christophe Fergeau
They were suggested by gcc when using -Wsuggest-attribute=format Signed-off-by: Christophe Fergeau --- common/log.c | 13 +++-- tests/test-logging.c | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/common/log.c b/common/log.c index b73da71..7cb3e36 100644

Re: [Spice-devel] [PATCH spice-protocol 3/3] vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL

2019-03-28 Thread Frediano Ziglio
> > ..Hi > > On Thu, Mar 28, 2019 at 4:14 PM Frediano Ziglio wrote: > > > The role of the grab message is to take ownership of the clipboard (to > > > advertize clipboard data available). It may come at any time from both > > > side, and override the current grab owner. It may come from the

Re: [Spice-devel] [PATCH linux/vd-agent 10/11] clipboard: only send release when no immediate grab

2019-03-28 Thread Frediano Ziglio
> > From: Marc-André Lureau > > Do not send a release event between two grabs, this helps with window > manager interaction issues on peer side. > I would explain which kind of issue this is supposed to fix. > Advertise this behaviour via a capability introduced in spice-protocol > 0.12.16,

Re: [Spice-devel] [PATCH linux/vd-agent 06/11] configure: bump gobject >= 2.50

2019-03-28 Thread Marc-André Lureau
Hi On Sun, Mar 24, 2019 at 6:49 PM Jakub Janku wrote: > > Hi, > > On Fri, Mar 22, 2019 at 4:13 PM wrote: > > > > From: Marc-André Lureau > > > > This is required for using the new GObject macros. > > Which macros are you referring to? > G_DECLARE_FINAL_TYPE is available since 2.44 That's

Re: [Spice-devel] [PATCH linux/vd-agent 06/11] configure: bump gobject >= 2.50

2019-03-28 Thread Marc-André Lureau
Hi On Thu, Mar 28, 2019 at 4:27 PM Frediano Ziglio wrote: > > > > > From: Marc-André Lureau > > > > This is required for using the new GObject macros. > > > > According to commit 61fc548fe1a323dd2344c8ae267e3ce05e86da7d ("Bump > > GLib version to 2.34"), RHEL6 is no longer supported. > > > >

Re: [Spice-devel] [PATCH spice-server v2 02/12] Move thread/dispatching handling to RedChannel

2019-03-28 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > Currently channel threading/handling is spread between RedQxl, > RedWorker and RedChannel. > Move more to RedChannel simplify RedQxl and RedWorker. > > Signed-off-by: Frediano Ziglio > --- >

Re: [Spice-devel] [PATCH spice-server v2 01/12] dispatcher: Allows to manage messages without registering them

2019-03-28 Thread Frediano Ziglio
> On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > > The only way to add new message to Dispatcher was to register > > using a number. These numbers corresponded to array indexes. > > This is good if the list of messages is allocated statically > > and contiguously, on the contrary this

Re: [Spice-devel] [PATCH spice-protocol 3/3] vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL

2019-03-28 Thread Marc-André Lureau
..Hi On Thu, Mar 28, 2019 at 4:14 PM Frediano Ziglio wrote: > > The role of the grab message is to take ownership of the clipboard (to > > advertize clipboard data available). It may come at any time from both > > side, and override the current grab owner. It may come from the guest > > (after

Re: [Spice-devel] [PATCH linux/vd-agent 06/11] configure: bump gobject >= 2.50

2019-03-28 Thread Frediano Ziglio
> > From: Marc-André Lureau > > This is required for using the new GObject macros. > > According to commit 61fc548fe1a323dd2344c8ae267e3ce05e86da7d ("Bump > GLib version to 2.34"), RHEL6 is no longer supported. > > GLib version across some distributions, from repology: > - Debian Stable (9):

Re: [Spice-devel] [PATCH spice-server v2 01/12] dispatcher: Allows to manage messages without registering them

2019-03-28 Thread Jonathon Jongsma
On Tue, 2019-03-26 at 19:10 +, Frediano Ziglio wrote: > The only way to add new message to Dispatcher was to register > using a number. These numbers corresponded to array indexes. > This is good if the list of messages is allocated statically > and contiguously, on the contrary this method is

Re: [Spice-devel] [PATCH spice-protocol 3/3] vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL

2019-03-28 Thread Frediano Ziglio
> Hi > > On Wed, Mar 27, 2019 at 4:50 PM Frediano Ziglio wrote: > > > > > Hi > > > > > > On Wed, Mar 27, 2019 at 8:23 AM Frediano Ziglio > > > wrote: > > > > > > > > > > > > > > From: Marc-André Lureau > > > > > > > > > > When this capability is negoticated by both the client & the agent, > >

Re: [Spice-devel] [PATCH spice-server 2/2] docs: Add some notes on event scheduling and threading

2019-03-28 Thread Frediano Ziglio
> On Thu, Mar 28, 2019 at 04:25:31AM -0400, Frediano Ziglio wrote: > > > > > > On Mon, Mar 11, 2019 at 02:03:33PM +, Frediano Ziglio wrote: > > > > Signed-off-by: Frediano Ziglio > > > > --- > > > > docs/spice_threading_model.txt | 8 > > > > 1 file changed, 8 insertions(+) > > > >

[Spice-devel] Two monitors Windows

2019-03-28 Thread Mathias Egekvist
Hi Spice Developer(s), Not sure this email should go to you, but I am not sure where else to go. Recently started using Spice with libvirt and found great performance. I have started a Windows 10 guest vm and it is working fine with 1 monitor. I saw on your website

Re: [Spice-devel] [PATCH spice-server 2/2] docs: Add some notes on event scheduling and threading

2019-03-28 Thread Christophe Fergeau
On Thu, Mar 28, 2019 at 04:25:31AM -0400, Frediano Ziglio wrote: > > > > On Mon, Mar 11, 2019 at 02:03:33PM +, Frediano Ziglio wrote: > > > Signed-off-by: Frediano Ziglio > > > --- > > > docs/spice_threading_model.txt | 8 > > > 1 file changed, 8 insertions(+) > > > > > > diff

Re: [Spice-devel] [PATCH spice-protocol 3/3] vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL

2019-03-28 Thread Marc-André Lureau
Hi On Wed, Mar 27, 2019 at 4:50 PM Frediano Ziglio wrote: > > > Hi > > > > On Wed, Mar 27, 2019 at 8:23 AM Frediano Ziglio wrote: > > > > > > > > > > > From: Marc-André Lureau > > > > > > > > When this capability is negoticated by both the client & the agent, > > > > > > negotiated > > > > > >

Re: [Spice-devel] [PATCH spice-server 2/2] docs: Add some notes on event scheduling and threading

2019-03-28 Thread Frediano Ziglio
> > On Mon, Mar 11, 2019 at 02:03:33PM +, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > --- > > docs/spice_threading_model.txt | 8 > > 1 file changed, 8 insertions(+) > > > > diff --git a/docs/spice_threading_model.txt > > b/docs/spice_threading_model.txt > >