[Spice-devel] [PATCH spice-common 1/2] build: Reuse TEST_MARSHALLERS macro

2018-06-28 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- tests/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 457bb23..39d30c0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,9 +18,7 @@ test_logging_LDADD =

[Spice-devel] [PATCH spice-common 2/2] build: Reindent macros

2018-06-28 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- common/Makefile.am | 6 +++--- tests/Makefile.am | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/Makefile.am b/common/Makefile.am index 3cbc49f..5ca6538 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -88,10

[Spice-devel] [PATCH] Set default syslog mask to a lower level

2018-06-28 Thread Snir Sheriber
This will allow printing run-time information to stderr (by using LOG_NOTICE level) without classifying it as warning/error or by enabling debug mode. --- src/spice-streaming-agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) This follows a suggestion to print run-time informative lo

[Spice-devel] [spice-common] snd: Replace spice_printerr() use with g_warning

2018-06-28 Thread Christophe Fergeau
This allows users of the library to redirect where these messages go through use of g_log_set_default_handler() rather than unconditionally printing on stderr. Signed-off-by: Christophe Fergeau --- Let's first address spice-common use of spice_printerr, more patches will be coming for spice-serve

Re: [Spice-devel] [spice-common] snd: Replace spice_printerr() use with g_warning

2018-06-28 Thread Frediano Ziglio
> > This allows users of the library to redirect where these messages go > through use of g_log_set_default_handler() rather than unconditionally > printing on stderr. > > Signed-off-by: Christophe Fergeau > --- > Let's first address spice-common use of spice_printerr, more patches > will be com

[Spice-devel] [spice-server 4/4] qxl: Remove red_channel_printerr()

2018-06-28 Thread Christophe Fergeau
It was only used twice, for what looks like adhoc debugging. This commit removes it, similarly to what was done for some spice_printerr() calls. --- server/red-channel.h | 3 --- server/red-qxl.c | 4 2 files changed, 7 deletions(-) diff --git a/server/red-channel.h b/server/red-channel.

[Spice-devel] [spice-server 2/4] Replace spice_printerr() use with red_channel_{debug, warning}

2018-06-28 Thread Christophe Fergeau
Depending on the context, we want to output a warning or just a debug log. --- server/dcc.c | 6 +++-- server/inputs-channel-client.c| 3 ++- server/inputs-channel.c | 6 ++--- server/main-channel-client.c | 42 ++- server/main

[Spice-devel] [spice-server 1/4] Remove unneeded spice_printerr() calls

2018-06-28 Thread Christophe Fergeau
These calls seem to have been added for debugging for a very specific purpose. At the very least, they should have been using g_debug() rather than spice_printerr(). This commit removes these. --- server/char-device.c | 1 - server/inputs-channel.c | 2 -- server/main-channel-client

[Spice-devel] [spice-server 3/4] Replace remaining spice_printerr() with g_warning()

2018-06-28 Thread Christophe Fergeau
The remaining occurrences of spice_printerr() are warnings when something unexpected happens, they can be replaced with g_warning() so that users of spice-server can redirect them with g_log_set_default_handler(). --- server/agent-msg-filter.c | 8 server/char-device.c| 8

Re: [Spice-devel] [spice-server 1/4] Remove unneeded spice_printerr() calls

2018-06-28 Thread Frediano Ziglio
> > These calls seem to have been added for debugging for a very specific > purpose. At the very least, they should have been using g_debug() rather > than spice_printerr(). This commit removes these. Acked the series > --- > server/char-device.c | 1 - > server/inputs-channel.c |

Re: [Spice-devel] [PATCH spice-common 1/2] build: Reuse TEST_MARSHALLERS macro

2018-06-28 Thread Christophe Fergeau
For the 2 patches, Acked-by: Christophe Fergeau On Thu, Jun 28, 2018 at 08:14:01AM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > tests/Makefile.am | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/tests/Makefile.am b/tests/Makefile.am > index

Re: [Spice-devel] [PATCH] Set default syslog mask to a lower level

2018-06-28 Thread Frediano Ziglio
> > This will allow printing run-time information to stderr (by using > LOG_NOTICE level) without classifying it as warning/error or by > enabling debug mode. Seems reasonable > --- > src/spice-streaming-agent.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > This follows a sugge

[Spice-devel] [spice-server] test-agent-msg-filter: Adjust for recent logging changes

2018-06-28 Thread Christophe Fergeau
Now warnings are printed through g_warning which causes the test to fail. We need to use g_test_expect_message() to prevent that failure. Signed-off-by: Christophe Fergeau --- server/tests/test-agent-msg-filter.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/server/tests/test-a

Re: [Spice-devel] [PATCH] Set default syslog mask to a lower level

2018-06-28 Thread Snir Sheriber
Hi On 06/28/2018 03:47 PM, Frediano Ziglio wrote: This will allow printing run-time information to stderr (by using LOG_NOTICE level) without classifying it as warning/error or by enabling debug mode. Seems reasonable --- src/spice-streaming-agent.cpp | 2 +- 1 file changed, 1 insertion(+

[Spice-devel] [PATCH spice-common 0/6] quic: Unify the 2 template files

2018-06-28 Thread Frediano Ziglio
QUIC is implemented using 2 C template files. One for single channel and one for multiple (RGB) channels. Unify the 2 templates to have a single source. Frediano Ziglio (6): quic: Call encode from golomb_coding quic: Continue template unification quic: Other template unification quic: More

[Spice-devel] [PATCH spice-common 1/6] quic: Call encode from golomb_coding

2018-06-28 Thread Frediano Ziglio
golomb_coding is always followed by a encode call. Simplify code calling directly it, no reason to pass back output using pointers. Signed-off-by: Frediano Ziglio --- common/quic.c | 2 ++ common/quic_family_tmpl.c | 6 ++ common/quic_rgb_tmpl.c| 43

[Spice-devel] [PATCH spice-common 4/6] quic: More template unification, unify macros

2018-06-28 Thread Frediano Ziglio
Start defining the macro the same for both templates. Unify function initial declaration using DECLARE_CHANNEL_VARIABLES and DECLARE_STATE_VARIABLES macros. Signed-off-by: Frediano Ziglio --- common/quic_rgb_tmpl.c | 160 ++ common/quic_tmpl.c | 192 ++

[Spice-devel] [PATCH spice-common 2/6] quic: Continue template unification

2018-06-28 Thread Frediano Ziglio
Define SAME_PIXEL also for single channel. Define _PIXEL_A in single channel similarly to rgb. Define COMPRESS_xx/UNCOMPRESS_xx macros in a more similar way, using channel name. Signed-off-by: Frediano Ziglio --- common/quic_rgb_tmpl.c | 18 +++--- common/quic_tmpl.c | 141 +

[Spice-devel] [PATCH spice-common 6/6] quic: Remove duplicate file

2018-06-28 Thread Frediano Ziglio
Now that the 2 template files are the same we can use a single file. Signed-off-by: Frediano Ziglio --- common/Makefile.am | 1 - common/quic.c | 8 +- common/quic_rgb_tmpl.c | 669 - 3 files changed, 4 insertions(+), 674 deletions(-) del

[Spice-devel] [PATCH spice-common 3/6] quic: Other template unification

2018-06-28 Thread Frediano Ziglio
Use a APPLY_ALL_COMP macro to unify single/multiple channel processing. Make declaration on compress_rowXX function more similar. Call directly encode_state_run from templates. Signed-off-by: Frediano Ziglio --- common/quic.c | 21 -- common/quic_rgb_tmpl.c | 110 --

[Spice-devel] [PATCH spice-common 5/6] quic: Make the template identical

2018-06-28 Thread Frediano Ziglio
Define and reuse a COPY_PIXEL macro to copy a pixel. After this commit the 2 template files are exactly the same. Signed-off-by: Frediano Ziglio --- common/quic_rgb_tmpl.c | 11 --- common/quic_tmpl.c | 9 - 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/com

Re: [Spice-devel] [spice-server] test-agent-msg-filter: Adjust for recent logging changes

2018-06-28 Thread Frediano Ziglio
> > Now warnings are printed through g_warning which causes the test to > fail. We need to use g_test_expect_message() to prevent that failure. > > Signed-off-by: Christophe Fergeau > --- > server/tests/test-agent-msg-filter.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git

Re: [Spice-devel] Windows 10 KVM guest very slow in SPICE console

2018-06-28 Thread Carlos González
2018-06-26 14:06 GMT-05:00 Carlos González : > I guess the spice-server patch will need more testing before release? > > Finally, and just mere curiosity, > with 3D would you perhaps mean 3D graphic acceleration? > Are there by chance plans for supporting host-to-guest copy-pasting of > directorie

[Spice-devel] 3D and clipboard (was: Windows 10 KVM guest very slow in SPICE console)

2018-06-28 Thread Frediano Ziglio
> 2018-06-26 14:06 GMT-05:00 Carlos González < piteccel...@gmail.com > : > > I guess the spice-server patch will need more testing before release? > > > Finally, and just mere curiosity, > > > with 3D would you perhaps mean 3D graphic acceleration? > > > Are there by chance plans for supportin

Re: [Spice-devel] [PATCH] Set default syslog mask to a lower level

2018-06-28 Thread Frediano Ziglio
> > Hi > > > On 06/28/2018 03:47 PM, Frediano Ziglio wrote: > >> This will allow printing run-time information to stderr (by using > >> LOG_NOTICE level) without classifying it as warning/error or by > >> enabling debug mode. > > Seems reasonable > > > >> --- > >> src/spice-streaming-agent.cpp

Re: [Spice-devel] 3D and clipboard (was: Windows 10 KVM guest very slow in SPICE console)

2018-06-28 Thread Jakub Janku
Hi, On Thu, Jun 28, 2018 at 4:53 PM, Frediano Ziglio wrote: >> 2018-06-26 14:06 GMT-05:00 Carlos González < piteccel...@gmail.com > : > >> > I guess the spice-server patch will need more testing before release? >> > >> > Finally, and just mere curiosity, >> >> > with 3D would you perhaps mean 3D

[Spice-devel] [PATCH spice-gtk] Replace spice_printerr() with g_warning()

2018-06-28 Thread Frediano Ziglio
The remaining occurrences of spice_printerr() are warnings when something unexpected happens, they can be replaced with g_warning() so that users of spice-server can redirect them with g_log_set_default_handler(). Signed-off-by: Frediano Ziglio --- src/channel-display.c | 6 +++--- 1 file change

[Spice-devel] [PATCH spice-common] log: Remove spice_printerr macro

2018-06-28 Thread Frediano Ziglio
All usages of this macro were removed. A library should not log to standard error but use log facilities so remove this macro to avoid possible future usage. Signed-off-by: Frediano Ziglio --- common/log.h | 4 1 file changed, 4 deletions(-) diff --git a/common/log.h b/common/log.h index e

[Spice-devel] Recommended place to get drivers

2018-06-28 Thread Carlos González
First thanks all for helping in my previous thread. Since last answers were posted under a different thread title, I realized I did make a mistake in trying to mix different topics in a single thread. Sorry. Back to topic, I think I'm still globally confused regarding where to get all needed Windo

[Spice-devel] [PATCH spice-protocol] qxl_dev: Align QXLRam to 4 bytes

2018-06-28 Thread Frediano Ziglio
This avoids compilers detect misaligned access. The structure is allocated at the beginning of a page so surely will be 4 bytes aligned. Aligning to 4 bytes maintains the size of the structure unchanged avoiding possible ABI changes. clang currently generates an invalid function call if a misaligne

Re: [Spice-devel] [vdagent-win PATCH v2 2/9] Minor overflow checks improvements

2018-06-28 Thread Jonathon Jongsma
On Wed, 2018-06-27 at 14:57 +0100, Frediano Ziglio wrote: > Although source of these data should be safe improve data checks > to avoid some overflows. > > Signed-off-by: Frediano Ziglio > --- > vdagent/vdagent.cpp | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > > diff