Re: [Spice-devel] keypress-delay issue

2015-06-22 Thread Jared Kwek
Hi all, I worked directly with Victor to test out his patch and wanted to report back to the mailing list on my results. I set SPICE_KEYPRESS_DELAY=10 and saw an improvement in the response time when I was typing. I was using Fedora 21 in the client with Gnome 3 and tried typing in LibreOffice

Re: [Spice-devel] [spice PATCH] Lock the pixmap cache for the fill_bits function call.

2015-06-22 Thread Sandy Stutsman
Sorry for the duplicate. I was getting a bogus "mail not sent" message. -S - Original Message - > From: "Sandy Stutsman" > To: spice-devel@lists.freedesktop.org > Sent: Monday, June 22, 2015 5:44:28 PM > Subject: [Spice-devel] [spice PATCH] Lock the pixmap cache for the fill_bits > fun

[Spice-devel] Spice-devel][vd_agent PATCH V2] Add monitors_config driver escape.

2015-06-22 Thread Sandy Stutsman
When a Windows guest uses the "Set Resolution" applet to change resolutions and/or monitor positions, this escape sends the new monitor configurations to the client via a new QXL driver escape. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1202419 --- Change from v1: * Add call to update

[Spice-devel] [spice-protocol PATCH v2] Add monitors_config escape for qxl-win driver

2015-06-22 Thread Sandy Stutsman
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1202419 A monitors_config message needs to be sent from the guest to the client when monitors are ordered with the "Set Resolution" applet. --- I think it is best to keep the Windows driver escape structures together in the qxl_windows.h fil

[Spice-devel] [spice PATCH] Lock the pixmap cache for the fill_bits function call.

2015-06-22 Thread Sandy Stutsman
Locking the individual calls that access the pixmap cache in fill_bits is not adequately thread safe. Often a windows guest with multiple monitors will be sending the same image via different threads. Both threads can be in fill_bits at the same making changes to the cache for the same image. This

[Spice-devel] [spice PATCH] Lock the pixmap cache for the fill_bits function call.

2015-06-22 Thread Sandy Stutsman
Locking the individual calls that access the pixmap cache in fill_bits is not adequately thread safe. Often a windows guest with multiple monitors will be sending the same image via different threads. Both threads can be in fill_bits at the same making changes to the cache for the same image. This

Re: [Spice-devel] [spice-gtk 0/2] build-sys: Use m4 macros from spice-common

2015-06-22 Thread Marc-André Lureau
- Original Message - > This is the equivalent of the patches which were just pushed to spice-server, > rather than duplicating configure checks between spice-server and spice-gtk, > we > can use m4 macros available from spice-common. looks good, ack __

[Spice-devel] [spice PATCH] Lock the pixmap cache for the fill_bits function call.

2015-06-22 Thread Sandy Stutsman
Locking the individual calls that access the pixmap cache in fill_bits is not adequately thread safe. Often a windows guest with multiple monitors will be sending the same image via different threads. Both threads can be in fill_bits at the same making changes to the cache for the same image. This

[Spice-devel] [win32-qxl PATCH v2] Fix annoying typo in print format statement

2015-06-22 Thread Sandy Stutsman
Add missing information --- %u is better than %d ! --- xddm/display/res.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xddm/display/res.c b/xddm/display/res.c index bfb3571..6864e51 100644 --- a/xddm/display/res.c +++ b/xddm/display/res.c @@ -2005,7 +2005,7 @@ static BOOL Ca

Re: [Spice-devel] [win32-qxl PATCH] Fix annoying typo in print format statement.

2015-06-22 Thread Frediano Ziglio
> > Missing useful information. > --- > xddm/display/res.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xddm/display/res.c b/xddm/display/res.c > index bfb3571..84f9756 100644 > --- a/xddm/display/res.c > +++ b/xddm/display/res.c > @@ -2005,7 +2005,7 @@ static BOOL Cach

[Spice-devel] [win32-qxl PATCH] Add useful information for debugging multi-monitor scenarios

2015-06-22 Thread Sandy Stutsman
--- xddm/miniport/qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xddm/miniport/qxl.c b/xddm/miniport/qxl.c index f5d6b48..85e4fcf 100644 --- a/xddm/miniport/qxl.c +++ b/xddm/miniport/qxl.c @@ -1261,7 +1261,7 @@ BOOLEAN StartIO(PVOID dev_extension, PVIDEO_REQUEST_PACKET p

[Spice-devel] [win32-qxl PATCH] Fix annoying typo in print format statement.

2015-06-22 Thread Sandy Stutsman
Missing useful information. --- xddm/display/res.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xddm/display/res.c b/xddm/display/res.c index bfb3571..84f9756 100644 --- a/xddm/display/res.c +++ b/xddm/display/res.c @@ -2005,7 +2005,7 @@ static BOOL CacheSizeTest(PDev *pdev,

Re: [Spice-devel] [PATCH 1/3] build-sys: Use spice-common m4 macro for smartcard

2015-06-22 Thread Christophe Fergeau
On Mon, Jun 22, 2015 at 06:19:03PM +0200, Victor Toso wrote: > On Mon, Jun 22, 2015 at 06:17:35PM +0200, Victor Toso wrote: > > Hey, > > > > This series and moving the --enable-lz4 to spice-common looks good to > > me. > + version check on lz4 (> 118) Ok I've pushed all of this, thanks. Christoph

[Spice-devel] [spice-gtk 1/2] build-sys: Use SPICE_CHECK_SMARTCARD

2015-06-22 Thread Christophe Fergeau
spice-common has an m4 macro adding a --enable-smartcard option and doing the needed checks, so we can use it in configure.ac rather than duplicating it here. --- configure.ac | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/configure.ac b/configure.ac index

[Spice-devel] [spice-gtk 0/2] build-sys: Use m4 macros from spice-common

2015-06-22 Thread Christophe Fergeau
This is the equivalent of the patches which were just pushed to spice-server, rather than duplicating configure checks between spice-server and spice-gtk, we can use m4 macros available from spice-common. Christophe ___ Spice-devel mailing list Spice-de

[Spice-devel] [spice-gtk 2/2] build-sys: Use SPICE_CHECK_LZ4

2015-06-22 Thread Christophe Fergeau
spice-common now has an m4 macro adding a --enable-lz4 option and doing the needed checks, so we can use it in configure.ac rather than duplicating it here. --- configure.ac | 13 + spice-common | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/configure.ac b/con

Re: [Spice-devel] [PATCH xf86-video-qxl] Fix drawable mm_time with KMS

2015-06-22 Thread Christophe Fergeau
On Mon, Jun 22, 2015 at 07:09:05PM +0200, Christophe Fergeau wrote: > On Mon, Jun 22, 2015 at 04:08:12PM +0200, Javier Celaya wrote: > > El Lunes, 22 de junio de 2015 13:39:17 Christophe Fergeau escribió: > > > Hey, > > > > > > On Fri, Jun 19, 2015 at 02:05:10PM +0200, Javier Celaya wrote: > > > >

[Spice-devel] [qxl] Add note about deprecated setting of mm_time

2015-06-22 Thread Christophe Fergeau
--- src/qxl_surface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 6fc2146..6a7e275 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -84,6 +84,7 @@ make_drawable (qxl_screen_t *qxl, qxl_surface_t *surf, uint8_t type, if (rect)

Re: [Spice-devel] [PATCH xf86-video-qxl] Fix drawable mm_time with KMS

2015-06-22 Thread Christophe Fergeau
On Mon, Jun 22, 2015 at 04:08:12PM +0200, Javier Celaya wrote: > El Lunes, 22 de junio de 2015 13:39:17 Christophe Fergeau escribió: > > Hey, > > > > On Fri, Jun 19, 2015 at 02:05:10PM +0200, Javier Celaya wrote: > > > When KMS is enabled, the mm_time value of a QXLDrawable is undefined. > > > Thi

Re: [Spice-devel] [vdagent PATCH] Add monitors_config driver escape.

2015-06-22 Thread Christophe Fergeau
On Thu, Jun 18, 2015 at 07:14:10PM -0400, sstut...@redhat.com wrote: > From: Sandy Stutsman > > When a Windows guest uses the "Set Resolution" applet to change > resolutions and/or monitor positions, this escape sends the new monitor > configurations to the client via a new QXL driver escape. >

Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting to cached images.

2015-06-22 Thread Sandy Stutsman
That's a good question. I didn't see it happen and I haven't follow the code paths for the other cached items other than to notice that they were different. I was opting to let "sleeping dogs" alone by not changing things that didn't seem broken. - Original Message - > From: "Marc-An

Re: [Spice-devel] [PATCH 1/3] build-sys: Use spice-common m4 macro for smartcard

2015-06-22 Thread Victor Toso
On Mon, Jun 22, 2015 at 06:17:35PM +0200, Victor Toso wrote: > Hey, > > This series and moving the --enable-lz4 to spice-common looks good to > me. + version check on lz4 (> 118) > > - toso > > On Thu, Jun 18, 2015 at 11:58:28AM +0200, Christophe Fergeau wrote: > > Besides the code factorization,

Re: [Spice-devel] [PATCH spice 1/12] server: Convert a couple of rate control checks into asserts in the mjpeg video encoder. (take 3)

2015-06-22 Thread Francois Gouget
On Wed, 10 Jun 2015, Francois Gouget wrote: > The checks would lead the reader to think these functions can be called when > bit rate control is off when in fact they are only called when it is active. > > Signed-off-by: Francois Gouget > --- > > This patch stands on its own and I think it mak

Re: [Spice-devel] [PATCH 1/3] build-sys: Use spice-common m4 macro for smartcard

2015-06-22 Thread Victor Toso
Hey, This series and moving the --enable-lz4 to spice-common looks good to me. - toso On Thu, Jun 18, 2015 at 11:58:28AM +0200, Christophe Fergeau wrote: > Besides the code factorization, this will allow smartcard support to be > automatically enabled if libcacard is present and --disable-smartc

Re: [Spice-devel] Changes to usbredir to support a kernel module

2015-06-22 Thread Jeremy White
On 06/22/2015 10:26 AM, Hans de Goede wrote: > Hi Jeremy, > > On 17-06-15 21:06, Jeremy White wrote: >> I have started work on a usbredir kernel module to enable USB >> redirection for XSpice. >> >> I'd like to reuse the usbredirparser.c code, but it needs changes to >> compile as part of a kernel

Re: [Spice-devel] [PATCH spice 1/2] server: Refresh the input fps every 5 second, without a timer.

2015-06-22 Thread Francois Gouget
On Thu, 11 Jun 2015, Francois Gouget wrote: > Signed-off-by: Francois Gouget > --- > > This implements Marc-André Lureau's suggestion: > http://lists.freedesktop.org/archives/spice-devel/2015-June/020202.html > > And supersedes the input-fps rounding patch. > http://lists.freedesktop.org/archiv

Re: [Spice-devel] [PATCH] Add monitors_config escape to Windows QXL display driver.

2015-06-22 Thread Christophe Fergeau
Not familiar at all with the windows driver code, but this one looks good. The setting of QXLRam::monitors_config value is quite convoluted, but seems in line with what the rest of the code does. SetMonitorsConfig will change if you agree with the suggested changes for the QXLEscapeMonitorConfig st

Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting to cached images.

2015-06-22 Thread Victor Toso
Hi, > Actually, when a new image arrives with an id that is currently in the cache, > it will replace the older one. It will just be created with a +1 reference > count. > > In the case I've been debugging, the image in question is the Windows > wallpaper. > As there is a driver instance for each

Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting to cached images.

2015-06-22 Thread Marc-André Lureau
- Original Message - > Hello > > - Original Message - > > From: "Marc-André Lureau" > > To: "Sandy Stutsman" > > Cc: spice-devel@lists.freedesktop.org > > Sent: Friday, June 19, 2015 6:58:36 PM > > Subject: Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting > > to

Re: [Spice-devel] Changes to usbredir to support a kernel module

2015-06-22 Thread Hans de Goede
Hi Jeremy, On 17-06-15 21:06, Jeremy White wrote: I have started work on a usbredir kernel module to enable USB redirection for XSpice. I'd like to reuse the usbredirparser.c code, but it needs changes to compile as part of a kernel module. These are those changes. The changes look fine to m

Re: [Spice-devel] [spice-protocol PATCH] Add monitors_config escape for qxl-win driver

2015-06-22 Thread Christophe Fergeau
On Thu, Jun 18, 2015 at 07:14:11PM -0400, sstut...@redhat.com wrote: > From: Sandy Stutsman > > Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1202419 > > A monitors_config message needs to be sent from the guest to the client > when monitors are ordered with the "Set Resolution" applet.

Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting to cached images.

2015-06-22 Thread Sandy Stutsman
Hello - Original Message - > From: "Marc-André Lureau" > To: "Sandy Stutsman" > Cc: spice-devel@lists.freedesktop.org > Sent: Friday, June 19, 2015 6:58:36 PM > Subject: Re: [Spice-devel] [spice-gtk PATCH] This adds reference counting to > cached images. > > Hi > > - Original Mess

Re: [Spice-devel] [PATCH xf86-video-qxl] Fix drawable mm_time with KMS

2015-06-22 Thread Javier Celaya
El Lunes, 22 de junio de 2015 13:39:17 Christophe Fergeau escribió: > Hey, > > On Fri, Jun 19, 2015 at 02:05:10PM +0200, Javier Celaya wrote: > > When KMS is enabled, the mm_time value of a QXLDrawable is undefined. > > This results in severe synchronization problems. This patch sets it to > > zer

Re: [Spice-devel] [spice-gtk PATCH] Handle single headed monitors that have a non-zero x, y config offset

2015-06-22 Thread Christophe Fergeau
On Mon, Jun 22, 2015 at 03:03:24PM +0200, Christophe Fergeau wrote: > On Thu, Jun 18, 2015 at 07:14:13PM -0400, sstut...@redhat.com wrote: > > From: Sandy Stutsman > > > > Each monitor on a Windows guest is represented as a separate, single-headed > > device with its own framebuffer. When there

Re: [Spice-devel] [spice-gtk PATCH] Handle single headed monitors that have a non-zero x, y config offset

2015-06-22 Thread Christophe Fergeau
On Thu, Jun 18, 2015 at 07:14:13PM -0400, sstut...@redhat.com wrote: > From: Sandy Stutsman > > Each monitor on a Windows guest is represented as a separate, single-headed > device with its own framebuffer. When there are multiple monitors, all > monitors but one will have a non-zero xy config p

Re: [Spice-devel] [PATCH spice-server] Use desired image compression for the first image

2015-06-22 Thread Christophe Fergeau
Hey, Seems fine, though it's not clear to me why this would only impact the first image? Also, do we have limitations on the kind of images quic can compress? This patch always uses quic when SPICE_IMAGE_COMPRESS_QUIC is used. Christophe On Fri, Jun 19, 2015 at 03:44:39PM +0200, Pavel Grunt wrot

Re: [Spice-devel] [PATCH xf86-video-qxl] Fix drawable mm_time with KMS

2015-06-22 Thread Christophe Fergeau
Hey, On Fri, Jun 19, 2015 at 02:05:10PM +0200, Javier Celaya wrote: > When KMS is enabled, the mm_time value of a QXLDrawable is undefined. > This results in severe synchronization problems. This patch sets it to > zero to force the spice-server to use the local clock. > --- > src/qxl_surface.c |

[Spice-devel] [PATCH] Lock the pixmap cache for the fill_bits function call

2015-06-22 Thread Christophe Fergeau
From: Sandy Stutsman Locking the individual calls that access the pixmap cache in fill_bits is not adequately thread safe. Often a windows guest with multiple monitors will be sending the same image via different threads. Both threads can be in fill_bits at the same making changes to the cache fo