Re: [Spice-devel] [PATCH xf86-video-qxl] In XSpice audio, fully clear the data structure; silences valgrind warnings.

2014-09-19 Thread Jeremy White
memset is fine with me. I'm also a bit curious about the warnings you got, but I guess you no longer have these around. I recall that one of the was the inodes array. Arguably, that was a bug, not just a warning silence. (Just a bug with a very low probability of triggering a problem).

Re: [Spice-devel] [PATCH xf86-video-qxl] When uploading a region, do not go outside the source image size.

2014-09-19 Thread Jeremy White
diff --git a/src/qxl_image.c b/src/qxl_image.c index 8927fd4..53212de 100644 --- a/src/qxl_image.c +++ b/src/qxl_image.c @@ -62,6 +62,8 @@ hash_and_copy (const uint8_t *src, int src_stride, const uint8_t *src_line = src + i * src_stride; uint8_t *dest_line = dest + i * dest_stride;

[Spice-devel] [PATCH xf86-video-qxl v2] When uploading a region, do not go outside the source image size.

2014-09-19 Thread Jeremy White
This problem was exposed (and probably only occurs) when using XSpice in dfps mode with spice-html5, and resizing from larger to smaller. The screen would be resized, but the update region would still attempt to transmit any pending changes to the (now) truncated surface. This would often lead to

Re: [Spice-devel] [PATCH xf86-video-qxl] In XSpice audio, fully clear the data structure; silences valgrind warnings.

2014-09-19 Thread Christophe Fergeau
On Fri, Sep 19, 2014 at 09:09:43AM -0500, Jeremy White wrote: > Hey Christophe, > > Thanks for the patch review. > > >>+memset(&data, 0, sizeof(data)); > > > >Could this be written as struct audio_data data = { 0, }; or something > >like that? > > Sure. > > Note, though, that afaict, memset

Re: [Spice-devel] [PATCH xf86-video-qxl] Initialize the frame buffer used in dfps mode; this silences a number of valgrind errors.

2014-09-19 Thread Christophe Fergeau
On Fri, Sep 19, 2014 at 09:13:57AM -0500, Jeremy White wrote: > On 09/19/2014 06:40 AM, Christophe Fergeau wrote: > >Any idea in which situation we are trying to access uninitialized pixmap > >memory? > > I no longer recall with precision. The valgrind trigger was in > hash_and_copy; I suspect I

Re: [Spice-devel] [PATCH xf86-video-qxl 2/2] Tune the dfps region tracking to collapse to the bounding rectangle if too many small, incremental, updates are provided.

2014-09-19 Thread Christophe Fergeau
Did not look in details at v2, but ack series. Thanks for going the extra mile of splitting them! Christophe On Fri, Sep 19, 2014 at 10:44:12AM -0500, Jeremy White wrote: > Attempting to use x11perf to measure performance revealed a fairly > serious weakness in the dfps code in that use case. I

[Spice-devel] [PATCH xf86-video-qxl 1/2] Add helper functions for updating the boxes and regions; makes the code a bit cleaner.

2014-09-19 Thread Jeremy White
Signed-off-by: Jeremy White --- src/dfps.c | 58 +++--- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/src/dfps.c b/src/dfps.c index 4ab20a8..a57523b 100644 --- a/src/dfps.c +++ b/src/dfps.c @@ -128,6 +128,28 @@ static Bool u

[Spice-devel] [PATCH xf86-video-qxl 2/2] Tune the dfps region tracking to collapse to the bounding rectangle if too many small, incremental, updates are provided.

2014-09-19 Thread Jeremy White
Attempting to use x11perf to measure performance revealed a fairly serious weakness in the dfps code in that use case. In between fps ticks, the updated_region would grow to have thousands of rectangles, which made processing extraordinarily slow. This patch provides a cap on the number of rectan

Re: [Spice-devel] [PATCH xf86-video-qxl] Tune the dfps region tracking to collapse to the bounding rectangle if too many small, incremental, updates are provided.

2014-09-19 Thread Jeremy White
On 09/19/2014 06:32 AM, Christophe Fergeau wrote: Hey, Looks good, ACK. I would have split it one patch introducing dfps_update_{box,region} with no functional change, and one patch adding the DFPS_MAX_UPDATE_REGION limit. Yeah, you're right. Resending. Cheers, Jeremy __

Re: [Spice-devel] W8.0 video drivers

2014-09-19 Thread Klaus Hochlehnert
On their web site they say: The qxl.sys driver must be installed from the drivers folder using pnputil -i -a qxl.inf from a cmd terminal. So I assume there is a qxl spice display driver available... CU, Klaus -Original Message- From: Spice-devel [mailto:spice-devel-boun...@lists.freedes

Re: [Spice-devel] Help with solving a thread safety issue

2014-09-19 Thread Jeremy White
This thread veered; I'd like to bring it back, if I can. I've got a clear case of thread unsafety in XSpice. spice_server_playback_put_samples is called from a different thread than the main thread. If the main thread calls main_dispatcher_handle_mm_time_latency while we're putting samples, v

Re: [Spice-devel] [PATCH xf86-video-qxl] Initialize the frame buffer used in dfps mode; this silences a number of valgrind errors.

2014-09-19 Thread Jeremy White
On 09/19/2014 06:40 AM, Christophe Fergeau wrote: Any idea in which situation we are trying to access uninitialized pixmap memory? I no longer recall with precision. The valgrind trigger was in hash_and_copy; I suspect I first encountered it in the case I fixed with a later patch (copying pa

Re: [Spice-devel] [PATCH xf86-video-qxl] In XSpice audio, fully clear the data structure; silences valgrind warnings.

2014-09-19 Thread Jeremy White
Hey Christophe, Thanks for the patch review. +memset(&data, 0, sizeof(data)); Could this be written as struct audio_data data = { 0, }; or something like that? Sure. Note, though, that afaict, memset(...0...) seems more prevalent in the spice code than the universal zero initializer.

Re: [Spice-devel] screen freezed for 2-3 minutes on spice connect on xen windows 7 domU's with qxl after save/restore

2014-09-19 Thread Fabio Fantoni
Il 12/09/2014 16:46, Fabio Fantoni ha scritto: Il 08/07/2014 12:34, Fabio Fantoni ha scritto: Il 08/07/2014 12:06, Fabio Fantoni ha scritto: Il 08/07/2014 10:53, David Jaša ha scritto: Hi, On Út, 2014-07-08 at 10:13 +0200, Fabio Fantoni wrote: On xen 4.5 (tried with qemu 2.0.0/2.1-rc0, spice

Re: [Spice-devel] [PATCH xf86-video-qxl] When uploading a region, do not go outside the source image size.

2014-09-19 Thread Christophe Fergeau
On Fri, Sep 12, 2014 at 02:25:14PM -0500, Jeremy White wrote: > This problem was exposed (and probably only occurs) when using XSpice > in dfps mode with spice-html5, and resizing from larger to smaller. > The screen would be resized, but the update region would still attempt > to transmit any pend

Re: [Spice-devel] [PATCH xf86-video-qxl] Initialize the frame buffer used in dfps mode; this silences a number of valgrind errors.

2014-09-19 Thread Christophe Fergeau
Any idea in which situation we are trying to access uninitialized pixmap memory? Apart from that, why not. Christophe On Fri, Sep 12, 2014 at 02:20:36PM -0500, Jeremy White wrote: > > Signed-off-by: Jeremy White > --- > src/dfps.c | 14 ++ > 1 file changed, 14 insertions(+) > >

Re: [Spice-devel] [PATCH xf86-video-qxl] Tune the dfps region tracking to collapse to the bounding rectangle if too many small, incremental, updates are provided.

2014-09-19 Thread Christophe Fergeau
Hey, Looks good, ACK. I would have split it one patch introducing dfps_update_{box,region} with no functional change, and one patch adding the DFPS_MAX_UPDATE_REGION limit. Christophe On Wed, Sep 10, 2014 at 12:26:26PM -0500, Jeremy White wrote: > Attempting to use x11perf to measure performance

Re: [Spice-devel] [PATCH xf86-video-qxl] In XSpice audio, fully clear the data structure; silences valgrind warnings.

2014-09-19 Thread Christophe Fergeau
On Mon, Sep 15, 2014 at 11:26:14AM -0500, Jeremy White wrote: > > Signed-off-by: Jeremy White > --- > src/spiceqxl_audio.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/spiceqxl_audio.c b/src/spiceqxl_audio.c > index 7afc089..02859ee 100644 > --- a/src/spiceqxl

Re: [Spice-devel] compiling virt-viewer 1.0 error

2014-09-19 Thread Christophe Fergeau
Hey, On Fri, Sep 19, 2014 at 01:28:46PM +0800, PaulCheung wrote: > Dear all, > I am compiling virt-viewer 1.0 on debian(arm). I got the flowing problem! > First I compiled & installed spice-gtk-0.24.tar.gz > then I install this, 1. ./configure no error 2. makeand > then sho