Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-08 Thread Jeremy White
On 07/08/2015 02:11 AM, Hans de Goede wrote: Hi, On 07-07-15 18:47, Jeremy White wrote: Well, the checkpatch.pl reports were all style (and mostly whitespace); roughly 3000 of them against 3000 lines of code :-/. I did review the code, looking for areas where I thought it would badly cram i

Re: [Spice-devel] [usbredir PATCH] usbredirfilter_check: block device if all its interfaces skipped

2015-07-08 Thread Hans de Goede
Hi, Thinking more about this I think I've a good solution. If we end up skipping all interfaces, then do not return -ENOENT, but rerun the filter with the usbredirfilter_fl_dont_skip_non_boot_hid flag or-ed into the flags argument. That shhold fix the use case on hand while not overriding the u

Re: [Spice-devel] [usbredir PATCH] usbredirfilter_check: block device if all its interfaces skipped

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 18:22, Uri Lublin wrote: Hi Hans, Thanks for the quick review. See answers below On Wed, 2015-07-08 at 15:45 +0200, Hans de Goede wrote: Hi, On 08-07-15 15:26, Uri Lublin wrote: See usbredirfilter.h for when interfaces are skipped. Fixes rhbz#1179210 Sigh, the kvm in ques

Re: [Spice-devel] [usbredir PATCH] usbredirfilter_check: block device if all its interfaces skipped

2015-07-08 Thread Uri Lublin
Hi Hans, Thanks for the quick review. See answers below On Wed, 2015-07-08 at 15:45 +0200, Hans de Goede wrote: > Hi, > > On 08-07-15 15:26, Uri Lublin wrote: > > See usbredirfilter.h for when interfaces are skipped. > > > > Fixes rhbz#1179210 > > Sigh, the kvm in question is really messed up

Re: [Spice-devel] [spice-common PATCH 7/7 v2] ppc: Fix alpha state checking on BE machines

2015-07-08 Thread Lukas Venhoda
Hi > There's a bit of code in the same method doing: > ... > does this need fixing too? To be honest... I don't know. It works fine without changing it, and when I changed it, nothing changed :) I imagine this snippet just makes sure, that alpha channel is 255 when using XRGB. As I sad before,

Re: [Spice-devel] [spice-common PATCH 4/7 v2] ppc: Fix colors on ppc when using QUIC

2015-07-08 Thread Lukas Venhoda
Hi, > Any reason why there is not a patch fixing canvas_get_jpeg{_alpha} ? I didn't know how to test it, or when it is used (I was just trying to fix image compressions), so I left it as is. If someone provides a test case, I can test it and change it later. > I suspect we are not going to prope

Re: [Spice-devel] [spice-common PATCH 3/7 v2] ppc: Added supprt for bigendian color byte order

2015-07-08 Thread Lukas Venhoda
Hi, > In the subject line "support" (typo) > "machines" Can those be fixed before pushing? Or would you prefer me to resend the patch? > Why do we get both on BE machines, and only one byte order on LE > machines ? surface_create is called sometimes to create surfaces using > the 'native' byte or

Re: [Spice-devel] [spice-common PATCH 3/7 v2] ppc: Added supprt for bigendian color byte order

2015-07-08 Thread Christophe Fergeau
In the subject line "support" (typo) On Thu, Jul 02, 2015 at 04:01:40PM +0200, Lukas Venhoda wrote: > On LE machine, color order will always be ARGB. > On BE mcahines both ARGB and BGRA states are correct. "machines" Why do we get both on BE machines, and only one byte order on LE machines ? sur

Re: [Spice-devel] [spice-common PATCH 4/7 v2] ppc: Fix colors on ppc when using QUIC

2015-07-08 Thread Christophe Fergeau
Any reason why there is not a patch fixing canvas_get_jpeg{_alpha} ? On Thu, Jul 02, 2015 at 04:01:41PM +0200, Lukas Venhoda wrote: > Fixes color order on PowerPC when using QUIC image compression. > --- > Changes since v1: > - No changes > --- > common/canvas_base.c | 6 +++--- > 1 file changed

Re: [Spice-devel] [spice-common PATCH 7/7 v2] ppc: Fix alpha state checking on BE machines

2015-07-08 Thread Christophe Fergeau
On Thu, Jul 02, 2015 at 04:01:44PM +0200, Lukas Venhoda wrote: > When checking, whether we use alpha channel, we need to compare color > format with constant with the same byte order. > --- > Changes since v1: > - New commit > --- > common/canvas_base.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [Spice-devel] [spice-jhbuild PATCH v2 00/12] updating spice-jhbuild

2015-07-08 Thread Christophe Fergeau
On Wed, Jul 08, 2015 at 04:41:30PM +0200, Victor Toso wrote: > Hey, > > So Phodav and libgovirt are upstream on jhbuild, I removed this two > patches from the series and updated the phodav dependency in the right > patch. > > Pushed! > http://cgit.freedesktop.org/spice/spice-jhbuild/log/ Great,

Re: [Spice-devel] [PATCH] Adjust URL to new git location

2015-07-08 Thread Christophe Fergeau
On Wed, Jul 08, 2015 at 06:02:16PM +0300, Kirill Moizik wrote: > From: Kirill Moizik > > The git repository moved from > http://cgit.freedesktop.org/~teuf/spice-jhbuild/ to > http://cgit.freedesktop.org/spice/spice-jhbuild/ > --- > spice-osx-build-setup.sh | 2 +- > 1 file changed, 1 insertion(+

[Spice-devel] [PATCH] Adjust URL to new git location

2015-07-08 Thread Kirill Moizik
From: Kirill Moizik The git repository moved from http://cgit.freedesktop.org/~teuf/spice-jhbuild/ to http://cgit.freedesktop.org/spice/spice-jhbuild/ --- spice-osx-build-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spice-osx-build-setup.sh b/spice-osx-build-setup

Re: [Spice-devel] [spice-jhbuild PATCH v2 00/12] updating spice-jhbuild

2015-07-08 Thread Victor Toso
Hey, So Phodav and libgovirt are upstream on jhbuild, I removed this two patches from the series and updated the phodav dependency in the right patch. Pushed! http://cgit.freedesktop.org/spice/spice-jhbuild/log/ Best, On Tue, May 26, 2015 at 04:27:54PM +0200, Victor Toso wrote: > Hi, > > On Tu

[Spice-devel] [spice-common PATCH 2/7 v3] pixman_utils: Use PIXMAN_LE_ constants in spice_bitmap_try_as_pixman()

2015-07-08 Thread Lukas Venhoda
After the previous commit, spice_bitmap_try_as_pixman() can be simplified as its #ifdef WORDS_BIGENDIAN exactly match what the PIXMAN_LE_ constants do. Last ifdef was left as is, as I don't know what it could break. --- Changes since v2: - Changed commit log Changes since v1: - New commit ---

Re: [Spice-devel] [spice-common PATCH 2/7 v2] pixman_utils: Changed color order ifdefs to macros

2015-07-08 Thread Christophe Fergeau
On Thu, Jul 02, 2015 at 04:01:39PM +0200, Lukas Venhoda wrote: > --- > Last ifdef was left as is, as I don't know what it could break. I think the log would be clearer with something like: "pixman_utils: Use PIXMAN_LE_ constants in spice_bitmap_try_as_pixman() After the previous commit, spice_bi

Re: [Spice-devel] [spice-common PATCH 1/7 v2] pixman_utils: Add macros for color byte ordering

2015-07-08 Thread Christophe Fergeau
On Thu, Jul 02, 2015 at 04:01:38PM +0200, Lukas Venhoda wrote: > When using image compression on PowerPC architecture, colors are in > wrong order ARGB -> BGRA. > > This commit introduces macros, that will change the color order > according to machine endianness. ACK. Christophe pgpXbc0ypjEzj.

[Spice-devel] [PATCH v2 28/43] show primitive as primitive

2015-07-08 Thread Frediano Ziglio
--- python_modules/dissector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index 413aca4..a7add96 100644 --- a/python_modules/dissector.py +++ b/python_modules/dissector.py @@ -223,7 +223,7 @@ def write_wireshark_fi

[Spice-devel] [PATCH v2 41/43] Handle text formatting of different elements

2015-07-08 Thread Frediano Ziglio
Support ws_txt and ws_txt_n attributes. These attributes are there to allow to set specific text to different elements. The can be used to output in a single line the features of a structure. Or they can be used to format small array items. They can applied to almost everything from primitives, arr

[Spice-devel] [PATCH v2 17/43] Allows to specify descriptions for enumerations

2015-07-08 Thread Frediano Ziglio
These descriptions will be used to show in wireshark dissector. Signed-off-by: Frediano Ziglio --- python_modules/ptypes.py | 16 python_modules/spice_parser.py | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python_modules/ptypes.py b/python_modul

[Spice-devel] [PATCH v2 39/43] Allows to have two type with different size to point to same field name

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index c88118f..554f59c 100644 --- a/python_modules/dissector.py +++ b/python_modules/dissecto

[Spice-devel] [PATCH v2 31/43] Handle array

2015-07-08 Thread Frediano Ziglio
If just raw data add a single field. If more complex loop through them. Signed-off-by: Frediano Ziglio --- codegen/check_dissector | 4 codegen/data_u16s | Bin 0 -> 2000 bytes codegen/out_array_primitive.txt | 25 + codegen/out_array_raw.txt

[Spice-devel] [PATCH v2 36/43] Allow to override default values generated for the fields

2015-07-08 Thread Frediano Ziglio
ws_type override the type (BOOLEAN -> FT_BOOLEAN). ws_base override the base (DEC -> BASE_HEX). ws_desc override the description. ws allow to specify description and name for wireshark. Name is important as allows filters. Having a single attribute with 2 values allows to quickly specify the main a

[Spice-devel] [PATCH v2 30/43] Generate code to output parse structure

2015-07-08 Thread Frediano Ziglio
Write a function and call it to be able to reuse it. Signed-off-by: Frediano Ziglio --- codegen/check_dissector | 2 ++ codegen/out_struct1.txt | 7 +++ codegen/test.proto | 9 + python_modules/dissector.py | 20 4 files changed, 38 insertions

[Spice-devel] [PATCH v2 35/43] Introduce a class to handle wireshark attributes

2015-07-08 Thread Frediano Ziglio
--- python_modules/dissector.py | 39 +++ 1 file changed, 39 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index d623576..827f7f0 100644 --- a/python_modules/dissector.py +++ b/python_modules/dissector.py @@ -25,6 +25,45 @

[Spice-devel] [PATCH v2 25/43] test: Allows to write items to tree and dump saved tree

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- codegen/dissector_test.c | 424 ++- 1 file changed, 423 insertions(+), 1 deletion(-) diff --git a/codegen/dissector_test.c b/codegen/dissector_test.c index 25a33b5..5a49f40 100644 --- a/codegen/dissector_test.c +++ b/

[Spice-devel] [PATCH v2 43/43] Add some format checks with arrays

2015-07-08 Thread Frediano Ziglio
Check different format or small arrays formatting. Is possible to omit to have a tree and dump just the elements. This is useful for small arrays or if is possible to format all the item (for instance having a small structure) in a single line. Signed-off-by: Frediano Ziglio --- codegen/check_di

[Spice-devel] [PATCH v2 32/43] Handle switch

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index caf817f..b204c61 100644 --- a/python_modules/dissector.py ++

[Spice-devel] [PATCH v2 42/43] Test decorated array

2015-07-08 Thread Frediano Ziglio
Try to test possible combinations of different attributes with arrays to make sure output is what is expected. Signed-off-by: Frediano Ziglio --- codegen/out_array_primitive.txt | 109 + codegen/out_array_raw.txt | 12 +++- codegen/out_array_struct.txt|

[Spice-devel] [PATCH v2 34/43] Handle pointers

2015-07-08 Thread Frediano Ziglio
Read the pointer and if not 0 create a function to parse it and call it. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 49 + 1 file changed, 49 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py ind

[Spice-devel] [PATCH v2 37/43] Allow to specify 'CHANNEL' as type

2015-07-08 Thread Frediano Ziglio
Type will be mapped to an enumerator containing all channel types. Signed-off-by: Frediano Ziglio --- codegen/check_dissector | 2 ++ codegen/out_channel.txt | 7 +++ codegen/test.proto | 15 +++ python_modules/dissector.py | 14 +- spice.proto

[Spice-devel] [PATCH v2 26/43] test: Add code to read input from a file (or stdin)

2015-07-08 Thread Frediano Ziglio
This allow to emulate reading from network Signed-off-by: Frediano Ziglio --- codegen/check_dissector | 4 ++-- codegen/dissector_test.c | 32 +--- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/codegen/check_dissector b/codegen/check_dissector inde

[Spice-devel] [PATCH v2 27/43] Handle base fields

2015-07-08 Thread Frediano Ziglio
Add fields to base tree (so basically there is no tree). Names is now generated from container + member name. The check for duplicate is not that strong, should check if same field is defined with same attributes. Signed-off-by: Frediano Ziglio --- codegen/Makefile.am | 36 +

[Spice-devel] [PATCH v2 33/43] Implement ws_inline attribute

2015-07-08 Thread Frediano Ziglio
This attribute allow structure to be aligned instead of be contained in a separate function. This is helpful as variable are declared in the function so allows other member to reference to a nested structure. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 11 --- 1 file

[Spice-devel] [PATCH v2 40/43] Handle flags

2015-07-08 Thread Frediano Ziglio
Instead of only show the hexadecimal value show all bits. Signed-off-by: Frediano Ziglio --- codegen/dissector_test.c| 22 codegen/out_base1.txt | 81 - python_modules/dissector.py | 81 +--

[Spice-devel] [PATCH v2 38/43] Use a class to register wireshark fields

2015-07-08 Thread Frediano Ziglio
Allow to reuse code and check better if field was already registered Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 58 + 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/python_modules/dissector.py b/python_modules/dis

[Spice-devel] [PATCH v2 12/43] Generate some definition for dissector

2015-07-08 Thread Frediano Ziglio
Generate global definitions. Generate function to registers various dissector components. For the moment the field array is empty bu we save some global to be able to register new ones. Add a base test for generated dissector. Signed-off-by: Frediano Ziglio --- Makefile.am | 2 +

[Spice-devel] [PATCH v2 29/43] Read array size

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 48 +++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index a7add96..aa71615 100644 --- a/python_modules/dissector.

[Spice-devel] [PATCH v2 16/43] Allows to specify some new attributes for wireshark

2015-07-08 Thread Frediano Ziglio
To make output more useful fields from the protocol should have additional information like description, name, type and so on. List of attributes added: - ws_desc, just a simple description - ws_name name of the field. See below - ws allow to specify a description and a name. Useful as easy to t

[Spice-devel] [PATCH v2 24/43] Read values from primitive fields

2015-07-08 Thread Frediano Ziglio
Store into references for future usage. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 32 1 file changed, 32 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index cd653b3..da89def 100644 --- a/python_module

[Spice-devel] [PATCH v2 15/43] Generate scheleton for messages and channels

2015-07-08 Thread Frediano Ziglio
Messages are not generated as stub. Code partially from demarshaller. Signed-off-by: Frediano Ziglio --- codegen/Makefile.am | 3 +- codegen/check_dissector | 13 + codegen/dissector_test.c| 54 - python_modules/dissector.py | 138 +

[Spice-devel] [PATCH v2 19/43] Decorate protocol file with attributes for wireshark

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- spice.proto | 414 1 file changed, 218 insertions(+), 196 deletions(-) diff --git a/spice.proto b/spice.proto index 2889802..163215b 100644 --- a/spice.proto +++ b/spice.proto @@ -5,14 +5,14 @@ typed

[Spice-devel] [PATCH v2 14/43] Decorate writer class to make easier ifdef/endif handling

2015-07-08 Thread Frediano Ziglio
I'm generating code for dissector from demarshaller. Make simple to hangle ifdef/endif not having to check manually attribute. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/python_modules/dissector.py b/pyth

[Spice-devel] [PATCH v2 20/43] Change code generated index type

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index af0494c..40e348a 100644 --- a/python_modules/dissector.py +++ b/python_modules/dissector.py @@ -236,6 +236,8 @@ def

[Spice-devel] [PATCH v2 21/43] Add code to handle destination variable

2015-07-08 Thread Frediano Ziglio
Add some classes to be able to store retrieved data from structure and messages. The idea is to generate code dynamically when variable are readed. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 104 +++- 1 file changed, 103 insertions(+)

[Spice-devel] [PATCH v2 08/43] codegen: Remove old ptr32 attribute

2015-07-08 Thread Frediano Ziglio
This attribute is not use in code. Signed-off-by: Frediano Ziglio --- python_modules/ptypes.py | 4 1 file changed, 4 deletions(-) diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index 3a307ed..f94fd24 100644 --- a/python_modules/ptypes.py +++ b/python_modules/ptypes.py @@

[Spice-devel] [PATCH v2 06/43] codegen: Reuse code to fix attribute from prototype file

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/ptypes.py | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index d031d09..845fa73 100644 --- a/python_modules/ptypes.py +++ b/python_modules/

[Spice-devel] [PATCH v2 13/43] Add new_ett function to be able to create new trees

2015-07-08 Thread Frediano Ziglio
Use an array to declare tree items instead of allocating it statically. This save a bit of memory and it also generate smaller code to read. A tree in wireshark represent an item which could be expanded. Possibly wireshark is using these registrations to save expansion state in the user interface.

[Spice-devel] [PATCH v2 18/43] Allows to specify attributes for array items and pointers

2015-07-08 Thread Frediano Ziglio
Specifying attributes for items allows to specify different attribute for the same member where some are specific to the item while the other to the array. The element attributes are attached to the array as they cannot be attached to the type as the object is unique for each type. Same for pointer

[Spice-devel] [PATCH v2 07/43] codegen: Do some check on attributes

2015-07-08 Thread Frediano Ziglio
Verify that the attribute is known. This could help for instance to avoid some future typo mistake. Also we have a list of attributes we can comment. Signed-off-by: Frediano Ziglio --- python_modules/ptypes.py | 69 1 file changed, 69 insertions(+

[Spice-devel] [PATCH v2 10/43] codegen: Allows to specify C type for index variable

2015-07-08 Thread Frediano Ziglio
This to prepare to generate wireshark dissector which use glib types instead of new C ones (for compatibility with some compiler). Signed-off-by: Frediano Ziglio --- python_modules/codegen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_modules/codegen.py b/pytho

[Spice-devel] [PATCH v2 11/43] Start adding code to generate wireshark dissector

2015-07-08 Thread Frediano Ziglio
Added a stub dissector.py code. Added file to Makefiles. Add option to call dissector and code to call it. Signed-off-by: Frediano Ziglio --- common/Makefile.am | 1 + python_modules/Makefile.am | 1 + python_modules/dissector.py | 14 ++ spice_codegen.py| 17

[Spice-devel] [PATCH v2 22/43] Parse containers

2015-07-08 Thread Frediano Ziglio
Parse all members of the containers Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 19 +++ 1 file changed, 19 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index 588becd..ed3b939 100644 --- a/python_modules/dissector.py ++

[Spice-devel] [PATCH v2 23/43] Write function to write members

2015-07-08 Thread Frediano Ziglio
Check members are all of a giver type and call stubs for each type. Signed-off-by: Frediano Ziglio --- python_modules/dissector.py | 50 +++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/python_modules/dissector.py b/python_modules/disse

[Spice-devel] [PATCH v2 05/43] codegen: Remove duplicate variable initialization

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/spice_parser.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python_modules/spice_parser.py b/python_modules/spice_parser.py index 80b559b..97af8b2 100644 --- a/python_modules/spice_parser.py +++ b/python_modules/spice_parser.py @@ -58,7 +58

[Spice-devel] [PATCH v2 04/43] codegen: Optimize code indentation avoiding loop

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/codegen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python_modules/codegen.py b/python_modules/codegen.py index 55500b7..02ffdb9 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -130,8 +130,7 @

[Spice-devel] [PATCH v2 09/43] codegen: Check we don't pop too much indexes

2015-07-08 Thread Frediano Ziglio
--- python_modules/codegen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_modules/codegen.py b/python_modules/codegen.py index 02ffdb9..c470988 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -357,6 +357,7 @@ class CodeWriter: return index d

[Spice-devel] [PATCH v2 03/43] codegen: Fix typo in variable name

2015-07-08 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- python_modules/codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/codegen.py b/python_modules/codegen.py index f324498..55500b7 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -193,7 +193,7 @@

[Spice-devel] [PATCH v2 00/43] Implements partial wireshark dissector from protocol specifications

2015-07-08 Thread Frediano Ziglio
As we have a file to specify the protocol and as is hard to align wireshark dissector for each change we made I'm trying to do part of this job to a code generator. The idea is to have the dissector split in two part, one hand written and the other automatic. I tested that changing the code and p

[Spice-devel] [PATCH v2 01/43] codegen: Import six module before first use

2015-07-08 Thread Frediano Ziglio
The module was used in the initial try/except so make sure it is already imported. Signed-off-by: Frediano Ziglio --- python_modules/spice_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_modules/spice_parser.py b/python_modules/spice_parser.py index d60bb10

[Spice-devel] [PATCH v2 02/43] codegen: Simplify if/else blocks

2015-07-08 Thread Frediano Ziglio
Blocks was mainly the same, reduce code. Signed-off-by: Frediano Ziglio --- python_modules/marshal.py | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/python_modules/marshal.py b/python_modules/marshal.py index b77b910..cbda2ab 100644 --- a/pyth

Re: [Spice-devel] [usbredir PATCH] usbredirfilter_check: block device if all its interfaces skipped

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 15:26, Uri Lublin wrote: See usbredirfilter.h for when interfaces are skipped. Fixes rhbz#1179210 Sigh, the kvm in question is really messed up as it uses non bootclass hid interfaces, that means it won't work in many BIOS' etc. What a mess ... --- usbredirparser/usbredir

[Spice-devel] [usbredir PATCH] usbredirfilter_check: block device if all its interfaces skipped

2015-07-08 Thread Uri Lublin
See usbredirfilter.h for when interfaces are skipped. Fixes rhbz#1179210 --- usbredirparser/usbredirfilter.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usbredirparser/usbredirfilter.c b/usbredirparser/usbredirfilter.c index ef9c63a..5cbbfbf 100644 --- a/usbred

Re: [Spice-devel] [spice-jhbuild 0/3] Adjust osx branch to new git repository location

2015-07-08 Thread Fabiano FidĂȘncio
On Wed, Jul 8, 2015 at 11:55 AM, Christophe Fergeau wrote: > Hey, since the spice-jhbuild repository moved from > http://cgit.freedesktop.org/~teuf/spice-jhbuild/ to > http://cgit.freedesktop.org/spice/spice-jhbuild/ , a few things needed to be > adjusted in the osx moduleset. > >

Re: [Spice-devel] [PATCH 0/3] spice-jhbuild: fix build and bundle for spice osx client

2015-07-08 Thread Christophe Fergeau
Hey, I've pushed these, thanks for the resend! Christophe pgp13hneMpqJy.pgp Description: PGP signature ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [PATCH v2 6/6] Make usb redirection stop and surprise removal flows asynchronous

2015-07-08 Thread Kirill Moizik
On Wed, Jul 8, 2015 at 12:07 PM, Christophe Fergeau wrote: > Hey, > > On Tue, Jul 07, 2015 at 05:12:22PM +0300, Kirill Moizik wrote: > > On Tue, Jul 7, 2015 at 3:51 PM, Christophe Fergeau > > wrote: > > > > > On Mon, Jul 06, 2015 at 08:59:06PM +0300, Kirill Moizik wrote: > > > > we will spawn a

[Spice-devel] [spice-jhbuild 1/3] bundle: Remove trailing space in closing XML tag

2015-07-08 Thread Christophe Fergeau
Probably no ill effect, but caused bad highlighting in my vim. --- bundle/remote-viewer-gtk3.bundle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/remote-viewer-gtk3.bundle b/bundle/remote-viewer-gtk3.bundle index a6315ca..49508e4 100644 --- a/bundle/remote-viewer-gtk3.

[Spice-devel] [spice-jhbuild 2/3] Adjust URL to new git location

2015-07-08 Thread Christophe Fergeau
The git repository moved from http://cgit.freedesktop.org/~teuf/spice-jhbuild/ to http://cgit.freedesktop.org/spice/spice-jhbuild/ --- README| 4 ++-- jhbuildrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README b/README index 2e8b461..c480c5e 100644 --- a/README +++

[Spice-devel] [spice-jhbuild 0/3] Adjust osx branch to new git repository location

2015-07-08 Thread Christophe Fergeau
Hey, since the spice-jhbuild repository moved from http://cgit.freedesktop.org/~teuf/spice-jhbuild/ to http://cgit.freedesktop.org/spice/spice-jhbuild/ , a few things needed to be adjusted in the osx moduleset. ___ Spice-devel mailing list Spice-devel@li

[Spice-devel] [spice-jhbuild 3/3] Add celt patch to git repository

2015-07-08 Thread Christophe Fergeau
It's more convenient to handle if it's stored together with the jhbuild moduleset rather than in a separate webspace. --- modulesets/spice.xml | 2 +- patches/celt-0.5.1.3-dont-recurse-into-tests.patch | 13 + 2 files changed, 14 insertions(+), 1 deletion

Re: [Spice-devel] [PATCH v2 6/6] Make usb redirection stop and surprise removal flows asynchronous

2015-07-08 Thread Christophe Fergeau
Hey, On Tue, Jul 07, 2015 at 05:12:22PM +0300, Kirill Moizik wrote: > On Tue, Jul 7, 2015 at 3:51 PM, Christophe Fergeau > wrote: > > > On Mon, Jul 06, 2015 at 08:59:06PM +0300, Kirill Moizik wrote: > > > we will spawn a separate thread to disconnect usb device, when finish we > > will update wi

Re: [Spice-devel] [RFC PATCH 1/1] Add a usbredir kernel module to remotely connect USB devices over IP.

2015-07-08 Thread Hans de Goede
Hi, On 07-07-15 18:47, Jeremy White wrote: Well, the checkpatch.pl reports were all style (and mostly whitespace); roughly 3000 of them against 3000 lines of code :-/. I did review the code, looking for areas where I thought it would badly cram into the kernel, and I adjusted the few I found