Re: [libvirt PATCH 00/20] qemu: Introduce hvf domain type for Hypervisor.framework

2022-01-21 Thread Christophe Fergeau
Hey, I tested this on an intel macbook, virsh capabilities shows 'hvf' for the x86_64 qemu binary, I started a f35 guest, -accel hvf is present on the command line, and the VM is a lot faster than without hvf. Feel free to add my Tested-by to the series: Tested-by: Christophe Fergeau Christophe

Re: [Spice-devel] [PATCH spice-common] build: Disable Celt support by default

2019-06-13 Thread Christophe Fergeau
Hey, yup fine with me too. Christophe On Thu, Jun 13, 2019 at 03:40:17AM -0400, Frediano Ziglio wrote: > > > > Hi, > > > > Fine with me. > > > > This is also related to > https://gitlab.freedesktop.org/spice/spice/merge_requests/2, > I talked with Christophe and he agreed would be sensible

Re: [virt-tools-list] [PATCH virt-viewer v3] ovirt-foreign-menu: Bypass errors from Host/Cluster/Data Center

2019-06-07 Thread Christophe Fergeau
On Fri, Jun 07, 2019 at 10:04:19AM -0300, Eduardo Lima (Etrunko) wrote: > On 6/6/19 1:22 PM, Christophe Fergeau wrote: > > Hey, > > > > I'm not really comfortable with that patch, which ignores some errors, > > and adds some code not to crash when we do that, in the h

Re: [virt-tools-list] [PATCH virt-viewer v3] ovirt-foreign-menu: Bypass errors from Host/Cluster/Data Center

2019-06-06 Thread Christophe Fergeau
Hey, I'm not really comfortable with that patch, which ignores some errors, and adds some code not to crash when we do that, in the hope that the end result will make sense. I'm under the impression that if the oVirt instance does not have the permissions issues that you mention, but if instead

Re: [Spice-devel] [PATCH 1/3] usb: use native libusb procedure for getting error name

2019-04-15 Thread Christophe Fergeau
On Mon, Apr 15, 2019 at 03:42:05PM +0300, Yuri Benditovich wrote: > IIUC, what you call 'simpler' is: > - making unneeded changes in several files (instead of one) > - in the next patch remove these changes completely > > Did I miss something? Ah I did not look at the next patches :) Since you

Re: [Spice-devel] [PATCH 1/3] usb: use native libusb procedure for getting error name

2019-04-15 Thread Christophe Fergeau
On Thu, Apr 11, 2019 at 12:37:17PM +, Victor Toso wrote: > Hi, > > On Thu, Apr 11, 2019 at 02:57:21PM +0300, Yuri Benditovich wrote: > > On Thu, Apr 11, 2019 at 12:35 PM Victor Toso wrote: > > > > > > Hi, > > > > > > On Wed, Apr 10, 2019 at 10:31:37PM +0300, Yuri Benditovich wrote: > > > >

Re: [Libosinfo] [osinfo-db PATCH] centos: Fix typo in the installation-url template

2019-04-15 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Apr 15, 2019 at 12:56:49PM +0200, Fabiano Fidêncio wrote: > The typo was introduced as part of b6f5ea9e6da. > > Signed-off-by: Fabiano Fidêncio > --- > data/install-script/centos.org/centos-kickstart-desktop.xml.in | 2 +- > data/install

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

2019-03-29 Thread Christophe Fergeau
| ^~~ Signed-off-by: Christophe Fergeau --- Maybe a bit too much for a single commit, I can split :) common/log.h| 8 ++-- common/macros.h | 8 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/common/log.h b/common/log.h index 7c67e7a..201c87a 1006

Re: [Spice-devel] [PATCH spice-protocol] protocol: Generate enums.h again to remove old protocol definitions

2019-03-29 Thread Christophe Fergeau
On Wed, Mar 27, 2019 at 04:24:02AM -0400, Frediano Ziglio wrote: > ping Acked-by: Christophe Fergeau though imo this should be reflected in version numbering ;) > > > > > > > This is breaking spice-protocol API even if this should not impact > > > curr

Re: [Spice-devel] [PATCH spice-server] char-device: Make RedClient an opaque structure again

2019-03-29 Thread Christophe Fergeau
On Tue, Mar 12, 2019 at 05:58:40AM -0400, Frediano Ziglio wrote: > ping I guess I would reword this as "char-device: Don't use RedClient API" RedCharDevice only use red_client_get_server() once, we can store a Reds* in RedCharDeviceClient instead. This will make it possible to turn the RedClient

Re: [Spice-devel] Two monitors Windows

2019-03-29 Thread Christophe Fergeau
Hey, Your VM configuration does not seem to have a spicevmc channel device, so I assume spice-vdagent is not running in the guest? This is required for proper mouse behaviour in multiscreen setups. Christophe On Thu, Mar 28, 2019 at 10:59:16AM +0100, Mathias Egekvist wrote: > Hi Spice

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

2019-03-29 Thread Christophe Fergeau
On Thu, Mar 28, 2019 at 10:27:46AM -0400, Frediano Ziglio wrote: > > 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 > > > > > --- > > > > >

Re: [Spice-devel] [PATCH spice-server] red-channel: Small comment on "core" field

2019-03-29 Thread Christophe Fergeau
For the series, Acked-by: Christophe Fergeau On Fri, Mar 29, 2019 at 12:29:58PM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/red-channel.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/server/red-channel.c b/server/red

Re: [libvirt] [PATCH v2 1/2] qemu: Fix "boolen" typo in API doc

2019-03-29 Thread Christophe Fergeau
Hey, On Wed, Mar 27, 2019 at 01:32:44PM +0100, Ján Tomko wrote: > Please use --cover-letter for series with two or more patches for neater > alignment of e-mails. > > On Wed, Mar 27, 2019 at 12:21:24PM +0100, Christophe Fergeau wrote: > > This also adjusts the argument

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

2019-03-29 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- common/verify.h | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/common/verify.h b/common/verify.h index 267de29..ecd8cdb 100644 --- a/common/verify.h +++ b/common/verify.h @@ -1,6 +1,6 @@ /* Compile-time assert

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

2019-03-29 Thread Christophe Fergeau
On Fri, Mar 29, 2019 at 06:44:49AM -0400, Frediano Ziglio wrote: > > > > Signed-off-by: Christophe Fergeau > > --- > > common/verify.h | 24 ++-- > > 1 file changed, 14 insertions(+), 10 deletions(-) > > > > diff --git a/common/ve

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

2019-03-29 Thread Christophe Fergeau
On Fri, Mar 29, 2019 at 06:51:54AM -0400, Frediano Ziglio wrote: > > > > Without the added abort(), it cannot know g_log(G_LOG_LEVEL_CRITICAL) > > will never return. > > > > Signed-off-by: Christophe Fergeau > > I prefer the "for" way. Bu

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

2019-03-29 Thread Christophe Fergeau
On Fri, Mar 29, 2019 at 07:18:35AM -0400, Frediano Ziglio wrote: > > On Fri, Mar 29, 2019 at 06:57:59AM -0400, Frediano Ziglio wrote: > > > > On Fri, Mar 29, 2019 at 11:30:46AM +0100, Christophe Fergeau wrote: > > > > > Without the added abort(), it canno

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

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

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

2019-03-29 Thread Christophe Fergeau
Without the added abort(), it cannot know g_log(G_LOG_LEVEL_CRITICAL) will never return. Signed-off-by: Christophe Fergeau --- common/log.h | 5 + 1 file changed, 5 insertions(+) diff --git a/common/log.h b/common/log.h index 7c67e7a..1482358 100644 --- a/common/log.h +++ b/common/log.h

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

2019-03-29 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 | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test-marshallers.h b/tests/test

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

2019-03-29 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 Acked-by: Frediano Ziglio --- common/lz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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

2019-03-29 Thread Christophe Fergeau
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 --- a/common/backtrace.c

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

2019-03-29 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 Acked-by: Frediano Ziglio --- common/quic.c | 4 ++-- 1 file changed, 2 insertions

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

2019-03-29 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 Acked-by: Frediano Ziglio --- common/canvas_base.c | 8 1 file changed, 4 insertions

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

2019-03-29 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- common/verify.h | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/common/verify.h b/common/verify.h index 267de29..3f3dece 100644 --- a/common/verify.h +++ b/common/verify.h @@ -1,10 +1,10 @@ /* Compile-time

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

2019-03-29 Thread Christophe Fergeau
On Thu, Mar 28, 2019 at 01:54:01PM -0400, Frediano Ziglio wrote: > > > > 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 > > --- > >

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

2019-03-29 Thread Christophe Fergeau
On Thu, Mar 28, 2019 at 01:56:06PM -0400, Frediano Ziglio wrote: > > > > Signed-off-by: Christophe Fergeau > > --- > > common/verify.h | 24 +++- > > 1 file changed, 15 insertions(+), 9 deletions(-) > > > > diff --git a/common/ve

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

2019-03-29 Thread Christophe Fergeau
On Thu, Mar 28, 2019 at 02:02:58PM -0400, Frediano Ziglio wrote: > > > > The for(;;) hack was taken from glib's logging macros. > > > > Signed-off-by: Christophe Fergeau > > --- > > common/log.h | 8 > > 1 file changed, 8 insertions(+) > &g

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

[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-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] [spice-gtk 2/2] win-usb-dev: Use 'stable' libusb_device pointers in GUdevClient::udev_list

2019-03-27 Thread Christophe Fergeau
Hey, On Wed, Mar 27, 2019 at 10:48:45AM +0200, Yuri Benditovich wrote: > On Tue, Mar 26, 2019 at 3:11 PM Christophe Fergeau > wrote: > > > > On Mon, Mar 25, 2019 at 08:03:05PM +0200, Yuri Benditovich wrote: > > > Yes, it looks like this finally does the same thing.

[libvirt] [PATCH v2 1/2] qemu: Fix "boolen" typo in API doc

2019-03-27 Thread Christophe Fergeau
This also adjusts the argument name which should be 'isListen' in both cases rather than 'listen'. Signed-off-by: Christophe Fergeau --- Changes since v1: - really fix 'boolen' typo src/qemu/qemu_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu

[libvirt] [PATCH v2 2/2] doc: Fix 'encryption' documentation

2019-03-27 Thread Christophe Fergeau
This also matches what virStorageEncryptionParseNode() is doing. Signed-off-by: Christophe Fergeau --- docs/formatdomain.html.in | 2 +- docs/formatstorage.html.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.html.in b/docs

Re: [libvirt] [PATCH 1/2] qemu: Fix "boolen" typo in API doc

2019-03-27 Thread Christophe Fergeau
On Wed, Mar 27, 2019 at 12:13:41PM +0100, Pino Toscano wrote: > On Wednesday, 27 March 2019 12:00:21 CET Christophe Fergeau wrote: > > This also adjusts the argument name which should be 'isListen' in both > > cases rather than 'listen'. > > > > Signed-off-by: Christoph

[libvirt] [PATCH 2/2] doc: Fix 'encryption' documentation

2019-03-27 Thread Christophe Fergeau
This also matches what virStorageEncryptionParseNode() is doing. Signed-off-by: Christophe Fergeau --- docs/formatdomain.html.in | 2 +- docs/formatstorage.html.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.html.in b/docs

[libvirt] [PATCH 1/2] qemu: Fix "boolen" typo in API doc

2019-03-27 Thread Christophe Fergeau
This also adjusts the argument name which should be 'isListen' in both cases rather than 'listen'. Signed-off-by: Christophe Fergeau --- src/qemu/qemu_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index

Re: [Spice-devel] [spice-gtk 2/2] win-usb-dev: Use 'stable' libusb_device pointers in GUdevClient::udev_list

2019-03-26 Thread Christophe Fergeau
On Mon, Mar 25, 2019 at 08:03:05PM +0200, Yuri Benditovich wrote: > Yes, it looks like this finally does the same thing. > From my personal point of view, this is less obvious than previous > code, so I would add 2 comments: > that we unreference the device from the new list > that we add

Re: [Spice-devel] [spice-gtk v2 10/13] win-usb-dev: maintain list of libusb devices

2019-03-25 Thread Christophe Fergeau
On Thu, Mar 21, 2019 at 05:16:03PM +0200, Yuri Benditovich wrote: > > > @@ -412,10 +428,17 @@ static void notify_dev_state_change(GUdevClient > > > *self, > > > GList *dev; > > > > > > for (dev = g_list_first(old_list); dev != NULL; dev = > > > g_list_next(dev)) { > > > -if

[Spice-devel] [spice-gtk 2/2] win-usb-dev: Use 'stable' libusb_device pointers in GUdevClient::udev_list

2019-03-25 Thread Christophe Fergeau
, this commit makes sure that we always keep the older instance in GUdevClient::udev_list. At the moment, this should not be making any difference, but will make things more consistent later on. Based on a patch from Yuri Benditovich. Signed-off-by: Christophe Fergeau --- Code is a bit longer this way

[Spice-devel] [spice-gtk 1/2] win-usb-dev: maintain list of libusb devices

2019-03-25 Thread Christophe Fergeau
From: Yuri Benditovich Change internal device list to maintain libusb devices instead of GUdevDevice objects. Create temporary GUdevDevice object only for indication to usb-dev-manager. Signed-off-by: Yuri Benditovich Acked-by: Christophe Fergeau --- Changes since version on the list

Re: [Spice-devel] [spice-gtk v2 00/13] use persistent libusb_device on Windows

2019-03-21 Thread Christophe Fergeau
On Thu, Mar 21, 2019 at 02:15:41PM +0100, Christophe Fergeau wrote: > Hey, > > Overall series looks good to me, you seem to have ignored most of the > suggestions to change the commit logs/comments, I dunno if that's > intentional? Actually, while doing the review, I adjusted

Re: [Spice-devel] [spice-gtk v2 10/13] win-usb-dev: maintain list of libusb devices

2019-03-21 Thread Christophe Fergeau
On Tue, Mar 19, 2019 at 07:56:05AM +0200, Yuri Benditovich wrote: > Change internal device list to maintain libusb devices > instead of GUdevDevice objects. Create temporary > GUdevDevice object only for indication to usb-dev-manager. > > Signed-off-by: Yuri Benditovich > --- >

Re: [Spice-devel] [spice-gtk v2 00/13] use persistent libusb_device on Windows

2019-03-21 Thread Christophe Fergeau
Hey, Overall series looks good to me, you seem to have ignored most of the suggestions to change the commit logs/comments, I dunno if that's intentional? Still a few comments on "win-usb-dev: maintain list of libusb devices" So apart from this patch, Acked-by: Christophe Fergeau

Re: [Spice-devel] [PATCH spice-server v2 2/2] worker: Fix potential sprintf overflow

2019-03-21 Thread Christophe Fergeau
On Wed, Mar 20, 2019 at 03:57:46PM +, Frediano Ziglio wrote: > From: Christophe Fergeau > > If worker->qxl->id is bigger than 0x7ff (in other words, it's a > negative signed int) then > printf(worker_str, "display[%d]", worker->qxl->id); > wil

Re: [Spice-devel] [PATCH spice-server 2/2] red-worker: Avoid possible string formatting warning

2019-03-20 Thread Christophe Fergeau
by: Frediano Ziglio > > > --- > > > server/red-worker.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > This was signaled by Christophe Fergeau > > > > > > diff --git a/server/red-worker.c b/server/red

Re: [Spice-devel] [PATCH spice-server 2/2] red-worker: Avoid possible string formatting warning

2019-03-20 Thread Christophe Fergeau
gt; > This was signaled by Christophe Fergeau > > diff --git a/server/red-worker.c b/server/red-worker.c > index 8051d1e4..a25a0cd8 100644 > --- a/server/red-worker.c > +++ b/server/red-worker.c > @@ -1291,7 +1291,7 @@ RedWorker* red_worker_new(QXLInstance *qxl, > worke

Re: [Spice-devel] [PATCH spice-server 1/2] test-stream-device: Remove interface before next loop

2019-03-19 Thread Christophe Fergeau
On Tue, Mar 19, 2019 at 01:01:54PM +, Frediano Ziglio wrote: > We should not reuse the same interface twice as doing so will > cause dandling pointers. 'dangling' Acked-by: Christophe Fergeau > Unregister it at every iteration. > > Signed-off-by: Frediano Ziglio > -

Re: [Spice-devel] [PATCH spice-server 2/2] reds: Check we don't register a channel twice in reds_register_channel

2019-03-19 Thread Christophe Fergeau
On Tue, Mar 19, 2019 at 01:01:55PM +, Frediano Ziglio wrote: > To avoid possibly regression check it only if extra checks are "To avoid possible/potential regressions, check it .." > enabled. > This allows to check previous "Move channel registration to constructed > vfunc" commit. > >

Re: [Spice-devel] [spice-gtk v3] smartcard: Warn if multiple readers are detected

2019-03-18 Thread Christophe Fergeau
Ping? Or should I just go with one of the earlier versions? On Fri, Feb 22, 2019 at 11:40:32AM +0100, Christophe Fergeau wrote: > spice-server does not deal properly with multiple smartcard readers, > only the first one will be working. Add a warning when this happens to > make

Re: [Spice-devel] [spice-gtk v2 2/2] win-usb-dev: remove ifdef for libusb on 1.0.13

2019-03-18 Thread Christophe Fergeau
On Fri, Feb 22, 2019 at 05:42:22PM +, Victor Toso wrote: > From: Victor Toso > > We already require libusb 1.0.16 or above since 8269a5be62f4ce1 > (build-sys: drop support for libusb < 1.0.16) > > Signed-off-by: Victor Toso > --- > src/win-usb-dev.c | 4 +--- > 1 file changed, 1

Re: [Spice-devel] [PATCH spice-common v3 0/5] Generate C declarations automatically

2019-03-18 Thread Christophe Fergeau
On Mon, Mar 11, 2019 at 12:42:10PM -0400, Frediano Ziglio wrote: > > > > Series looks good to me, > > > > Reviewed-by: Christophe Fergeau > > > > Why not ack? Not good enough? Not tested? Missing something? libvirt/qemu use of Reviewed-by/Acked-by confuses

Re: [Spice-devel] [PATCH spice-protocol] protocol: Generate enums.h again to remove old protocol definitions

2019-03-18 Thread Christophe Fergeau
This is breaking spice-protocol API even if this should not impact current code. Do we want to advertise this somehow? Switch to spice-protocol 0.14.x? On Fri, Feb 22, 2019 at 12:16:52PM +, Frediano Ziglio wrote: > spice.proto was updated to remove really old definitions, > update enums.h

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

2019-03-18 Thread Christophe Fergeau
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 > index 9351141c8..25a3a030c

Re: [Spice-devel] [PATCH spice-server 1/2] docs: Fix typo

2019-03-18 Thread Christophe Fergeau
On Mon, Mar 11, 2019 at 02:03:32PM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > docs/spice_threading_model.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/docs/spice_threading_model.txt b/docs/spice_threading_model.txt > index

Re: [Spice-devel] [PATCH spice-server 1/2] Update spice-common submodule

2019-03-18 Thread Christophe Fergeau
For the series: Acked-by: Christophe Fergeau On Fri, Mar 08, 2019 at 12:25:48PM +, Frediano Ziglio wrote: > This brings in the following changes: > > Frediano Ziglio (11): > codegen: Document ptr_array attribute > codegen: Use a better type for pointer conve

Re: [Spice-devel] [PATCH spice-server] syntax-check: Add missing contributors names to AUTHORS

2019-03-18 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Mon, Mar 18, 2019 at 10:57:41AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > AUTHORS | 1 + > 1 file changed, 1 insertion(+) > > This fixed "make syntax-check" > > diff --git a/AUTHORS b/AUTHORS

Re: [Spice-devel] [spice-gtk 12/13] usb-redir: use persistent libusb_device under Windows also

2019-03-13 Thread Christophe Fergeau
On Wed, Mar 13, 2019 at 10:38:09AM +0200, Yuri Benditovich wrote: > On Tue, Mar 12, 2019 at 7:31 PM Christophe Fergeau > wrote: > > > > On Sun, Mar 10, 2019 at 04:46:11PM +0200, Yuri Benditovich wrote: > > > Unify SpiceUsbDeviceInfo for Linux and Windows by using >

Re: [Spice-devel] [PATCH spice-common] test-ssl-verify: Improve subject_to_x509_name coverage

2019-03-13 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Mar 13, 2019 at 12:20:22PM +, Frediano Ziglio wrote: > Check that attempting to quote an invalid character result in > a error. > > Signed-off-by: Frediano Ziglio > --- > tests/test-ssl-verify.c | 1 + > 1 file changed, 1 inserti

Re: [Spice-devel] [spice-gtk 10/13] win-usb-dev: maintain list of libusb devices

2019-03-13 Thread Christophe Fergeau
On Wed, Mar 13, 2019 at 09:36:06AM +0200, Yuri Benditovich wrote: > On Tue, Mar 12, 2019 at 7:22 PM Christophe Fergeau > wrote: > > > > On Sun, Mar 10, 2019 at 04:46:09PM +0200, Yuri Benditovich wrote: > > > Change internal device list to maintain libusb devices &

Re: [Spice-devel] [spice-gtk 02/13] usb-redir: remove unused 'subsystem' parameter

2019-03-13 Thread Christophe Fergeau
On Wed, Mar 13, 2019 at 09:49:19AM +0200, Yuri Benditovich wrote: > On Mon, Mar 11, 2019 at 7:07 PM Christophe Fergeau > wrote: > > > > On Sun, Mar 10, 2019 at 04:46:01PM +0200, Yuri Benditovich wrote: > > > Removing unused parameter for GUdevClient constructor. >

Re: [Spice-devel] [spice-gtk 04/13] usb-redir: do not add device if one with the same bus:addr exists

2019-03-13 Thread Christophe Fergeau
On Wed, Mar 13, 2019 at 09:40:14AM +0200, Yuri Benditovich wrote: > On Mon, Mar 11, 2019 at 7:17 PM Christophe Fergeau > wrote: > > > > On Sun, Mar 10, 2019 at 04:46:03PM +0200, Yuri Benditovich wrote: > > > In initial device enumeration hotplug notificatio

Re: [Spice-devel] [spice-gtk 13/13] win-usb-dev: remove unused code

2019-03-12 Thread Christophe Fergeau
Great :) Acked-by: Christophe Fergeau On Sun, Mar 10, 2019 at 04:46:12PM +0200, Yuri Benditovich wrote: > Remove unused code related to GUdevDevice. > > Signed-off-by: Yuri Benditovich > --- > src/win-usb-dev.c | 74 --- > src/

Re: [Spice-devel] [spice-gtk 12/13] usb-redir: use persistent libusb_device under Windows also

2019-03-12 Thread Christophe Fergeau
On Sun, Mar 10, 2019 at 04:46:11PM +0200, Yuri Benditovich wrote: > Unify SpiceUsbDeviceInfo for Linux and Windows by using > persistent libusb_device. This really needs to be more detailed and explain why this is no longer a valid concern: * On win32 we need to do this the hard and slow way, by

Re: [Spice-devel] [spice-gtk 11/13] win-usb-dev: report libusb_device via signal

2019-03-12 Thread Christophe Fergeau
oid > g_udev_client_initable_iface_init(GInitableIface *iface) > > static void g_udev_notify_device(GUdevClient *self, libusb_device *dev, int > add) > { > -GUdevDeviceInfo *udevinfo; > -GUdevDevice *udevice; > -udevinfo = g_new0(GUdevDeviceInfo, 1); > -

Re: [Spice-devel] [spice-gtk 10/13] win-usb-dev: maintain list of libusb devices

2019-03-12 Thread Christophe Fergeau
sb_device in the new list, when > + usb-dev-manager will maintain its own list of libusb_device, > + these lists will be completely consistent */ > +libusb_device *temp = found->data; > +found->data = dev->data; > +dev->data = temp; Is this chunk required in this commit for proper behaviour the usb code? Or will it be required in some follow-up commit? If it's only going to be required later, I'd squash this bit in the commit where it's needed so that it's clearer why we want this. Apart from these, Acked-by: Christophe Fergeau signature.asc Description: PGP signature ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [spice-gtk 09/13] win-usb-dev: do not allocate memory for hub devices

2019-03-12 Thread Christophe Fergeau
On Sun, Mar 10, 2019 at 04:46:08PM +0200, Yuri Benditovich wrote: > When processing list of USB devices, avoid allocating memory > for devices which later will be skipped. Use existing libusb > struct first to check whether the device shall be excluded. I probably would reword the short log

Re: [Spice-devel] [spice-gtk 08/13] usb-redir: change signal prototype of win-usb-dev

2019-03-12 Thread Christophe Fergeau
On Sun, Mar 10, 2019 at 04:46:07PM +0200, Yuri Benditovich wrote: > Changing signal definition from (boxed-boxed) to (pointer,int). > There is no need for additional referencing of GUdevDevice > object before signal callback. I still feel it would be nicer to guarantee the GUdevDevice will stay

Re: [Spice-devel] [spice-gtk 07/13] usb-redir: discard cold-plug device list under Windows

2019-03-12 Thread Christophe Fergeau
oldplug_list, 1); > -priv->coldplug_list = NULL; > +g_udev_client_report_devices(priv->udev); I think I would have gone with 'coldplug' or 'signal' instead of 'report" but that really is nitpicking Acked-by: Christophe Fergeau signature.asc Description: PGP signature ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [PATCH spice-server] char-device: Make RedClient an opaque structure again

2019-03-12 Thread Christophe Fergeau
On Tue, Mar 12, 2019 at 05:58:40AM -0400, Frediano Ziglio wrote: > ping > > > > > RedClient was an opaque structure for RedCharDevice. > > It started to be used when RedsState started to contain all > > the global state. > > Make it opaque again. It seems we don't put the same meaning to

Re: [Spice-devel] [vdagent-win PATCH] Remove support for very old Fedora versions

2019-03-12 Thread Christophe Fergeau
Ah sure, Acked-by: Christophe Fergeau On Wed, Feb 27, 2019 at 10:02:37AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > mingw-spice-vdagent.spec.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mingw-spice-vdagent.spe

Re: [Spice-devel] [spice-gtk 06/13] win-usb-dev: remove unused procedure

2019-03-11 Thread Christophe Fergeau
On Sun, Mar 10, 2019 at 04:46:05PM +0200, Yuri Benditovich wrote: > Remove unused g_udev_device_get_sysfs_attr. > Indeed, last user was apparently removed in 45cfbe8f86c in July 2013. Acked-by: Christophe Fergeau > Signed-off-by: Yuri Benditovich > --- > src/win

Re: [Spice-devel] [spice-gtk 04/13] usb-redir: do not add device if one with the same bus:addr exists

2019-03-11 Thread Christophe Fergeau
On Sun, Mar 10, 2019 at 04:46:03PM +0200, Yuri Benditovich wrote: > In initial device enumeration hotplug notification can be > called twice with the same libusb device. For details, see > http://libusb.sourceforge.net/api-1.0/group__libusb__hotplug.html#ga00e0c69ddf1fb1b6774dc918192e8dc7 > Filter

Re: [Spice-devel] [spice-gtk 04/13] usb-redir: do not add device if one with the same bus:addr exists

2019-03-11 Thread Christophe Fergeau
, > which add devices under Windows. "It also removes the identical call ..., which adds devices..." Acked-by: Christophe Fergeau > > Signed-off-by: Yuri Benditovich > --- > src/usb-device-manager.c | 22 +++--- > 1 file changed, 11 insertions(+), 11 de

Re: [Spice-devel] [spice-gtk 03/13] usb-redir: reuse libusb context under Windows

2019-03-11 Thread Christophe Fergeau
reuse the existing one created by win-usb-dev.c » + an explanation why we want to do that. Iirc, we need a shared libusb_context if we want to share libusb_device between the 2 files, so I'd add that to the commit log. Apart from this, Acked-by: Christophe Fergeau > > Signed-off-by: Yuri

Re: [Spice-devel] [spice-gtk 02/13] usb-redir: remove unused 'subsystem' parameter

2019-03-11 Thread Christophe Fergeau
ode. Apart from this minor comment, Acked-by: Christophe Fergeau Christophe > > Signed-off-by: Yuri Benditovich > --- > src/usb-device-manager.c | 5 + > src/win-usb-dev.c| 2 +- > src/win-usb-dev.h| 2 +- > 3 files changed, 3 insertions(+), 6 dele

Re: [Spice-devel] [spice-gtk 01/13] usb-redir: replace USE_GUDEV with G_OS_WIN32

2019-03-11 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Sun, Mar 10, 2019 at 04:46:00PM +0200, Yuri Benditovich wrote: > Replacing USE_GUDEV with G_OS_WIN32 anywhere. GUDEV simulation > is used only in Windows build. > > Signed-off-by: Yuri Benditovich > --- > src/usb-dev

Re: [Spice-devel] [PATCH spice-common v3 0/5] Generate C declarations automatically

2019-03-11 Thread Christophe Fergeau
Series looks good to me, Reviewed-by: Christophe Fergeau On Mon, Mar 11, 2019 at 01:59:09PM +, Frediano Ziglio wrote: > Allows to declare C declarations (that were in common/messages.h) > automatically. > I added an attribute to: > - be compatible; > - allows to de

Re: [Spice-devel] [PATCH spice-common 4/9] codegen: Allows to generate C declarations automatically

2019-03-11 Thread Christophe Fergeau
On Fri, Mar 08, 2019 at 04:47:35PM -0500, Frediano Ziglio wrote: > > > > On Sun, Mar 03, 2019 at 07:10:25PM +, Frediano Ziglio wrote: > > > Allows to specify a @declare attribute for messages and structure > > > that can generate the needed C structures. > > > > > > Signed-off-by: Frediano

Re: [Spice-devel] [PATCH spice-common 3/9] codegen: Generate headers while generating code

2019-03-11 Thread Christophe Fergeau
On Fri, Mar 08, 2019 at 04:42:24PM -0500, Frediano Ziglio wrote: > > > > > > Bit unsure about the option name. --header-name maybe? Or just infer it > > from the .c file name? > > > > It's similar to --generate-enums and similars. Yes, on the other end this > option is an additional generation

Re: [Spice-devel] [PATCH spice-common 5/9] Allow to generate C declarations for spice.proto

2019-03-11 Thread Christophe Fergeau
On Fri, Mar 08, 2019 at 04:51:20PM -0500, Frediano Ziglio wrote: > > > > On Sun, Mar 03, 2019 at 07:10:26PM +, Frediano Ziglio wrote: > > > Generate and include C declarations. > > > Next patch will use this facility. > > > > Since none of the spice.proto types are decorated with @declare,

Re: [Spice-devel] [spice v2] display-channel: monitors_config: add 200ms delay

2019-03-11 Thread Christophe Fergeau
On Mon, Mar 11, 2019 at 12:12:45PM +, Victor Toso wrote: > Hi, > > On Mon, Mar 11, 2019 at 12:33:20PM +0100, Christophe Fergeau wrote: > > Hey, > > > > One comment, even if the commit log mentions a bug #, it does not seem > > to be describing what the bug

Re: [Spice-devel] [spice v2] display-channel: monitors_config: add 200ms delay

2019-03-11 Thread Christophe Fergeau
Hey, One comment, even if the commit log mentions a bug #, it does not seem to be describing what the bug is/how it's fixed (maybe this can be inferred from the traces, but I did not read them closely as the log does not hint that a bug can be seen by looking at them). Christophe On Mon, Mar

Re: [virt-tools-list] [virt-viewer PATCH 01/14] po: provide custom make rules for po file management

2019-03-11 Thread Christophe Fergeau
Hey, On Thu, Mar 07, 2019 at 02:42:45PM +, Daniel P. Berrangé wrote: > After investigating in more detail it seems you can provide custom rules > for XML files by setting GETTEXTDATADIR, so I can support mime files with > this extra diff: Ah indeed, nice finding. Seeing what is shipped in

Re: [Spice-devel] [PATCH spice-common 9/9] codegen: Rename --prefix parameter to --suffix

2019-03-08 Thread Christophe Fergeau
On Thu, Mar 07, 2019 at 04:05:27PM -0500, Frediano Ziglio wrote: > > > > On Sun, Mar 03, 2019 at 07:10:30PM +, Frediano Ziglio wrote: > > > The option is used to add a suffix to public functions, not a > > > prefix. > > > > Sometimes it's a suffix to a prefix, sometimes it's indeed just a >

Re: [Libosinfo] [osinfo-db-tools PATCH] readme: Add json-glib as dependency

2019-03-08 Thread Christophe Fergeau
Sure, Acked-by: Christophe Fergeau On Fri, Mar 08, 2019 at 10:39:19AM +0100, Fabiano Fidêncio wrote: > Signed-off-by: Fabiano Fidêncio > --- > README | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/README b/README > index 411ceb2..b0faebb 100644 > ---

Re: [Libosinfo] [PATCH] ubuntu14.04: Add desktop installer script to desktop medias

2019-03-08 Thread Christophe Fergeau
On Fri, Mar 08, 2019 at 10:06:43AM +0100, Fabiano Fidêncio wrote: > Signed-off-by: Fabiano Fidêncio > --- > After realising that 14.04 is still going on, I gave an > express-installation a try for the desktop profile (for the desktop > medias) and it just works as expected! Why not put this in

Re: [Libosinfo] [PATCH] ubuntu14.04: Add desktop installer script to desktop medias

2019-03-08 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Fri, Mar 08, 2019 at 10:06:43AM +0100, Fabiano Fidêncio wrote: > Signed-off-by: Fabiano Fidêncio > --- > After realising that 14.04 is still going on, I gave an > express-installation a try for the desktop profile (for the desktop > medias) an

Re: [Spice-devel] [PATCH spice-common 7/9] codegen: Remove support for --ptrsize

2019-03-08 Thread Christophe Fergeau
On Thu, Mar 07, 2019 at 04:01:02PM -0500, Frediano Ziglio wrote: > > > > Acked-by: Christophe Fergeau > > > > Thanks, looking at reply to 9/9 however I think one thing is not clear from > what I wrote in the commit message. > The reason is not only that was u

Re: [Spice-devel] [PATCH spice-common 9/9] codegen: Rename --prefix parameter to --suffix

2019-03-07 Thread Christophe Fergeau
was used to generate protocol > 1 code). Why not remove it? It's inconsistent with the commit saying ptr_size is unused so it can be removed. Acked-by: Christophe Fergeau Christophe signature.asc Description: PGP signature ___ Spice-devel mailing list

Re: [Spice-devel] [PATCH spice-common 7/9] codegen: Remove support for --ptrsize

2019-03-07 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Sun, Mar 03, 2019 at 07:10:28PM +, Frediano Ziglio wrote: > This option was used in protocol 1 to generate 64 bit pointers. > A pointer in the protocol is an offset in the current message. > This allows the possibility to have messages with

Re: [Spice-devel] [PATCH spice-common 6/9] Generate automatically most C message declarations

2019-03-07 Thread Christophe Fergeau
Acked-by: Christophe Fergeau only one caveat is that some of the structs are getting renamed to equivalent ones (SpiceMsgDisplayDrawBlend/SpiceMsgDisplayDrawCopy, SpiceMsgcMainAgentStart/SpiceMsgcMainAgentTokens and a few more), which is fine because they are typedef'ed to the other type

  1   2   3   4   5   6   7   8   9   10   >