Re: [Spice-devel] [spice-common 2/2] quic: Use upper-case for 'evol' constant name

2017-07-03 Thread Frediano Ziglio
> > Constants, especially when defined using #define usually use upper-case > naming. However this is not coherent with wmimax and wmiext. Maybe changing all? Another way to define compile time constant in C is using enum but then you'll have a warning with switches. Are you using -O0 ? > --- >

Re: [Spice-devel] [PATCH spice-gtk] win-usb-dev: fix device arrival event logic

2017-07-03 Thread Uri Lublin
Hi, On 07/03/2017 06:53 PM, Yuri Benditovich wrote: It does not exactly removes old bugfix. Possibly it does, but only if WinUsb (+ usbclerk) are used. First version of the code did check for bus.addr only and for example, ignored change of vid/pid without change of bus.addr (AFAIK this is w

[Spice-devel] [spice-common 1/2] quic: Use #define rather than static const int

2017-07-03 Thread Christophe Fergeau
quic.c is checking at compile-time that 'evol' is 1, 3 or 5. This is a constant, so a static check should be good, but my compiler (gcc 7.1.1) is unable to know 'evol' value at compile-time. Since the removal of spice_static_assert in favour of SPICE_VERIFY, this causes a compile-time failure. ---

[Spice-devel] [spice-common 2/2] quic: Use upper-case for 'evol' constant name

2017-07-03 Thread Christophe Fergeau
Constants, especially when defined using #define usually use upper-case naming. --- common/quic.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/quic.c b/common/quic.c index b0ca74c..9da8c37 100644 --- a/common/quic.c +++ b/common/quic.c @@ -179,7 +179,

Re: [Spice-devel] [PATCH spice-gtk] win-usb-dev: fix device arrival event logic

2017-07-03 Thread Yuri Benditovich
It does not exactly removes old bugfix. First version of the code did check for bus.addr only and for example, ignored change of vid/pid without change of bus.addr (AFAIK this is what programmable devices like Cypress do). Previous commit removed check for bus.addr and replaced it with check for vi

Re: [Spice-devel] [PATCH spice-gtk] win-usb-dev: fix device arrival event logic

2017-07-03 Thread Christophe Fergeau
On Mon, Jul 03, 2017 at 02:27:29PM +0300, Yuri Benditovich wrote: > On Mon, Jul 3, 2017 at 10:16 AM, Christophe Fergeau > wrote: > > > On Mon, Jul 03, 2017 at 07:48:31AM +0300, Yuri Benditovich wrote: > > > https://bugzilla.redhat.com/show_bug.cgi?id=1425961 > > > If attached new device when one

Re: [Spice-devel] [PATCH 1/4] qxl-wddm-dod: Correct format of printouts

2017-07-03 Thread Yuri Benditovich
On Mon, Jul 3, 2017 at 11:58 AM, Christophe Fergeau wrote: > On Fri, Jun 30, 2017 at 12:11:42PM +0300, Yuri Benditovich wrote: > > Fixed wrong formats of printouts producing errors with WPP. > > All fixed format strings were wrong mainly due to incorrect > > format for pointers. > > Quickly glanc

Re: [Spice-devel] [PATCH spice-gtk v2] spice-channel: Factor out code for storing caps

2017-07-03 Thread Frediano Ziglio
> > Signed-off-by: Pavel Grunt > --- > v2 per Christophe's suggestion: > use GArray as parameter > --- > src/spice-channel.c | 34 -- > 1 file changed, 20 insertions(+), 14 deletions(-) > > diff --git a/src/spice-channel.c b/src/spice-channel.c > index b8cf19c..4

Re: [Spice-devel] [PATCH 3/4] qxl-wddm-dod: Support ETW for release version

2017-07-03 Thread Frediano Ziglio
> > Add ability to produce ETW (Event Tracing for Windows) to release > version of the driver to be able to record binary traces in case > of problem in customer environment for further analysis. > Logging of debug build is not changed. > > Signed-off-by: Yuri Benditovich > --- > qxldod/QxlDod

Re: [Spice-devel] [PATCH 2/4] qxl-wddm-dod: add trace definition file for WPP

2017-07-03 Thread Yuri Benditovich
On Mon, Jul 3, 2017 at 5:44 PM, Frediano Ziglio wrote: > > > > > Added file with Windows trace preprocessor definitions > > > > Signed-off-by: Yuri Benditovich > > --- > > qxldod/WppTrace.h | 51 > > qxldod/qxldod.vcxproj.filters | 133 > > +---

Re: [Spice-devel] [PATCH 2/4] qxl-wddm-dod: add trace definition file for WPP

2017-07-03 Thread Frediano Ziglio
> > Added file with Windows trace preprocessor definitions > > Signed-off-by: Yuri Benditovich > --- > qxldod/WppTrace.h | 51 > qxldod/qxldod.vcxproj.filters | 133 > +- > 2 files changed, 119 insertions(+), 65 deletions(-

[Spice-devel] [PATCH spice-gtk 0/2] xfer: Report error on init of copy_async

2017-07-03 Thread Victor Toso
From: Victor Toso Cheers, Victor Toso (2): file-xfer: Error messages should always be translated file-xfer: Inform client of errors on init of xfer src/channel-main.c | 50 ++ 1 file changed, 22 insertions(+), 28 deletions(-) -- 2.13.0 ___

[Spice-devel] [PATCH spice-gtk 2/2] file-xfer: Inform client of errors on init of xfer

2017-07-03 Thread Victor Toso
From: Victor Toso With SpiceFileTransferTask we suggest that Spice clients watch (signal) SpiceMainChannel::new-file-transfer so it can follow the transfer's progress till the moment it is finished. On (signal) SpiceFileTransferTask::finished, we will issue if any error has happened to the appli

[Spice-devel] [PATCH spice-gtk 1/2] file-xfer: Error messages should always be translated

2017-07-03 Thread Victor Toso
From: Victor Toso Signed-off-by: Victor Toso --- src/channel-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel-main.c b/src/channel-main.c index 4edd575..1c77c7b 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -3119,7 +3119,7 @@ void spice_main_f

Re: [Spice-devel] [PATCH 2/4] qxl-wddm-dod: add trace definition file for WPP

2017-07-03 Thread Yuri Benditovich
On Mon, Jul 3, 2017 at 12:07 PM, Christophe Fergeau wrote: > On Fri, Jun 30, 2017 at 12:11:43PM +0300, Yuri Benditovich wrote: > > Added file with Windows trace preprocessor definitions > > > > Bit terse changelog, but why not.. :) Where is the guid coming from? > Guid comes from GUID generator,

Re: [Spice-devel] [PATCH spice-gtk] win-usb-dev: fix device arrival event logic

2017-07-03 Thread Yuri Benditovich
On Mon, Jul 3, 2017 at 10:16 AM, Christophe Fergeau wrote: > On Mon, Jul 03, 2017 at 07:48:31AM +0300, Yuri Benditovich wrote: > > https://bugzilla.redhat.com/show_bug.cgi?id=1425961 > > If attached new device when one device with the same vid > > and pid already present, the notification is igno

[Spice-devel] ANNOUNCE: spice-protocol release 0.12.13

2017-07-03 Thread Marc-André Lureau
Hi, I just pushed v0.12.13 spice-protocol release tag. Release tarball: https://www.spice-space.org/download/releases/spice-protocol-0.12.13.tar.bz2 Major changes in 0.12.13 * add DISPLAY_PREFERRED_VIDEO_CODEC_TYPE * add VP9 codec type * add VD_AGENT_CLEAR_CAPABILITY() m

Re: [Spice-devel] [PATCH 4/4] qxl-wddm-dod: Add scripts for ETW recording and parsing

2017-07-03 Thread Christophe Fergeau
Here you really need a longer log, I have no idea who is supposed to use these scripts, what for, when, ... On Fri, Jun 30, 2017 at 12:11:45PM +0300, Yuri Benditovich wrote: > Signed-off-by: Yuri Benditovich > --- > QxlDodCollectTrace.bat | 31 +++ > QxlDodParseTrace.

Re: [Spice-devel] [PATCH 3/4] qxl-wddm-dod: Support ETW for release version

2017-07-03 Thread Christophe Fergeau
On Fri, Jun 30, 2017 at 12:11:44PM +0300, Yuri Benditovich wrote: > Add ability to produce ETW (Event Tracing for Windows) to release > version of the driver to be able to record binary traces in case > of problem in customer environment for further analysis. > Logging of debug build is not changed

Re: [Spice-devel] [PATCH 2/4] qxl-wddm-dod: add trace definition file for WPP

2017-07-03 Thread Christophe Fergeau
On Fri, Jun 30, 2017 at 12:11:43PM +0300, Yuri Benditovich wrote: > Added file with Windows trace preprocessor definitions > Bit terse changelog, but why not.. :) Where is the guid coming from? Acked-by: Christophe Fergeau > Signed-off-by: Yuri Benditovich > --- > qxldod/WppTrace.h

Re: [Spice-devel] [PATCH 1/4] qxl-wddm-dod: Correct format of printouts

2017-07-03 Thread Christophe Fergeau
On Fri, Jun 30, 2017 at 12:11:42PM +0300, Yuri Benditovich wrote: > Fixed wrong formats of printouts producing errors with WPP. > All fixed format strings were wrong mainly due to incorrect > format for pointers. Quickly glanced through this, looks good, anyway this would be caught at compile time

Re: [Spice-devel] [PATCH spice-gtk v2] spice-channel: Factor out code for storing caps

2017-07-03 Thread Christophe Fergeau
On Mon, Jul 03, 2017 at 09:48:35AM +0200, Victor Toso wrote: > Hi, > > On Fri, Jun 30, 2017 at 12:12:06PM +0200, Christophe Fergeau wrote: > > On Fri, Jun 30, 2017 at 10:37:36AM +0200, Victor Toso wrote: > > > Hi, > > > > > > On Fri, Jun 30, 2017 at 10:14:27AM +0200, Pavel Grunt wrote: > > > > Si

Re: [Spice-devel] [PATCH spice-gtk v2] spice-channel: Factor out code for storing caps

2017-07-03 Thread Victor Toso
Hi, On Fri, Jun 30, 2017 at 12:12:06PM +0200, Christophe Fergeau wrote: > On Fri, Jun 30, 2017 at 10:37:36AM +0200, Victor Toso wrote: > > Hi, > > > > On Fri, Jun 30, 2017 at 10:14:27AM +0200, Pavel Grunt wrote: > > > Signed-off-by: Pavel Grunt > > > --- > > > v2 per Christophe's suggestion: > >

Re: [Spice-devel] [PATCH spice-gtk v2] spice-channel: Factor out code for storing caps

2017-07-03 Thread Christophe Fergeau
On Fri, Jun 30, 2017 at 10:37:36AM +0200, Victor Toso wrote: > Hi, > > On Fri, Jun 30, 2017 at 10:14:27AM +0200, Pavel Grunt wrote: > > Signed-off-by: Pavel Grunt > > --- > > v2 per Christophe's suggestion: > > use GArray as parameter > > --- > > src/spice-channel.c | 34

Re: [Spice-devel] [PATCH spice-gtk] win-usb-dev: fix device arrival event logic

2017-07-03 Thread Christophe Fergeau
On Mon, Jul 03, 2017 at 07:48:31AM +0300, Yuri Benditovich wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1425961 > If attached new device when one device with the same vid > and pid already present, the notification is ignored and > attached device is not redirected (if auto share set) and >