Re: [Spice-devel] [PATCH spice 00/12] Add more compiler warnings

2012-04-02 Thread Marc-André Lureau
On Mon, Apr 2, 2012 at 1:23 PM, Daniel P. Berrange wrote: > A followup to the previous patch which enabled more compiler warnings > for spice-gtk. This one does the same for 'spice'. Less to fix now > that we have spice-common shared Ack series, after 6/12 is updated/commented. thanks -- Marc

Re: [Spice-devel] [PATCH spice 06/12] Remove 2 *MB* stack frame in red_worker_main

2012-04-02 Thread Marc-André Lureau
On Mon, Apr 2, 2012 at 1:23 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The red_worker_main method allocates a RedWorker struct instance > on the stack. This struct is a full 2 MB in size which is not > at all resonable to allocate on the stack. > Ouch.. btw, apparently, it's

Re: [Spice-devel] oVirt - spice activex / spice-xpi plugins for Windows?

2012-04-02 Thread Nerijus Baliunas
On Mon, 2 Apr 2012 10:37:25 +0200 Christophe Fergeau wrote: > > Do we have such plugins for Windows users that would like to open > > their vms from browser? > > I don't think we have such plugins yet unfortunately... Something really > useful would be someone doing a VisualC++ build of spice-x

Re: [Spice-devel] fix build with glib < 2.32

2012-04-02 Thread Marc-André Lureau
Hi - Mensaje original - > hello > patch from Marc-André Lureau : > > [Spice-devel] [PATCH spice-gtk 1/2] build: fix build with glib < 2.32 > > does not cover > channel-usbredir.c  file > > compilation is not possible. Can you try the attached patch? thanksdiff --git a/gtk/channel-usbred

[Spice-devel] fix build with glib < 2.32

2012-04-02 Thread nicolas prochazka
hello patch from Marc-André Lureau : [Spice-devel] [PATCH spice-gtk 1/2] build: fix build with glib < 2.32 does not cover channel-usbredir.c  file compilation is not possible. Regards, Nicolas Prochazka. ___ Spice-devel mailing list Spice-devel@lists.

Re: [Spice-devel] [PATCH spice-gtk 1/2] SpiceDisplay: Don't try to scale mouse coordinates when we're not scaling

2012-04-02 Thread Marc-André Lureau
ack series - Mensaje original - > Often (when not resized by the user) even though scaling is enabled, > we are > not actually scaling. In this case it is not necessary to scale the > mouse coordinates, and sometimes it is even harmful. > > Signed-off-by: Hans de Goede > --- > gtk/spice

Re: [Spice-devel] [virt-tools-list] [PATCH virt-viewer] spice/controller: add support for the properties disable-effects & color-depth

2012-04-02 Thread Hans de Goede
ACK On 04/02/2012 09:43 AM, Yonit Halperin wrote: rhbz #808986 Signed-off-by: Yonit Halperin --- src/remote-viewer.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/remote-viewer.c b/src/remote-viewer.c index 7dda7fe..5f7685f 100644 --- a/src/remote-viewer.c +

[Spice-devel] [PATCH spice-gtk 2/2] SpiceDisplay: Fix rounding of mouse motion events with GTK-3.0

2012-04-02 Thread Hans de Goede
Before this patch we were assuming that the GdkEventMotion value we receive are always whole (integer) numbers, which is not the case with GTK-3.0. Signed-off-by: Hans de Goede --- gtk/spice-widget.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/gtk/

[Spice-devel] [PATCH spice-gtk 1/2] SpiceDisplay: Don't try to scale mouse coordinates when we're not scaling

2012-04-02 Thread Hans de Goede
Often (when not resized by the user) even though scaling is enabled, we are not actually scaling. In this case it is not necessary to scale the mouse coordinates, and sometimes it is even harmful. Signed-off-by: Hans de Goede --- gtk/spice-widget.c |2 +- 1 file changed, 1 insertion(+), 1 de

Re: [Spice-devel] [Qemu-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-04-02 Thread Vadim Rozenfeld
On Monday, March 19, 2012 02:48:43 PM Paul Lu-???-? wrote: > Hi Vadim, > Here is the configuration: > /usr/local/bin/qemu-system-x86_64 \ > -localtime \ > -boot order=c,menu=on \ > -drive file=/var/lib/libvirt/images/xxx.img \ > -vga qxl \ > -cdrom /home/paul/Downloads/ISO/virtio-win-0.1-1

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Marc-André Lureau
- Mensaje original - > On Mon, Apr 02, 2012 at 07:40:31AM -0400, Marc-André Lureau wrote: > > - Mensaje original - > > > Alternatively, doing unconditionnally --enable-vala in autogen.sh > > > would > > > work for me too I think. > > > > That sounds reasonable. > > Ok, though on

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Christophe Fergeau
On Mon, Apr 02, 2012 at 07:40:31AM -0400, Marc-André Lureau wrote: > - Mensaje original - > > Alternatively, doing unconditionnally --enable-vala in autogen.sh > > would > > work for me too I think. > > That sounds reasonable. Ok, though on second thought I'd rather we also have vala auto

Re: [Spice-devel] [spice-devel] spice-xpi rhbz#806215

2012-04-02 Thread Peter Hatina
Hi, On 04/02/2012 01:41 PM, Hans de Goede wrote: > Hi, > > I assumed you've tested things still compile and work after this? > > If so ack. > > Regards, > > Hans Yes. Btw, the member m_fIPC was not used at all. > > > On 04/02/2012 12:30 PM, Peter Hatina wrote: >> Hi, >> >> can you have a l

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Hans de Goede
Hi, On 04/02/2012 12:38 PM, Marc-André Lureau wrote: Hi - Mensaje original - Currently, configure doesn't check for vala, nor set vala related variables unless --enable-vala was passed. autogen.sh automatically pass --enable-vala if controller.vala.stamp doesn't exist. However, this is

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Marc-André Lureau
- Mensaje original - > Alternatively, doing unconditionnally --enable-vala in autogen.sh > would > work for me too I think. That sounds reasonable. ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mail

Re: [Spice-devel] [spice-devel] spice-xpi rhbz#806215

2012-04-02 Thread Hans de Goede
Hi, I assumed you've tested things still compile and work after this? If so ack. Regards, Hans On 04/02/2012 12:30 PM, Peter Hatina wrote: Hi, can you have a look at this, before I can push it to FDO git? From fef8de569a7268bed272105649941b9dac5f4f98 Mon Sep 17 00:00:00 2001 From: Peter

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Christophe Fergeau
On Mon, Apr 02, 2012 at 06:38:23AM -0400, Marc-André Lureau wrote: > Hi > > - Mensaje original - > > Currently, configure doesn't check for vala, nor set vala related > > variables unless --enable-vala was passed. autogen.sh automatically > > pass --enable-vala if controller.vala.stamp doe

[Spice-devel] [PATCH spice 12/12] Make some int->pointer casts explicit

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Tell the compiler that was really do intend to cast from int to pointer, to prevent warnings about implicit casts * server/tests/test_display_base.c: Add explicit casts Signed-off-by: Daniel P. Berrange --- server/tests/test_display_base.c |4 ++-- 1 files chang

[Spice-devel] [PATCH spice 11/12] Enable many more compiler warnings

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * m4/manywarnings.m4m, m4/warnings.m4: Import GNULIB warnings modules * m4/spice-compile-warnings.m4: Define SPICE_COMPILE_WARNINGS * configure.ac: Replace compile warning check with a call to SPICE_COMPILE_WARNINGS * client/Makefile.am: Use WARN_CXXFLAGS instead of

[Spice-devel] [PATCH spice 10/12] Fix broken -I../common to be -I../spice-common in client

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * Makefile.am: s/common/spice-common/ Signed-off-by: Daniel P. Berrange --- client/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/Makefile.am b/client/Makefile.am index 4913c1e..22d5adf 100644 --- a/client/Makefile.am +++

[Spice-devel] [PATCH spice 09/12] VSCMsgHeader.reader_id is unsigned, so don't check for >= 0

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * server/smartcard.c: Fix assertion to not check for >= 0 on unsigned variable Signed-off-by: Daniel P. Berrange --- server/smartcard.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/server/smartcard.c b/server/smartcard.c index 805cb6e.

[Spice-devel] [PATCH spice 08/12] Avoid jumping across variables declarations with initializers

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" If a 'goto' statement jumps across a variable declaration which also has an initializer, the variable is in an undefined state. Splitting the the declaration & initialization doesn't change that, but the compiler can at least now detect use of the unintialized variable

[Spice-devel] [PATCH spice 07/12] Convert cases of () to (void)

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * server/reds.c, server/smartcard.c: s/()/(void) Signed-off-by: Daniel P. Berrange --- server/reds.c |2 +- server/smartcard.c |8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/reds.c b/server/reds.c index 53fc748..8ae569

[Spice-devel] [PATCH spice 06/12] Remove 2 *MB* stack frame in red_worker_main

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The red_worker_main method allocates a RedWorker struct instance on the stack. This struct is a full 2 MB in size which is not at all resonable to allocate on the stack. * server/red_worker.c: Move RedWorker struct to the heap Signed-off-by: Daniel P. Berrange --- s

[Spice-devel] [PATCH spice 05/12] Mark some variables as volatile

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" When using setjmp/longjmp the state of local variables can be undefined in certain scenarios: [quote man(longjmp)] The values of automatic variables are unspecified after a call to longjmp() if they meet all the following criteria: · they are l

[Spice-devel] [PATCH spice 04/12] Mark functions which never return control

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * client/red_channel.cpp: AbortTrigger::on_event can't return given its current impl * server/red_worker.c: red_worker_main can't return Signed-off-by: Daniel P. Berrange --- client/red_channel.cpp |2 +- server/red_worker.c|5 ++--- 2 files changed, 3

[Spice-devel] [PATCH spice 03/12] Fix multiple printf format problems

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" All printf var-args style methods should be annotation with their format. All format strings must be const strings. * client/application.cpp, client/cmd_line_parser.cpp, client/hot_keys.cpp: Avoid non-const format * client/client_net_socket.cpp: Fix broken format spe

[Spice-devel] [PATCH spice 02/12] Fix const-ness violations

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" * server/red_worker.c: Add missing const for return type * server/reds.c: Static strings must be declared const Signed-off-by: Daniel P. Berrange --- server/red_worker.c |2 +- server/reds.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) dif

[Spice-devel] [PATCH spice 01/12] Don't do arithmetic on void * type, use uint8_t instead

2012-04-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Arithmetic on void * types is non-portable & trivially avoided * server/dispatcher.c: Use uint8_t for arithmetic Signed-off-by: Daniel P. Berrange --- server/dispatcher.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/disp

[Spice-devel] [PATCH spice 00/12] Add more compiler warnings

2012-04-02 Thread Daniel P. Berrange
A followup to the previous patch which enabled more compiler warnings for spice-gtk. This one does the same for 'spice'. Less to fix now that we have spice-common shared ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesk

Re: [Spice-devel] [spice-gtk 2/2] autogen.sh: log configure command line

2012-04-02 Thread Marc-André Lureau
- Mensaje original - > Since --enable-vala may or may not be passed to configure, seeing > the actual command line that was used is helpful. To me it's really unnecessary, as the command line that was passed is in config.log. And we already have a nice message for cases where --enable-v

Re: [Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Marc-André Lureau
Hi - Mensaje original - > Currently, configure doesn't check for vala, nor set vala related > variables unless --enable-vala was passed. autogen.sh automatically > pass --enable-vala if controller.vala.stamp doesn't exist. However, > this is not enough since if controller.vala is newer tha

[Spice-devel] [spice-devel] spice-xpi rhbz#806215

2012-04-02 Thread Peter Hatina
Hi, can you have a look at this, before I can push it to FDO git? >From fef8de569a7268bed272105649941b9dac5f4f98 Mon Sep 17 00:00:00 2001 From: Peter Hatina Date: Mon, 2 Apr 2012 12:11:20 +0200 Subject: [PATCH 1/4] remove unused class member --- SpiceXPI/src/plugin/plugin.h |1 - 1 files c

[Spice-devel] [spice-gtk 2/2] autogen.sh: log configure command line

2012-04-02 Thread Christophe Fergeau
Since --enable-vala may or may not be passed to configure, seeing the actual command line that was used is helpful. --- autogen.sh |1 + 1 file changed, 1 insertion(+) diff --git a/autogen.sh b/autogen.sh index 11aedb0..aefd2fd 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,6 +15,7 @@ if tes

[Spice-devel] [spice-gtk 1/2] configure.ac: improve vala detection

2012-04-02 Thread Christophe Fergeau
Currently, configure doesn't check for vala, nor set vala related variables unless --enable-vala was passed. autogen.sh automatically pass --enable-vala if controller.vala.stamp doesn't exist. However, this is not enough since if controller.vala is newer than controller.vala.stamp, we will need to

Re: [Spice-devel] [PATCH spice-xpi] add support for DisableEffects and ColorDepth

2012-04-02 Thread Christophe Fergeau
Hey, On Mon, Apr 02, 2012 at 10:42:32AM +0300, Yonit Halperin wrote: > @@ -482,6 +484,28 @@ void nsPluginInstance::SetUsbAutoShare(PRBool > aUsbAutoShare) > // when fixed in RHEVM > } > > +/* attribute string ColorDepth; */ > +char *nsPluginInstance::GetColorDepth() const > +{ > +retu

Re: [Spice-devel] [PATCH virt-viewer] spice/controller: add support for the properties disable-effects & color-depth

2012-04-02 Thread Hans de Goede
ACK. On 04/02/2012 09:43 AM, Yonit Halperin wrote: rhbz #808986 Signed-off-by: Yonit Halperin --- src/remote-viewer.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/remote-viewer.c b/src/remote-viewer.c index 7dda7fe..5f7685f 100644 --- a/src/remote-viewer.c

Re: [Spice-devel] [PATCH spice-xpi] add support for DisableEffects and ColorDepth

2012-04-02 Thread Hans de Goede
ACK. On 04/02/2012 09:42 AM, Yonit Halperin wrote: rhbz #747313 Signed-off-by: Yonit Halperin --- SpiceXPI/src/plugin/nsISpicec.idl|2 ++ SpiceXPI/src/plugin/nsScriptablePeer.cpp | 16 +++- SpiceXPI/src/plugin/nsScriptablePeer.h |2 ++ SpiceXPI/src/plugin/pl

Re: [Spice-devel] [PATCH spice-gtk] controller: add support for DISABLE_EFFECTS and COLOR_DEPTH

2012-04-02 Thread Hans de Goede
ACK. On 04/02/2012 09:42 AM, Yonit Halperin wrote: rhbz #787449 Signed-off-by: Yonit Halperin --- data/spice-protocol.vapi |3 +++ gtk/controller/controller.vala |9 + spice-common |2 +- 3 files changed, 13 insertions(+), 1 deletions(-) diff --

Re: [Spice-devel] oVirt - spice activex / spice-xpi plugins for Windows?

2012-04-02 Thread Christophe Fergeau
On Wed, Feb 22, 2012 at 06:12:35PM -0500, Douglas Landgraf wrote: > Do we have such plugins for Windows users that would like to open > their vms from browser? I don't think we have such plugins yet unfortunately... Something really useful would be someone doing a VisualC++ build of spice-xpi. It

Re: [Spice-devel] [PATCH spice-common] updated submodule spice-protocol

2012-04-02 Thread Hans de Goede
ACK. On 04/02/2012 09:41 AM, Yonit Halperin wrote: added the disable-effects and color-depth options to the controller Signed-off-by: Yonit Halperin --- spice-protocol |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/spice-protocol b/spice-protocol index 32da251..8cf9

Re: [Spice-devel] [PATCH spice-protocol] controller: add COLOR_DEPTH and DISABLE_EFFECTS messages

2012-04-02 Thread Hans de Goede
ACK. On 04/02/2012 09:41 AM, Yonit Halperin wrote: rhbz #787447 Signed-off-by: Yonit Halperin --- spice/controller_prot.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/spice/controller_prot.h b/spice/controller_prot.h index a60b122..f7b1f26 100644 --- a/spice/con

Re: [Spice-devel] Read data out of the Virtqueue

2012-04-02 Thread Charles . Tsai-蔡清海-研究發展部
Alon, In spice client, the creation of the channel is based on "init->num_of_channels" that is returned from the spice server. Please see the following function to create the spice channel from the client void RedClient::handle_channels(RedPeer::InMessage* message) { Spice

[Spice-devel] [PATCH virt-viewer] spice/controller: add support for the properties disable-effects & color-depth

2012-04-02 Thread Yonit Halperin
rhbz #808986 Signed-off-by: Yonit Halperin --- src/remote-viewer.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/remote-viewer.c b/src/remote-viewer.c index 7dda7fe..5f7685f 100644 --- a/src/remote-viewer.c +++ b/src/remote-viewer.c @@ -583,7 +583,9 @@ spice_ctr

[Spice-devel] [PATCH spice-xpi] add support for DisableEffects and ColorDepth

2012-04-02 Thread Yonit Halperin
rhbz #747313 Signed-off-by: Yonit Halperin --- SpiceXPI/src/plugin/nsISpicec.idl|2 ++ SpiceXPI/src/plugin/nsScriptablePeer.cpp | 16 +++- SpiceXPI/src/plugin/nsScriptablePeer.h |2 ++ SpiceXPI/src/plugin/plugin.cpp | 26 ++ Spi

[Spice-devel] [PATCH spice-gtk] controller: add support for DISABLE_EFFECTS and COLOR_DEPTH

2012-04-02 Thread Yonit Halperin
rhbz #787449 Signed-off-by: Yonit Halperin --- data/spice-protocol.vapi |3 +++ gtk/controller/controller.vala |9 + spice-common |2 +- 3 files changed, 13 insertions(+), 1 deletions(-) diff --git a/data/spice-protocol.vapi b/data/spice-protocol.vapi

[Spice-devel] [PATCH spice-common] updated submodule spice-protocol

2012-04-02 Thread Yonit Halperin
added the disable-effects and color-depth options to the controller Signed-off-by: Yonit Halperin --- spice-protocol |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/spice-protocol b/spice-protocol index 32da251..8cf92f0 16 --- a/spice-protocol +++ b/spice-protocol @@

[Spice-devel] [PATCH spice-protocol] controller: add COLOR_DEPTH and DISABLE_EFFECTS messages

2012-04-02 Thread Yonit Halperin
rhbz #787447 Signed-off-by: Yonit Halperin --- spice/controller_prot.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/spice/controller_prot.h b/spice/controller_prot.h index a60b122..f7b1f26 100644 --- a/spice/controller_prot.h +++ b/spice/controller_prot.h @@ -75,6 +

Re: [Spice-devel] Failing to compile spice-gtk: ../common/client_marshallers.h:27:24: fatal error: marshaller.h: No such file or directory

2012-04-02 Thread Yaniv Kaul
On 04/01/2012 10:41 PM, Marc-André Lureau wrote: Hi - Mensaje original - Indeed - that was the problem - thank you. I don't know how it was not removed during 'git pull'. (and already found a spice-gtk bug - the 'shift+F12' combination seems to work only as 'left-shift+F12', not 'right-