[Spice-devel] [PATCH spice-gtk] display: blank surface on creation

2013-10-16 Thread Marc-André Lureau
In theory, zero-ing the surface shouldn't be necessary, as only invalidated/painted region should be shown. However, this results in less artifacts on resolution changes (probably some regions are painted, but with masks, blend, copy etc), in particular on console after VM reboot. --- gtk/channel-

Re: [Spice-devel] Sound rework 0/0

2013-10-16 Thread Jeremy White
> The open issue, in my mind, is whether or not it is worth doing a more > complete generalization. That is, the current code has essentially hard > coded requirements for the format and number of channels. It also uses > fairly static sizing for frame buffers. The spice-gtk code is pretty clean

Re: [Spice-devel] [spice-gtk] sasl: Rework memory handling in spice_channel_perform_auth_sasl()

2013-10-16 Thread Marc-André Lureau
- Original Message - > While looking at the SASL code, I noticed some memory leaks in error paths. > This commit adds a cleanup: block to free some of the memory dynamically > allocated in that function, and remove the corresponding g_free() from > the regular code flow. This should ensur

[Spice-devel] [spice-gtk] sasl: Rework memory handling in spice_channel_perform_auth_sasl()

2013-10-16 Thread Christophe Fergeau
While looking at the SASL code, I noticed some memory leaks in error paths. This commit adds a cleanup: block to free some of the memory dynamically allocated in that function, and remove the corresponding g_free() from the regular code flow. This should ensure that both the regular path and the er

Re: [Spice-devel] [spice-gtk 1/2] Fix --spice-debug

2013-10-16 Thread Marc-André Lureau
ack On Wed, Oct 16, 2013 at 6:34 PM, Christophe Fergeau wrote: > If spice_util_set_debug() gets called before spice_util_get_debug(), > then the value set using spice_util_set_debug() will be overridden > by the result of g_getenv("SPICE_DEBUG") != NULL the first time > spice_util_get_debug() is

Re: [Spice-devel] [spice-gtk 2/2] Display g_debug messages when SPICE_DEBUG is set

2013-10-16 Thread Marc-André Lureau
ack On Wed, Oct 16, 2013 at 6:34 PM, Christophe Fergeau wrote: > When SPICE_DEBUG is set but --spice-debug is not used, we fail > to set G_MESSAGES_DEBUG to the log domain used by spice-gtk, which > causes debug messages not to be printed as one would expect. > --- > gtk/spice-util.c | 34 ++

[Spice-devel] [spice-gtk sound rework 3/3] Use the new snd_codec interface to process encoded audio.

2013-10-16 Thread Jeremy White
Signed-off-by: Jeremy White --- README |2 +- configure.ac |8 +--- gtk/channel-playback.c | 59 - gtk/channel-record.c | 99 4 files changed, 49 insertions(+), 119 deletions(-) d

[Spice-devel] [spice sound rework 2/3] Revise the spice client and server to use the new snd_codec functions in spice-common.

2013-10-16 Thread Jeremy White
This makes celt optional, and paves the way to readily add additional codecs. Signed-off-by: Jeremy White --- README |1 - client/audio_channels.h | 12 ++- client/playback_channel.cpp | 59 ++-- client/record_channel.cpp | 69 ++ configur

[Spice-devel] [spice-common sound rework 1/3] Add a snd_codec interface to abstract the use of audio codecs such as celt.

2013-10-16 Thread Jeremy White
Signed-off-by: Jeremy White --- common/Makefile.am |7 ++ common/snd_codec.c | 285 common/snd_codec.h | 69 + configure.ac | 16 +++ 4 files changed, 377 insertions(+) create mode 100644 common/snd_codec.c create m

[Spice-devel] Sound rework 0/0

2013-10-16 Thread Jeremy White
The following three patches are a resend of my first sequence from yesterday that generalizes sound processing. This set should incorporate all of Christophe's feedback. The open issue, in my mind, is whether or not it is worth doing a more complete generalization. That is, the current code has

[Spice-devel] [spice-gtk 2/2] Display g_debug messages when SPICE_DEBUG is set

2013-10-16 Thread Christophe Fergeau
When SPICE_DEBUG is set but --spice-debug is not used, we fail to set G_MESSAGES_DEBUG to the log domain used by spice-gtk, which causes debug messages not to be printed as one would expect. --- gtk/spice-util.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletion

[Spice-devel] [spice-gtk 1/2] Fix --spice-debug

2013-10-16 Thread Christophe Fergeau
If spice_util_set_debug() gets called before spice_util_get_debug(), then the value set using spice_util_set_debug() will be overridden by the result of g_getenv("SPICE_DEBUG") != NULL the first time spice_util_get_debug() is called. This causes remote-viewer --spice-debug to not enable debug as a

Re: [Spice-devel] [spice-gtk 1/2] sasl: Fix memory leaks in spice_channel_perform_auth_sasl()

2013-10-16 Thread Marc-André Lureau
- Original Message - > Sorry to ask, but what was the leak exactly? Ok, found some on error. You could simplify the code a bit, to unify a bit more the free() location. Perhaps have a final "cleanup:" block? > - Original Message - > > While looking at the SASL code, I noticed

Re: [Spice-devel] [spice-gtk 2/2] sasl: Fix crash when ending a SASL session

2013-10-16 Thread Marc-André Lureau
ack - Original Message - > When exiting remote-viewer after authenticating through SASL, I got > this crash: > > #0 0x000100a51870 in ?? () > #1 0x00314d20c53e in _sasl_log (conn=, level=5, > fmt=0x7fffe49893e8 "DIGEST-MD5 client mech dispose") > at common.c:1985 > #2

Re: [Spice-devel] [spice-gtk 1/2] sasl: Fix memory leaks in spice_channel_perform_auth_sasl()

2013-10-16 Thread Marc-André Lureau
Sorry to ask, but what was the leak exactly? - Original Message - > While looking at the SASL code, I noticed some memory leaks. > --- > gtk/spice-channel.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c > i

[Spice-devel] [spice-gtk 2/2] sasl: Fix crash when ending a SASL session

2013-10-16 Thread Christophe Fergeau
When exiting remote-viewer after authenticating through SASL, I got this crash: #0 0x000100a51870 in ?? () #1 0x00314d20c53e in _sasl_log (conn=, level=5, fmt=0x7fffe49893e8 "DIGEST-MD5 client mech dispose") at common.c:1985 #2 0x7fffe4982d88 in digestmd5_client_mech_dispos

[Spice-devel] [spice-gtk 1/2] sasl: Fix memory leaks in spice_channel_perform_auth_sasl()

2013-10-16 Thread Christophe Fergeau
While looking at the SASL code, I noticed some memory leaks. --- gtk/spice-channel.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c index 08418f7..9b2697e 100644 --- a/gtk/spice-channel.c +++ b/gtk/spice-channel.c @@ -1387

[Spice-devel] help

2013-10-16 Thread linuxqc
___ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [codec 2/spice] Revise the spice server to use the new snd_codec functions in spice-common.

2013-10-16 Thread Jeremy White
Thanks for the review; it is much appreciated. On 10/16/2013 06:05 AM, Christophe Fergeau wrote: > The subject is misleading, it's not just changing spice-server, but both > server and client. Fair enough, I'll amend that. > Can you fix the playbacke typo while at it? Sure. > This does not see

Re: [Spice-devel] [Users] desktop virtualization and GPU support

2013-10-16 Thread David Jaša
Hi, I'm afraid that none of these cards will work. IIRC it was explained for nVidia approach that it would be necessary to add their closed-source code to qemu which is not going to happen. You might have better luck with AMD card "passthrough" approach but I'm not sure if GPUs can be passed throu

Re: [Spice-devel] [codec/common 1] Add a snd_codec interface to abstract the use of audio codecs such as celt.

2013-10-16 Thread Jeremy White
Are you intentionally using the same value for ENCODE/DECODE_FAILED? I'm asking because ENCODER/DECODER_UNAVAILABLE got different values. Nope, that's a bug. I'll respin that one. Looks good otherwise, ACK. Christophe ___ Spice-devel mailing li

Re: [Spice-devel] UPDATE: spice-gtk on MAC OSX

2013-10-16 Thread Marc-André Lureau
- Original Message - > Hi, > > I just took a look into those functions that are not seem to be involved > in performance issues. Until today I stopped at the > gdk_window_update_idle() as this call is suggestive of being innocent. I > thought it may sleep. > > However this calling threa

Re: [Spice-devel] [codec 3/spice-gtk] Use the new snd_codec interface to process encoded audio.

2013-10-16 Thread Christophe Fergeau
On Tue, Oct 15, 2013 at 09:28:55AM -0500, Jeremy White wrote: > Signed-off-by: Jeremy White > --- > configure.ac | 37 +++--- > gtk/channel-playback.c | 58 +++- > gtk/channel-record.c | 98 > +++- >

Re: [Spice-devel] [Users] desktop virtualization and GPU support

2013-10-16 Thread Jorick Astrego
We were looking at this card: It's just for a couple of users that need GPU, the rest we can arrange with terminal server without GPU. http://hothardware.com/News/AMD-Sets-Its-Eyes-On-New-GPU-Virtualization-Markets-Launches-S9000--S7000-Family/ AMD's Citrix and VMWare support uses a mode called

Re: [Spice-devel] [codec 2/spice] Revise the spice server to use the new snd_codec functions in spice-common.

2013-10-16 Thread Christophe Fergeau
The subject is misleading, it's not just changing spice-server, but both server and client. On Tue, Oct 15, 2013 at 09:28:46AM -0500, Jeremy White wrote: > This makes celt optional, and paves the way to readily add additional codecs. > > Signed-off-by: Jeremy White > --- > README

[Spice-devel] [patch 3/3] spice-gtk: send new utf8 messages if requested

2013-10-16 Thread dietmar
Signed-off-by: Dietmar Maurer Index: new/gtk/channel-inputs.c === --- new.orig/gtk/channel-inputs.c 2013-10-16 09:53:10.0 +0200 +++ new/gtk/channel-inputs.c2013-10-16 10:00:11.0 +0200 @@ -451,6 +451,21 @@

[Spice-devel] [patch 2/3] spice-server: add push_utf8 callback to input channel

2013-10-16 Thread dietmar
Signed-off-by: Dietmar Maurer Index: new/server/inputs_channel.c === --- new.orig/server/inputs_channel.c2013-10-16 12:37:14.0 +0200 +++ new/server/inputs_channel.c 2013-10-16 12:37:41.0 +0200 @@ -124,6 +124,11 @@

[Spice-devel] [patch 1/3] spice-server: add the ability to send utf8 on input channel

2013-10-16 Thread dietmar
Introduce a new capability SPICE_INPUTS_CAP_KEY_UTF8. Signed-off-by: Dietmar Maurer Index: new/spice-common/spice.proto === --- new.orig/spice-common/spice.proto 2013-07-17 17:33:52.0 +0200 +++ new/spice-common/spice.proto

[Spice-devel] [patch 0/3] X11 UTF8 input channel extension v3

2013-10-16 Thread dietmar
This version sends utf8 characters instead of keysyms. I tried to include all suggestion from Marc. Description: The SPICE input channel currently only sends scancodes. Thus the server does not know what character was pressed (server does not know the client keymap). But some SPICE applications

Re: [Spice-devel] [patch 0/6] X11 KEYSYM input channel extension v2

2013-10-16 Thread Dietmar Maurer
> > I just send this to the list to archive the work I have done so far. > > Marc already expressed that he do like the current patches, so I will > > rewrite them and post v3 soon. Oh sorry - I want to write "Marc already expressed that he do NOT like the current patches" > Yes, but I have conc

Re: [Spice-devel] [patch 0/6] X11 KEYSYM input channel extension v2

2013-10-16 Thread Marc-André Lureau
On Wed, Oct 16, 2013 at 7:15 AM, wrote: > This version adds code to directly forward keysmys to vdagent, which then > tries to inject keysyms into X11. > > That way you always have correct input characters even if VM and > client do not share the same keymap! > > Experiemts showed that is quite u

Re: [Spice-devel] [patch 6/6] spice-vdagent: directly inject keysyms to X11, using libXtst

2013-10-16 Thread Marc-André Lureau
- Original Message - > Note: This is an ugly hack because there is currently no clean way to do it. > > But experiments showed that the X11 agent is the wrong place to do such > things, because it is started to late (after login). That should not be a big problem, the greeter should run

Re: [Spice-devel] [codec/common 1] Add a snd_codec interface to abstract the use of audio codecs such as celt.

2013-10-16 Thread Christophe Fergeau
On Tue, Oct 15, 2013 at 09:28:23AM -0500, Jeremy White wrote: > Signed-off-by: Jeremy White > --- > common/Makefile.am |4 + > common/snd_codec.c | 261 > > common/snd_codec.h | 79 > configure.ac | 16 > 4

Re: [Spice-devel] [opus 1/protocol] Add support for the Opus codec

2013-10-16 Thread Christophe Fergeau
ACK On Tue, Oct 15, 2013 at 09:29:22AM -0500, Jeremy White wrote: > Signed-off-by: Jeremy White > --- > spice/enums.h|1 + > spice/protocol.h |2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/spice/enums.h b/spice/enums.h > index f192e43..fdcffa8 100644 > --- a/spice/enums.

Re: [Spice-devel] UPDATE: spice-gtk on MAC OSX

2013-10-16 Thread Christophe Fergeau
On Wed, Oct 16, 2013 at 10:37:07AM +0200, Mario wrote: > Hi, > > I just took a look into those functions that are not seem to be > involved in performance issues. Until today I stopped at the > gdk_window_update_idle() as this call is suggestive of being > innocent. I thought it may sleep. > > Ho

[Spice-devel] spice html5 keyboard issues

2013-10-16 Thread Karim Boumedhel
hi List, I get a "no map for 173" error when touching the minus key on recent browsers and on a spanish browser. I know there are known issues regarding translation of web key codes into scan codes and am eager to help solving this , a precedent thread pointed editing

Re: [Spice-devel] RFC: Integrating Virgil and Spice

2013-10-16 Thread David Airlie
- Original Message - > From: "Gerd Hoffmann" > To: "Dave Airlie" > Cc: "Hans de Goede" , "spice-devel" > , "Dave Airlie" > > Sent: Wednesday, 9 October, 2013 6:44:58 PM > Subject: Re: [Spice-devel] RFC: Integrating Virgil and Spice > > On Mi, 2013-10-09 at 08:46 +1000, Dave Airlie wr

Re: [Spice-devel] [Users] Newbie: some questions on ovirt

2013-10-16 Thread Dominique Rodrigues
Le 16/10/2013 09:24, Christophe Fergeau a écrit : Hey, On Tue, Oct 15, 2013 at 05:13:21PM -0400, Itamar Heim wrote: On 10/15/2013 04:50 PM, Mario Giammarco wrote: Itamar Heim writes: On 10/04/2013 01:58

Re: [Spice-devel] [Users] Newbie: some questions on ovirt

2013-10-16 Thread Christophe Fergeau
Hey, On Tue, Oct 15, 2013 at 05:13:21PM -0400, Itamar Heim wrote: > On 10/15/2013 04:50 PM, Mario Giammarco wrote: > >Itamar Heim writes: > > > >> > >>On 10/04/2013 01:58 PM, Mario Giammarco wrote: > > > >rendering is slow; > > adding spice-devel on this one > > >>>Thanks, to be