Re: [Spice-devel] [PATCH spice-server v2] red-parse-qxl: Avoid invalid flag usage

2018-07-03 Thread Christophe Fergeau
is > + * command so reset it. */ > +red_drawable->self_bitmap = false; Looks to me, ideally we could warn once when this is unexpectedly set, but we are missing helpers for that at the moment. Looks good otherwise, Acked-by: Christophe Fergeau Christophe > + > +

Re: [Spice-devel] [PATCH spice-common v3] lz: Avoid buffer reading overflow checking for image type

2018-07-03 Thread Christophe Fergeau
Hey, On Tue, Jun 26, 2018 at 10:31:00AM +0100, Frediano Ziglio wrote: > The type of the image is just copied from network without > any check and later used for array indexing. Have you considered something like this? This way we can be sure no code can overflow the IS_IMAGE_TYPE_PLT[] array.

Re: [Spice-devel] [PATCH spice-common] test-marshallers: Check for "zero" attribute

2018-07-03 Thread Christophe Fergeau
Acked-by: Christophe Fergeau (when reverting this commit, compilation of the test case fails, with this commit in, the test case succeeds) Christophe On Thu, Jun 28, 2018 at 07:40:20AM +0100, Frediano Ziglio wrote: > Check the previous fix for "zero" attribute works correc

Re: [Spice-devel] [PATCH spice-server v3] memslot: Remove error parameter from memslot_get_virt

2018-07-03 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, Jul 03, 2018 at 11:24:03AM +0100, Frediano Ziglio wrote: > Pointers to memory allocated in user space are never NULL. > The only exception can be if you explicitly map memory at zero. > There is however no reasons for such requirement and this

[Spice-devel] [spice-common v2 3/3] build: Remove spice_common.h

2018-07-03 Thread Christophe Fergeau
Most users of spice_common.h don't need it, or only need log.h. It only has a few users outside of spice-common. It's not very well defined which headers it should contain. This commit removes spice_common.h in favour of direct inclusion of the needed headers. Signed-off-by: Christophe Fergeau

[Spice-devel] [spice-common v2 1/3] log: Remove SPICE_DISABLE_ABORT

2018-07-03 Thread Christophe Fergeau
spice-gtk was the last user, and stopped using it on Jun 14th 2017 in 040090ccba34 "build-sys: remove -DSPICE_DISABLE_ABORT" Signed-off-by: Christophe Fergeau --- common/log.c | 4 common/spice_common.h | 4 tests/test-logging.c | 14 ++ 3 files

[Spice-devel] [spice-common v2 2/3] common: Remove spice_abort()

2018-07-03 Thread Christophe Fergeau
There are only 2 users in spice-common, and none in spice-gtk/spice Signed-off-by: Christophe Fergeau --- common/pixman_utils.c | 4 ++-- common/spice_common.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/pixman_utils.c b/common/pixman_utils.c index 81806c9

[Spice-devel] [spice-server] build: Remove unneeded spice_common.h includes

2018-07-03 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- server/dispatcher.c | 1 - server/red-common.h | 1 - 2 files changed, 2 deletions(-) diff --git a/server/dispatcher.c b/server/dispatcher.c index 0953db875..48dc915a6 100644 --- a/server/dispatcher.c +++ b/server/dispatcher.c @@ -26,7 +26,6 @@ #include

Re: [Spice-devel] [PATCH] Avoid NULL-dereference if canvas_get_image errors out

2018-07-03 Thread Christophe Fergeau
On Fri, Jun 29, 2018 at 05:21:22PM +0200, Christophe de Dinechin wrote: > From: Christophe de Dinechin > > In some error cases, canvas_get_image may return NULL. > When this happens, calls like pixman_image_get_width(s) > will crash. Add additional error paths to deal with > these cases. I

[Spice-devel] [spice-common] log: Remove SPICE_DISABLE_ABORT

2018-07-03 Thread Christophe Fergeau
spice-gtk was the last user, and stopped using it in 90ccba34 "build-sys: remove -DSPICE_DISABLE_ABORT" Signed-off-by: Christophe Fergeau --- common/log.c | 4 common/spice_common.h | 4 tests/test-logging.c | 14 ++ 3 files changed, 2 inserti

Re: [Spice-devel] [PATCH spice-server 2/3] test-codecs-parsing: Add test case

2018-07-03 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Jun 27, 2018 at 08:00:36AM +0100, Frediano Ziglio wrote: > Check if encoder contains an invalid character. > > Signed-off-by: Frediano Ziglio > --- > server/tests/test-codecs-parsing.c | 6 ++ > 1 file changed, 6 insertions(+) >

Re: [Spice-devel] [PATCH spice-server 3/3] reds: Fix one case parsing invalid codec string

2018-07-03 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Jun 27, 2018 at 08:00:37AM +0100, Frediano Ziglio wrote: > In case we pass something like "spice:mjpeg$%*" the last part is > ignore making the string parse correctly. > A single pair should end by either string terminator or pair terminat

Re: [Spice-devel] Recommended place to get drivers

2018-07-03 Thread Christophe Fergeau
On Mon, Jul 02, 2018 at 01:20:39PM -0500, Carlos González wrote: > https://lists.freedesktop.org/archives/spice-devel/2018-June/044237.html > I just read spice-server thing is actually a hypervisor part. So if this > patch makes it to release, what would I need to update in order to test? > All

Re: [Libosinfo] [PATCH osinfo-db] freebsd: add FreeBSD 11.2 info

2018-07-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Sat, Jun 30, 2018 at 05:34:00PM +0400, Roman Bogorodskiy wrote: > Signed-off-by: Roman Bogorodskiy > --- > data/os/freebsd.org/freebsd-11.2.xml.in | 50 + > 1 file changed, 50 insertions(+) > create mode 100644 data

Re: [Libosinfo] [PATCH libosinfo] freebsd: add FreeBSD 11.2 isodata

2018-07-02 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Sat, Jun 30, 2018 at 05:34:36PM +0400, Roman Bogorodskiy wrote: > Signed-off-by: Roman Bogorodskiy > --- > .../FreeBSD-11.2-RELEASE-amd64-disc1.iso.txt | 33 +++ > .../FreeBSD-11.2-RELEASE-amd64-dvd1.is

Re: [Spice-devel] Recommended place to get drivers

2018-07-02 Thread Christophe Fergeau
On Fri, Jun 29, 2018 at 06:25:23PM -0500, Carlos González wrote: > 2018-06-29 10:34 GMT-05:00 Christophe Fergeau : > > > The way things flow are individual driver releases/builds (eg the > > qxl-wddm-dod build you found on spice-space.org), then they are gathered > > in t

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

2018-07-02 Thread Christophe Fergeau
e replaced with g_warning() so > > > that users of spice-server can redirect them with > > > g_log_set_default_handler(). > > > > Maybe squash this in? > > > > Either way, Acked-by: Christophe Fergeau > > > > I can do a follow up but IMO they don't see

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

2018-06-29 Thread Christophe Fergeau
Once the spice-gtk patch is in, Acked-by: Christophe Fergeau On Thu, Jun 28, 2018 at 04:42:25PM +0100, Frediano Ziglio wrote: > 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 fut

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

2018-06-29 Thread Christophe Fergeau
er(). Maybe squash this in? Either way, Acked-by: Christophe Fergeau diff --git a/src/channel-display.c b/src/channel-display.c index 44ba0439..1c28aed1 100644 --- a/src/channel-display.c +++ b/src/channel-display.c @@ -1211,7 +1211,7 @@ static void report_invalid_stream(SpiceChannel *channel,

Re: [Spice-devel] Recommended place to get drivers

2018-06-29 Thread Christophe Fergeau
On Thu, Jun 28, 2018 at 01:42:40PM -0500, Carlos González wrote: > 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

Re: [Spice-devel] [spice-server 3/4] docs: Add documentation for the streaming device

2018-06-29 Thread Christophe Fergeau
On Wed, Jun 27, 2018 at 10:37:29AM -0500, Jonathon Jongsma wrote: > Quick review from a native english speaker, as Frediano suggested. Thanks a lot! I've adjusted the patch following your comments! Christophe signature.asc Description: PGP signature

[virt-tools-list] [virt-viewer v2] ovirt: Improve handling of g_strv_contains()

2018-06-29 Thread Christophe Fergeau
. This commit wraps both the compat code and the g_strv_contains() call in a strv_contains() helper where we can hide the magic needed to avoid deprecation warnings. Signed-off-by: Christophe Fergeau --- src/ovirt-foreign-menu.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff

Re: [virt-tools-list] [virt-viewer 2/4] spice: Stop using deprecated SpiceMainChannel API

2018-06-29 Thread Christophe Fergeau
On Thu, Jun 28, 2018 at 05:09:48PM -0300, Eduardo Lima (Etrunko) wrote: > On 14/06/18 13:01, Christophe Fergeau wrote: > > spice_main_set_display and spice_main_set_display_enabled have been > > superseded by spice_main_channel_update_display and > > spice_main_channel_u

Re: [virt-tools-list] [virt-viewer 4/4] ovirt: Improve handling of g_strv_contains()

2018-06-29 Thread Christophe Fergeau
On Thu, Jun 28, 2018 at 04:45:01PM -0300, Eduardo Lima (Etrunko) wrote: > On 14/06/18 13:01, Christophe Fergeau wrote: > > The ovirt code uses g_strv_contains() with fallback code in > > glib-compat.h when we are using a glib version where it's not available. > > Howeve

[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

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

[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

[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 --

[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 ++-

[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

[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

Re: [Spice-devel] [PATCH spice-server 1/2] fixup! sound: Don't mute recording when client reconnects

2018-06-27 Thread Christophe Fergeau
Yup, integrated something similar already, forgot to resend. Christophe On Wed, Jun 27, 2018 at 03:46:38PM +0100, Frediano Ziglio wrote: > Style: > - split long lines; > - remove space between function and parameters. > --- > server/sound.c | 10 ++ > 1 file changed, 6 insertions(+), 4

[Spice-devel] [spice-server v3] sound: Don't mute recording when client reconnects

2018-06-27 Thread Christophe Fergeau
and RecordChannelClient implement GInitable, and move the code interacting with the client in their _initable_init() function, as at this point the objects will be able to send data. https://bugzilla.redhat.com/show_bug.cgi?id=1549132 Signed-off-by: Christophe Fergeau --- server/sound.c | 62

[Spice-devel] [spice-common 2/2] test-region: Don't call region_dump() by default

2018-06-27 Thread Christophe Fergeau
This prints to stdout, which is not desirable in an automated test. Signed-off-by: Christophe Fergeau --- tests/test-region.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/test-region.c b/tests/test-region.c index a5a5351..b7f5a22

[Spice-devel] [spice-common 1/2] test-region: Replace direct printf with g_debug() calls

2018-06-27 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- tests/test-region.c | 106 ++-- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/tests/test-region.c b/tests/test-region.c index 5a00cce..a5a5351 100644 --- a/tests/test-region.c +++ b/tests/test

Re: [Spice-devel] [PATCH spice-server 1/3] Add support for building with meson

2018-06-27 Thread Christophe Fergeau
On Wed, Jun 27, 2018 at 06:15:55AM -0400, Frediano Ziglio wrote: > > > > On Mon, Jun 18, 2018 at 12:04:18PM -0400, Frediano Ziglio wrote: > > > Not much replies to this specific patch, but I agree was better to > > > integrate dependencies (spice-protocol and spice-common) projects > > > first. >

Re: [Spice-devel] [spice-common v3 3/6] test-region: Replace direct printf with g_debug() calls

2018-06-27 Thread Christophe Fergeau
On Wed, Jun 27, 2018 at 06:04:16AM -0400, Frediano Ziglio wrote: > > > > Signed-off-by: Christophe Fergeau > > --- > > common/region.c | 28 ++-- > > tests/test-region.c | 106 ++-- > > 2 files cha

[Spice-devel] [spice-common v3 6/6] test-region: Add g_assert() checks

2018-06-27 Thread Christophe Fergeau
At the moment, test success/failure is only printed to stdout. This commit adds some g_assert() so that test failures can be automatically detected. --- tests/test-region.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tests/test-region.c

[Spice-devel] [spice-common v3 2/6] test-region: Use GTest API

2018-06-27 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- tests/test-region.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test-region.c b/tests/test-region.c index 38b3203..5a00cce 100644 --- a/tests/test-region.c +++ b/tests/test-region.c @@ -127,7 +127,7 @@ enum

[Spice-devel] [spice-common v3 1/6] test-region: Create proper test for region from source code

2018-06-27 Thread Christophe Fergeau
From: Frediano Ziglio region.c contained code to test the module. Separate test code into a proper test. Test is copied verbatim from the original code. Signed-off-by: Frediano Ziglio --- common/region.c | 378 - tests/Makefile.am | 12 ++

[Spice-devel] [spice-common v3 5/6] test-region: Replace spice_assert() with g_assert_true()

2018-06-27 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- tests/test-region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-region.c b/tests/test-region.c index 12fdfce..ec451c4 100644 --- a/tests/test-region.c +++ b/tests/test-region.c @@ -73,7 +73,7 @@ static void rect_set

[Spice-devel] [spice-common v3 4/6] test-region: Remove unneeded printf

2018-06-27 Thread Christophe Fergeau
__FUNCTION__ will always be rect_is_valid, and there is a g_assert to check the region is valid, so we will get notified anyway if the validity check fails. Signed-off-by: Christophe Fergeau --- tests/test-region.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test-region.c b/tests

[Spice-devel] [spice-common v3 3/6] test-region: Replace direct printf with g_debug() calls

2018-06-27 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- common/region.c | 28 ++-- tests/test-region.c | 106 ++-- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/common/region.c b/common/region.c index c950a9b..d690167 100644 --- a/common

Re: [Spice-devel] [PATCH spice-common v2] test-region: Create proper test for region from source code

2018-06-27 Thread Christophe Fergeau
On Tue, Jun 26, 2018 at 01:42:20PM -0400, Frediano Ziglio wrote: > Why use GTest API ? Mostly for consistency. > I honestly just created a test and I prefer to have at least a first commit > with a verbatim copy of the old test, in case we found some bugs later. > For me is more important to

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

2018-06-27 Thread Christophe Fergeau
VM, run some testing, ... which I don't really have time for right now, hence the lack of precise answer on my side ;) Christophe > > 2018-06-26 10:20 GMT-05:00 Christophe Fergeau : > > > On Tue, Jun 26, 2018 at 09:45:33AM -0500, Carlos González wrote: > > > 2018-06-

Re: [Spice-devel] [PATCH spice-server] red-channel: Store client callback data in ClientCbs

2018-06-27 Thread Christophe Fergeau
On Wed, Jun 27, 2018 at 03:13:00AM -0400, Frediano Ziglio wrote: > > ClientCbs is definitely not something which needs to be registered > > per-channel instance, it's more of a class thing, and the dispatcher is > > more something which could be thread local. I would not stick everything > >

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

2018-06-26 Thread Christophe Fergeau
On Tue, Jun 26, 2018 at 09:45:33AM -0500, Carlos González wrote: > 2018-06-26 4:54 GMT-05:00 Christophe Fergeau : > > > > > Not fully clear whether you installed the qxl-wddm-dod driver as > > suggested earlier or not. Are you using it in the guest? > > > > Ch

Re: [Spice-devel] [PATCH spice-server 2/2] memslot: Remove error parameter from memslot_get_virt

2018-06-26 Thread Christophe Fergeau
On Tue, Jun 19, 2018 at 11:05:26AM +0100, Frediano Ziglio wrote: > Pointers to memory allocated in user space are never NULL. > The only exception can be if you explicitly map memory at zero. > There is however no reasons for such requirement and this practise > was also removed from Linux due to

Re: [Spice-devel] [PATCH spice-server 1/2] memslot: Return void* from memslot_get_virt

2018-06-26 Thread Christophe Fergeau
ers. Acked-by: Christophe Fergeau but why isn't this removing all the other (Foo*)memslots_get_virt() casts from red-parse-qxl.c? I can send a followup patch. Christophe > > Signed-off-by: Frediano Ziglio > --- > server/memslot.c | 14 +++--- > server/memslot.h

Re: [Spice-devel] [PATCH spice-server 2/2] jpeg-encoder: Remove JPEG_IMAGE_TYPE_RGB24

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, Jun 19, 2018 at 11:05:25AM +0100, Frediano Ziglio wrote: > Never used. > > Signed-off-by: Frediano Ziglio > --- > server/jpeg-encoder.c | 16 ++-- > server/jpeg-encoder.h | 1 - > 2 files changed, 2 insertions(+), 15 d

Re: [Spice-devel] [PATCH spice-server 1/2] jpeg-encoder: Avoid useless conversions

2018-06-26 Thread Christophe Fergeau
On Tue, Jun 19, 2018 at 11:05:23AM +0100, Frediano Ziglio wrote: > Define JpegEncoderContext as an abstract structure. > This allows to reduce casts. > Also remove some alignment warnings on some architecture like mips. Hmm indeed, the indirection is a bit odd.. Acked-by: Christoph

Re: [Spice-devel] [PATCH spice-common] ssl_verify: Fix build for newer LibreSSL

2018-06-26 Thread Christophe Fergeau
own implementation for backward compatibility. Acked-by: Christophe Fergeau with the log fixed. Christophe signature.asc Description: PGP signature ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/sp

Re: [Spice-devel] [PATCH spice-gtk] Fix build for newer LibreSSL

2018-06-26 Thread Christophe Fergeau
_VERSION_NUMBER < > 0x2070) An alternative to this version checking would be to directly check for the function we need in configure.ac. This should be good enough for now, I'll look into that when we need to update that test again. Acked-by: Christophe Fergeau Christophe > static BIO_ME

Re: [Spice-devel] [PATCH spice-server 1/3] Add support for building with meson

2018-06-26 Thread Christophe Fergeau
On Mon, Jun 18, 2018 at 12:04:18PM -0400, Frediano Ziglio wrote: > Not much replies to this specific patch, but I agree was better to > integrate dependencies (spice-protocol and spice-common) projects > first. > > > diff --git a/subprojects/spice-common.wrap b/subprojects/spice-common.wrap > >

Re: [Spice-devel] [PATCH spice-common v2] test-region: Create proper test for region from source code

2018-06-26 Thread Christophe Fergeau
On Thu, Jun 21, 2018 at 10:32:53PM +0100, Frediano Ziglio wrote: > region.c contained code to test the module. > Separate test code into a proper test. > Test is copied verbatim from the original code. > > Signed-off-by: Frediano Ziglio > --- > common/region.c | 378

Re: [Spice-devel] [PATCH spice-common] test-quic: Increase test timeout using Meson

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Thu, Jun 21, 2018 at 10:32:52PM +0100, Frediano Ziglio wrote: > This test can take quite some amount of time to run. > > Signed-off-by: Frediano Ziglio > --- > tests/meson.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [Spice-devel] [PATCH spice-server] red-channel: Store client callback data in ClientCbs

2018-06-26 Thread Christophe Fergeau
Hey, This loops back on that old/unresolved discussion https://lists.freedesktop.org/archives/spice-devel/2017-August/039541.html I'd rather not make changes like this for now as we don't know where we want to go with these ClientCbs ;) The only reason why we have these ClientCbs is to be able

Re: [Spice-devel] [PATCH spice-common v2] canvas_base: Rework DUMP_JPEG debugging

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Tue, Jun 26, 2018 at 11:02:56AM +0100, Frediano Ziglio wrote: > The DUMP_JPEG compile time flag is used to dump all jpeg images > to files. > The code was saving garbage instead of proper data. > > Signed-off-by: Frediano Ziglio > Reported-

Re: [Spice-devel] [PATCH spice-server] red-record-qxl: Remove potential leak

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Jun 25, 2018 at 11:46:22AM +0100, Frediano Ziglio wrote: > On some systems you need to call g_spawn_close_pid after > spawning a process to avoid leaks (currently Windows). > > Signed-off-by: Frediano Ziglio > --- > server/red-record-qxl

Re: [Spice-devel] [PATCH spice-server] replay: Use GPid and G_PID_FORMAT for portability

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Jun 25, 2018 at 11:46:23AM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/tests/replay.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/server/tests/replay.c b/server/test

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

2018-06-26 Thread Christophe Fergeau
On Mon, Jun 25, 2018 at 01:56:14PM -0500, Carlos González wrote: > Just a bump. Not fully clear whether you installed the qxl-wddm-dod driver as suggested earlier or not. Are you using it in the guest? Christophe > > 2018-06-21 12:47 GMT-05:00 Carlos González : > > > Excuse me, some clue by

Re: [Spice-devel] [PATCH spice-common] canvas_base: Rework DUMP_JPEG debugging

2018-06-26 Thread Christophe Fergeau
_t n = 0; n < data->num_chunks; ++n) { > +fwrite(data->chunk[n].data, 1, data->chunk[n].len, f); > +} > fclose(f); > } > +#else > +static inline void dump_jpeg(SpiceChunks* data, uint32_t data_size) {} I'd jus trust the compiler to do the right thing here

Re: [Spice-devel] [PATCH spice-server] Add possibly missing headers for pthread.h

2018-06-26 Thread Christophe Fergeau
Ok, Acked-by: Christophe Fergeau On Wed, Jun 20, 2018 at 02:31:40PM +0100, Frediano Ziglio wrote: > In some environment pthread.h is not defined but its definitions > are used in some headers. > Actually happens using MingW. > > Signed-off-by: Frediano Ziglio > --- >

Re: [Spice-devel] [PATCH spice-server] display-channel: Do not use bzero

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Jun 20, 2018 at 02:31:41PM +0100, Frediano Ziglio wrote: > Used only in this file. > Not defined in MingW. > > Signed-off-by: Frediano Ziglio > --- > server/display-channel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [Spice-devel] [PATCH spice-common] test-quic: Allows to specify multiple images to test

2018-06-26 Thread Christophe Fergeau
f (argc >= 2) { > GdkPixbuf *source_pixbuf; > > -source_pixbuf = gdk_pixbuf_new_from_file(argv[1], NULL); > -test_pixbuf(source_pixbuf); > -g_object_unref(source_pixbuf); > +for (int i = 1; i < argc; ++i) { Looks like you could

Re: [Spice-devel] libressl fix for spice-gtk

2018-06-26 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 09:02:05AM -0400, Frediano Ziglio wrote: > > > > Hi, I maintain the spice-gtk port in FreeBSD and noticed that in > > spice-gtk-0.35, there was a fix for libressl but that fix needs to > > only apply to older versions of libressl. Here is a patch that > > implements this.

Re: [Spice-devel] [PATCH spice-common] test-quic: Add missing header for exit

2018-06-26 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Thu, Jun 21, 2018 at 11:52:52AM +0100, Frediano Ziglio wrote: > For some reasons building with Meson "exit" is not declared. > > Signed-off-by: Frediano Ziglio > --- > tests/test-quic.c | 1 + > 1 file changed, 1 insertion(+)

Re: [Spice-devel] [PATCH spice-server] Use PRIxPTR constant for string formatting

2018-06-26 Thread Christophe Fergeau
On Fri, Jun 22, 2018 at 11:28:50AM +0100, Frediano Ziglio wrote: > These constant are meant to be used in format string for size_t > types. Use them for portability. Alternatively, this could be G_GSIZE_FORMAT Christophe > > Signed-off-by: Frediano Ziglio > --- > server/red-record-qxl.c | 4

[ovirt-users] Re: [Spice-devel] Re: remote-viewer Spice Problem on MacOS

2018-06-26 Thread Christophe Fergeau
On Mon, Jun 25, 2018 at 06:15:30AM -0400, Frediano Ziglio wrote: > > +Spice devel mailing list. > > > On Thu, Jun 21, 2018, 11:57 PM John Florian < jflor...@doubledog.org > > > wrote: > > > > On 2018-06-21 08:20, Michal Skrivanek wrote: > > > > > > Any connectivity issue should no really be

Re: [Spice-devel] [ovirt-users] Re: remote-viewer Spice Problem on MacOS

2018-06-26 Thread Christophe Fergeau
On Mon, Jun 25, 2018 at 06:15:30AM -0400, Frediano Ziglio wrote: > > +Spice devel mailing list. > > > On Thu, Jun 21, 2018, 11:57 PM John Florian < jflor...@doubledog.org > > > wrote: > > > > On 2018-06-21 08:20, Michal Skrivanek wrote: > > > > > > Any connectivity issue should no really be

Re: [Spice-devel] [spice-common] test-logging: Improve debug level tests

2018-06-20 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 12:15:49PM -0400, Frediano Ziglio wrote: > Seems fine. Do you have a CI result? https://gitlab.com/teuf/spice-common/commit/49d7e4d4d9425c39e15f4f7ded7ae9675ca0e197/pipelines?ref=master signature.asc Description: PGP signature

Re: [Spice-devel] [spice-common] test-logging: Improve debug level tests

2018-06-20 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 12:15:49PM -0400, Frediano Ziglio wrote: > > > > These tests were checking that the expected messages were output, but > > they were not checking that the messages we don't want are not output. > > This commit adds this to make sure our log implementation does not > >

[Spice-devel] [spice-server] ssl: Allow to use ECDH ciphers with OpenSSL 1.0

2018-06-20 Thread Christophe Fergeau
Without an explicit call to SSL_CTX_set_ecdh_auto(reds->ctx, 1), OpenSSL 1.0 would not use ECDH ciphers (this is now automatic with OpenSSL 1.1.0). This commit adds this missing call. It's based on a suggestion from David Jasa Signed-off-by: Christophe Fergeau https://bugzilla.redhat.

[Spice-devel] [spice-common] test-logging: Improve debug level tests

2018-06-20 Thread Christophe Fergeau
These tests were checking that the expected messages were output, but they were not checking that the messages we don't want are not output. This commit adds this to make sure our log implementation does not output unwanted debug messages. --- tests/test-logging.c | 17 + 1 file

Re: [Spice-devel] [spice-common 2/2] log: spice_printerr goes through g_message

2018-06-20 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 10:16:56AM -0400, Frediano Ziglio wrote: > > > > --- > > common/log.h | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/common/log.h b/common/log.h > > index e0fd34b..4058208 100644 > > --- a/common/log.h > > +++ b/common/log.h > > @@

[Spice-devel] [spice-common 1/2] log: Only install glib log handler if SPICE_DEBUG_LEVEL is set

2018-06-20 Thread Christophe Fergeau
Calling g_log_set_handler() is problematic as this means applications using spice-server won't be able to use g_log_set_default_handler to manage spice logging output themselves. Since this call is only needed for backwards compatibility (so that calling g_log together with SPICE_DEBUG_LEVEL set

[Spice-devel] [spice-common 2/2] log: spice_printerr goes through g_message

2018-06-20 Thread Christophe Fergeau
--- common/log.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/log.h b/common/log.h index e0fd34b..4058208 100644 --- a/common/log.h +++ b/common/log.h @@ -57,9 +57,7 @@ void spice_log(GLogLevelFlags log_level, spice_log(G_LOG_LEVEL_WARNING, SPICE_STRLOC,

[ovirt-users] Re: [spice-list] Fwd: Fwd: VM hanging at boot - [drm] Initialized qxl

2018-06-20 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 12:38:00PM +0300, Yaniv Kaul wrote: > On Wed, Jun 20, 2018 at 12:26 PM, Christophe Fergeau > wrote: > > > > -- Forwarded message -- > > > > From: Leo David > > > > Date: Wed, Jun 13, 2018 at 8:24 PM > > >

Re: [Spice-devel] [PATCH] Update spice-common submodule url

2018-06-20 Thread Christophe Fergeau
Ah right, noticed that, iirc it's a bit odd as direct cloning without the .git works though. Acked-by: Christophe Fergeau On Wed, Jun 20, 2018 at 12:28:52PM +0300, Snir Sheriber wrote: > Old git (e.g. on rhel 7.5) is failing to init/update spice-common > submodule if .git is missin

Re: [Spice-devel] [PATCH] spice-common submodule: update url (add .git at the end)

2018-06-20 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Jun 20, 2018 at 12:28:58PM +0300, Uri Lublin wrote: > With the move to gitlab.freedesktop.org the spice-common submodule > url changed, and now ends with .git > > Update .gitmodules to reflect that. > > Without this patch gi

Re: [Spice-devel] [spice-list] Fwd: [ovirt-users] Fwd: VM hanging at boot - [drm] Initialized qxl

2018-06-20 Thread Christophe Fergeau
On Wed, Jun 20, 2018 at 12:38:00PM +0300, Yaniv Kaul wrote: > On Wed, Jun 20, 2018 at 12:26 PM, Christophe Fergeau > wrote: > > > > -- Forwarded message -- > > > > From: Leo David > > > > Date: Wed, Jun 13, 2018 at 8:24 PM > > >

Re: [Spice-devel] [RFC/POC PATCH spice-protocol 02/16] Create a version 2 of the VDAgentMonitorsConfig message

2018-06-20 Thread Christophe Fergeau
On Tue, Jun 19, 2018 at 05:30:46PM +0200, Lukáš Hrázký wrote: > I don't know. I've also just noticed today that the depth field > actually seems to be unused, besides being set in the client. The windows agent uses it

Re: [Spice-devel] how to open jpg binary file (/tmp/spice_dump/x.jpg)?

2018-06-20 Thread Christophe Fergeau
Hey, On Wed, Jun 20, 2018 at 02:14:54AM +, 谢 昆明 wrote: > Hey guys. I have dump some jpg file, but I can’t open it with eog. I don't understand how this relates to spice? Is this some spice code which is calling dump_jpeg? Christophe > > > static int jpeg_id = 0; > static void

Re: [Spice-devel] [spice-list] Fwd: [ovirt-users] Fwd: VM hanging at boot - [drm] Initialized qxl

2018-06-20 Thread Christophe Fergeau
On Tue, Jun 19, 2018 at 06:36:26AM -0400, David Blechter wrote: > ​re-directing to the correct upstream list. In the future all ovirt/spice > related issue should be address in the spice-de...@freedesktop.org list.​ > > > Thank you, > David Blechter > 978-392-3182 <(978)%20392-3182> > > On Tue,

Re: [Spice-devel] [Q]After install Windows guest tools - spice-guest-tools-latest , Spice Upside down display, how to solve it?

2018-06-20 Thread Christophe Fergeau
what spice client are you using? I think there were such issues with spice-html5 which were fixed a year ago with https://gitlab.freedesktop.org/spice/spice-html5/commit/bfa85a7117fcf28ff19f2507f61db4620da2e828

[Spice-devel] [spice-protocol] meson: Post-release bump to 0.12.15

2018-06-20 Thread Christophe Fergeau
This was done for configure.ac earlier, but is missing in meson.build Signed-off-by: Christophe Fergeau --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5ed4177..31531e2 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7

Re: [Spice-devel] [spice-server] build: Remove check for CELT

2018-06-20 Thread Christophe Fergeau
mon after recent changes there. > > > > Signed-off-by: Christophe Fergeau > > --- > > configure.ac | 10 -- > > 1 file changed, 10 deletions(-) > > > > diff --git a/configure.ac b/configure.ac > > index 1e569c30a..d71f0989f 100644 > > --- a/confi

[Spice-devel] [spice-server v2] build: Use SPICE_CHECK_CELT051 in configure.ac

2018-06-20 Thread Christophe Fergeau
in --help output. Signed-off-by: Christophe Fergeau --- configure.ac | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 1e569c30a..27898d2e6 100644 --- a/configure.ac +++ b/configure.ac @@ -181,15 +181,7 @@ AC_SUBST(PIXMAN_CFLAGS

[Spice-devel] [spice-server] build: Remove check for CELT

2018-06-20 Thread Christophe Fergeau
spice-server does not have any code depending on libcelt, such code is in spice-common. We can thus get rid of that check, especially as its default got out of sync with spice-common after recent changes there. Signed-off-by: Christophe Fergeau --- configure.ac | 10 -- 1 file changed

Re: [Spice-devel] [spice-server 3/4] docs: Add documentation for the streaming device

2018-06-18 Thread Christophe Fergeau
Ping? Christophe On Fri, Jun 08, 2018 at 04:25:28PM +0200, Christophe Fergeau wrote: > Signed-off-by: Christophe Fergeau > --- > docs/manual/manual.txt | 51 ++ > 1 file changed, 51 insertions(+) > > diff --git a/docs/manual/manual

Re: [Spice-devel] [spice-server 4/4] build: Prepare for 0.14.1 release

2018-06-18 Thread Christophe Fergeau
On Mon, Jun 18, 2018 at 10:24:11AM -0400, Frediano Ziglio wrote: > > > > Hi, > > > > On Fri, Jun 08, 2018 at 04:25:29PM +0200, Christophe Fergeau wrote: > > > Signed-off-by: Christophe Fergeau > > > --- > > > NEWS | 23 +

Re: [Spice-devel] [PATCH spice-server] red-channel-client: Do not allocate iovec array statically in the class

2018-06-18 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Jun 18, 2018 at 08:35:52AM +0100, Frediano Ziglio wrote: > This array is just used locally in red_channel_client_handle_outgoing > so declare it there. > > Signed-off-by: Frediano Ziglio > --- > server/red-channel-client.c | 9 -

Re: [Spice-devel] [PATCH spice-server] reds: Remove possible alignment warning using Clang

2018-06-18 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Jun 18, 2018 at 10:38:53AM +0100, Frediano Ziglio wrote: > Although capabilities inside link message are handled as arrays > of 4 bytes unsigned integers we don't need capabilities to be > aligned to 4 bytes just to call g_memdup so use

Re: [Spice-devel] [PATCH spice-server v2] Use "base" as pipe item base field name

2018-06-18 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Jun 18, 2018 at 11:29:38AM +0100, Frediano Ziglio wrote: > Most of pipe items use this name for the base field. > This also allows to use SPICE_UPCAST macros instead of a long > SPICE_CONTAINEROF. > > Signed-off-by: Frediano Ziglio >

[virt-tools-list] [virt-viewer 3/4] window: Adjust get_image_format() prototype

2018-06-14 Thread Christophe Fergeau
* (*)(void *)' [-Wcast-function-type] g_once(_formats_once, (GThreadFunc)init_image_formats, NULL); Signed-off-by: Christophe Fergeau --- src/virt-viewer-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index

[virt-tools-list] [virt-viewer 2/4] spice: Stop using deprecated SpiceMainChannel API

2018-06-14 Thread Christophe Fergeau
spice_main_set_display and spice_main_set_display_enabled have been superseded by spice_main_channel_update_display and spice_main_channel_update_display_enabled Signed-off-by: Christophe Fergeau --- src/virt-viewer-display-spice.c | 7 ++- src/virt-viewer-session-spice.c | 27

[virt-tools-list] [virt-viewer 4/4] ovirt: Improve handling of g_strv_contains()

2018-06-14 Thread Christophe Fergeau
. This commit wraps both the compat code and the g_strv_contains() call in a strv_contains() helper where we can hide the magic needed in the 2 cases to avoid compilation issues. Signed-off-by: Christophe Fergeau --- src/Makefile.am | 2 -- src/glib-compat.c| 35

[Spice-devel] [spice-gtk] main-channel: Fix deprecation annotation

2018-06-14 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- src/channel-main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel-main.h b/src/channel-main.h index 530378db..fd7a3bb3 100644 --- a/src/channel-main.h +++ b/src/channel-main.h @@ -113,7 +113,7 @@ void

Re: [Spice-devel] [PATCH spice-server v3 2/2] stream-channel: Send the full frame in a single message

2018-06-12 Thread Christophe Fergeau
Hey, On Wed, May 09, 2018 at 01:20:19PM +0200, Lukáš Hrázký wrote: > On Wed, 2018-05-09 at 05:18 -0400, Frediano Ziglio wrote: > > The agent send a single message, but reads/writes to the device are > > not atomic. Note that the current protocol introduce additional > > delays as the frames

Re: [Spice-devel] [spice-gtk 1/2] Update spice-common

2018-06-11 Thread Christophe Fergeau
Acked-by: Christophe Fergeau You probably need something like this for make distcheck/CI diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a34eb0e7..e2c35ef9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ before_script: makecheck: script: - - ./autogen.sh --enable

<    3   4   5   6   7   8   9   10   11   12   >