Re: [Spice-devel] [protocol RFC 0/2] RANDR support via QXLHead + SpiceHead

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 12:01:42PM +0200, Gerd Hoffmann wrote: Hi, But there is no concept of an additional surface in the guest driver. RANDR 1.2 (and I think the same for 1.3, 1.4, since we don't have per CRTC pixmaps) has a single screen wide pixmap. A screen is one per X server,

Re: [Spice-devel] [protocol RFC 0/2] RANDR support via QXLHead + SpiceHead

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 01:28:58PM +0300, Alon Levy wrote: On Mon, May 07, 2012 at 12:01:42PM +0200, Gerd Hoffmann wrote: Hi, But there is no concept of an additional surface in the guest driver. RANDR 1.2 (and I think the same for 1.3, 1.4, since we don't have per CRTC pixmaps

Re: [Spice-devel] [protocol RFC 0/2] RANDR support via QXLHead + SpiceHead

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 01:36:03PM +0300, Alon Levy wrote: On Mon, May 07, 2012 at 01:28:58PM +0300, Alon Levy wrote: On Mon, May 07, 2012 at 12:01:42PM +0200, Gerd Hoffmann wrote: Hi, But there is no concept of an additional surface in the guest driver. RANDR 1.2 (and I think

[Spice-devel] [PATCH] server/reds: add usbredir to recognized channel names

2012-05-07 Thread Alon Levy
RHBZ: 819484 Signed-off-by: Alon Levy al...@redhat.com --- server/reds.c |1 + 1 file changed, 1 insertion(+) diff --git a/server/reds.c b/server/reds.c index 1696fbc..26d6f89 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3971,6 +3971,7 @@ SPICE_GNUC_VISIBLE int

Re: [Spice-devel] [protocol RFC 0/2] RANDR support via QXLHead + SpiceHead

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 01:57:37PM +0200, Gerd Hoffmann wrote: On 05/07/12 12:28, Alon Levy wrote: On Mon, May 07, 2012 at 12:01:42PM +0200, Gerd Hoffmann wrote: Hi, But there is no concept of an additional surface in the guest driver. RANDR 1.2 (and I think the same for 1.3, 1.4

Re: [Spice-devel] [PATCH] server/reds: add usbredir to recognized channel names

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 02:19:43PM +0200, Marc-André Lureau wrote: On Mon, May 7, 2012 at 1:37 PM, Alon Levy al...@redhat.com wrote: RHBZ: 819484 Signed-off-by: Alon Levy al...@redhat.com ---  server/reds.c |    1 +  1 file changed, 1 insertion(+) diff --git a/server/reds.c b

Re: [Spice-devel] [protocol RFC 0/2] RANDR support via QXLHead + SpiceHead

2012-05-07 Thread Alon Levy
On Mon, May 07, 2012 at 02:16:09PM +0200, Marc-André Lureau wrote: On Mon, May 7, 2012 at 8:28 AM, Alon Levy al...@redhat.com wrote:  RANDR introduces a concept of a CRTC and an OUTPUT. The CRTC scansout a  portion of the framebuffer onto one or more OUTPUTs. I propose having a 1:1

Re: [Spice-devel] Javascript client update, next steps

2012-05-06 Thread Alon Levy
On Thu, May 03, 2012 at 10:16:01PM -0500, Jeremy White wrote: I've got a pure Javascript based client with which I can control a few xterms, start and use gedit, and just generally operate an Xspice server. It's still extremely limited; a few kinds of draws, no masks or clips, no

Re: [Spice-devel] More on xspice + failure in net ping over vpn

2012-05-06 Thread Alon Levy
On Fri, May 04, 2012 at 11:36:55AM -0500, Jeremy White wrote: So I've probed more deeply after my naive misunderstanding of the consequence of the EAGAIN. I believe I am closer to the source of the problem; I also believe the problem is more serious than I realized; it's likely to bite

Re: [Spice-devel] [PATCH] Disable qualifier cast warning from GCC

2012-05-04 Thread Alon Levy
On Thu, May 03, 2012 at 05:33:31PM +0200, Christophe Fergeau wrote: X.Org adds -Wcast-qual to its default WARNCFLAGS, but then it doesn't use const in the API it exports, which leads to warnings when trying to initialize some fields of the various DriverRec structures with string literals.

Re: [Spice-devel] [PATCH xf86-video-qxl v2 cleanup 1/6] qxl_driver: cleanup: fix const cast warnings

2012-05-03 Thread Alon Levy
, Alon Levy wrote: --- src/qxl_driver.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 6e06174..af5bfca 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1619,6 +1619,8 @@ static PciChipsets qxlPciChips

Re: [Spice-devel] [PATCH spice 07/18] server/red_worker.c/video: add support for frames of different sizes

2012-05-02 Thread Alon Levy
On Wed, May 02, 2012 at 05:01:42PM +0300, Yonit Halperin wrote: rhbz #813826 This patch doesn't apply. The patch needs some fixing anyway, comments below. When playing a youtube video on Windows guest, the driver sometimes sends images which contain the video frames, but also other parts of

Re: [Spice-devel] [PATCH spice 10/18] server/tests/test_display_base: fix two int to pointer cast warnings

2012-05-02 Thread Alon Levy
On Wed, May 02, 2012 at 05:01:45PM +0300, Yonit Halperin wrote: From: Alon Levy al...@redhat.com No longer required, superceded by 39565707a9b9b6460ca18c5c9749ae565d583e2a (minus a missing space but de nada). --- server/tests/test_display_base.c |4 ++-- 1 files changed, 2 insertions

Re: [Spice-devel] [PATCH spice 01/18] Update the spice-common submodule

2012-05-02 Thread Alon Levy
On Wed, May 02, 2012 at 05:01:36PM +0300, Yonit Halperin wrote: ACK series, minus two commented patches. Another comment that you can fix or not coming up (same as last time, the *1.3 turned to *2 constant, but just a nitpick). We need some rect/region getters methods that were added ---

Re: [Spice-devel] Audio recording device - Win 7 guest

2012-04-30 Thread Alon Levy
On Mon, Apr 30, 2012 at 08:21:13AM -0400, Marian Krcmarik wrote: - Original Message - From: Nick Causton add.n...@associateddata.co.uk To: spice-devel@lists.freedesktop.org Sent: Monday, April 30, 2012 12:51:08 PM Subject: Re: [Spice-devel] Audio recording device - Win 7 guest

Re: [Spice-devel] [PATCH] Distribution-agnostic XORG_MACROS_VERSION check message

2012-04-27 Thread Alon Levy
On Thu, Apr 26, 2012 at 08:30:25PM +0200, Christophe Fergeau wrote: On Thu, Apr 26, 2012 at 02:19:00PM +0300, Alon Levy wrote: On Wed, Apr 25, 2012 at 04:18:19PM +0200, Christophe Fergeau wrote: On second thought, please change XOrg to X.Org below (that's how it is on the wiki front page

Re: [Spice-devel] Bug fix for server on 32 bit systems

2012-04-27 Thread Alon Levy
On Thu, Apr 26, 2012 at 12:12:09PM -0500, Jeremy White wrote: My display channels were instantly timing out; turns out that the implementation of red_now() doesn't work on my 32 bit system. This patch should fix that. Thanks! ACK, I'll commit. Could you please send the patches inline next

Re: [Spice-devel] Bug fix for server on 32 bit systems

2012-04-27 Thread Alon Levy
On Thu, Apr 26, 2012 at 12:12:09PM -0500, Jeremy White wrote: My display channels were instantly timing out; turns out that the implementation of red_now() doesn't work on my 32 bit system. This patch should fix that. Cheers, Jeremy From 77b366c0d33befceb530c095be276c1e0e2146b7 Mon

Re: [Spice-devel] [PATCH slirp] Replace () with (void) in public function definitions

2012-04-26 Thread Alon Levy
On Wed, Apr 25, 2012 at 03:12:38PM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com ACK. Functions with no arguments must use (void) in C --- net_slirp.c | 12 ++-- net_slirp.h |6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff

Re: [Spice-devel] [PATCH] Distribution-agnostic XORG_MACROS_VERSION check message

2012-04-26 Thread Alon Levy
On Wed, Apr 25, 2012 at 04:18:19PM +0200, Christophe Fergeau wrote: ACK. --- configure.ac |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a97f477..691e2c6 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,7 @@

Re: [Spice-devel] [PATCH] Distribution-agnostic XORG_MACROS_VERSION check message

2012-04-26 Thread Alon Levy
On Wed, Apr 25, 2012 at 04:18:19PM +0200, Christophe Fergeau wrote: On second thought, please change XOrg to X.Org below (that's how it is on the wiki front page http://www.x.org/wiki/) --- configure.ac |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac

Re: [Spice-devel] [PATCH 1/6] server/tests: refactor test_display_base

2012-04-26 Thread Alon Levy
On Thu, Apr 19, 2012 at 01:48:38PM +0300, Alon Levy wrote: Ping. --- server/tests/test_display_base.c | 79 ++ 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c

Re: [Spice-devel] Minor fix to the SpiceClip/type field

2012-04-26 Thread Alon Levy
On Thu, Apr 26, 2012 at 09:46:49AM -0500, Jeremy White wrote: This patch should make it reflect the on wire size. This one cost me an hour and some hair; hopefully it'll save someone else in the future. Thanks, ACK. In general the on wire format is defined by spice.proto : enum8 clip_type

Re: [Spice-devel] [PATCH] Change xorg-macros - xorg-x11-util-macros in configure error message

2012-04-25 Thread Alon Levy
On Tue, Apr 24, 2012 at 01:22:41PM +0300, Yaniv Kaul wrote: At least in Fedora 17, the correct RPM name is xorg-x11-util-macros Please fix your emailer to not split lines, it causes a malformed patch - see the '-' and '+' lines below, there should not be an extra EOL between them. diff

Re: [Spice-devel] [PATCH] Change xorg-macros - xorg-x11-util-macros in configure error message

2012-04-25 Thread Alon Levy
On Wed, Apr 25, 2012 at 01:21:45PM +0100, Daniel P. Berrange wrote: On Wed, Apr 25, 2012 at 03:15:00PM +0300, Alon Levy wrote: On Tue, Apr 24, 2012 at 01:22:41PM +0300, Yaniv Kaul wrote: At least in Fedora 17, the correct RPM name is xorg-x11-util-macros Please fix your emailer

Re: [Spice-devel] [PATCH] Change xorg-macros - xorg-x11-util-macros in configure error message

2012-04-25 Thread Alon Levy
On Wed, Apr 25, 2012 at 03:05:55PM +0200, Christophe Fergeau wrote: On Wed, Apr 25, 2012 at 12:59:46PM +0300, Yaniv Kaul wrote: It does not harm them in any way, AFAIK - I could not find similar named packages in either. So better get the name right on one distribution than none. I'd

Re: [Spice-devel] Client Graphics Filtering

2012-04-24 Thread Alon Levy
On Tue, Apr 24, 2012 at 09:47:47AM +0800, 蒋媛园 wrote: Hi I want to filter the graphics to the client. For example, only the graphics of a calculator(in guest OS Win7) are send to the client. I know that there is always the possibility of falling all the way back to CPU drawing to a

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 4/6] add vim headers to set tabstop to 8

2012-04-24 Thread Alon Levy
--- src/qxl.h|1 + src/qxl_cursor.c |1 + src/qxl_driver.c |1 + src/qxl_image.c |1 + src/qxl_mem.c|1 + src/qxl_option_helpers.c |1 + src/qxl_ring.c |1 + src/qxl_surface.c|1 + 8 files

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 2/6] spiceqxl_inputs: fix const discard at initialization warnings

2012-04-24 Thread Alon Levy
--- src/spiceqxl_inputs.c | 64 - 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/src/spiceqxl_inputs.c b/src/spiceqxl_inputs.c index 62ef19f..5cfa823 100644 --- a/src/spiceqxl_inputs.c +++ b/src/spiceqxl_inputs.c @@ -46,26 +46,6

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 1/6] qxl_driver: cleanup: fix const cast warnings

2012-04-24 Thread Alon Levy
--- src/qxl_driver.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 6e06174..af5bfca 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1619,6 +1619,8 @@ static PciChipsets qxlPciChips[] = #endif #endif /* !XSPICE */

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 3/6] xspice: cleanup: avoid const cast warnings on option initializers

2012-04-24 Thread Alon Levy
--- src/qxl_driver.c | 14 ++ src/spiceqxl_inputs.c |4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index af5bfca..fcb1b6b 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -58,6 +58,12 @@ extern void

Re: [Spice-devel] [PATCH] Change xorg-macros - xorg-x11-util-macros in configure error message

2012-04-24 Thread Alon Levy
On Tue, Apr 24, 2012 at 01:22:41PM +0300, Yaniv Kaul wrote: At least in Fedora 17, the correct RPM name is xorg-x11-util-macros We could use the upstream name too, xorg-util-macros (kinda): http://cgit.freedesktop.org/xorg/util/macros/tree/configure.ac#n25 But this is better anyway. ACK.

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 5/6] qxl_ring: remove volatile. doesn't accomplish anything the mem_barrier doesn't also accomplish, and removes warnings when using memcpy

2012-04-24 Thread Alon Levy
--- src/qxl_ring.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/qxl_ring.c b/src/qxl_ring.c index 7a11fbb..d701791 100644 --- a/src/qxl_ring.c +++ b/src/qxl_ring.c @@ -42,7 +42,7 @@ struct ring struct qxl_ring { -volatile struct ring *ring; +

[Spice-devel] [PATCH xf86-video-qxl v2 cleanup 6/6] murmurhash3: fix always_inline function might not be inlinable warning

2012-04-24 Thread Alon Levy
__attribute__((always_inline)) does not replace inline and they still need to be used together. This fixes always_inline function might not be inlinable [-Wattributes] warning in gcc 4.7 --- src/murmurhash3.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/murmurhash3.c

Re: [Spice-devel] [PATCH xf86-video-qxl] Do not call update_area when lacking device memory

2012-04-23 Thread Alon Levy
On Mon, Apr 23, 2012 at 09:04:36AM +0300, Yonit Halperin wrote: The QXL_IO_NOTIFY_OOM is intended exactly for handling occurrences of lacking memory. The spice server tries to first release resources that are no longer in the current tree (and thus, do not need rendering). It renders drawables

Re: [Spice-devel] [PATCH spice-gtk] RFC: widget: improve undesired key repeatition

2012-04-22 Thread Alon Levy
On Fri, Apr 20, 2012 at 01:59:05AM +0200, Marc-André Lureau wrote: Hi Now that I implemented it a bit more correctly, using a timer, and splitting the in two patches, I realize that it doesn't work with windows. Windows expect to receive several key press events apparently. Hans, the hack

Re: [Spice-devel] [PATCH spice-gtk] RFC: widget: improve undesired key repeatition

2012-04-22 Thread Alon Levy
On Sun, Apr 22, 2012 at 03:16:20PM +0200, Marc-André Lureau wrote: Hi On Sun, Apr 22, 2012 at 9:40 AM, Alon Levy al...@redhat.com wrote: On Fri, Apr 20, 2012 at 01:59:05AM +0200, Marc-André Lureau wrote: So it seems like we should keep sending repeat key press in fact. And it's probably

[Spice-devel] [PATCH 1/6] server/tests: refactor test_display_base

2012-04-19 Thread Alon Levy
--- server/tests/test_display_base.c | 79 ++ 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index f6c3f6b..e376195 100644 --- a/server/tests/test_display_base.c +++

[Spice-devel] [PATCH 2/6] server/tests/test_display_base: fix two int to pointer cast warnings

2012-04-19 Thread Alon Levy
--- server/tests/test_display_base.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index e376195..d060f3f 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -533,7

[Spice-devel] [PATCH 3/6] server/tests: add test_get_width/test_get_height

2012-04-19 Thread Alon Levy
--- server/tests/test_display_base.c | 16 server/tests/test_display_base.h |3 +++ 2 files changed, 19 insertions(+) diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index d060f3f..fd9a37e 100644 --- a/server/tests/test_display_base.c +++

[Spice-devel] [PATCH 4/6] server/tests: refactor Command

2012-04-19 Thread Alon Levy
--- server/tests/test_display_base.c | 10 +++ server/tests/test_display_base.h | 33 server/tests/test_display_resolution_changes.c | 10 +++ 3 files changed, 37 insertions(+), 16 deletions(-) diff --git

[Spice-devel] [PATCH 6/6] server/tests/test_display_streaming: update to create sized frames

2012-04-19 Thread Alon Levy
--- server/tests/test_display_streaming.c | 44 +++-- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/server/tests/test_display_streaming.c b/server/tests/test_display_streaming.c index 1b81d76..b4fe013 100644 ---

Re: [Spice-devel] [ qemu-kvm-1.0-usbredir / hans git ]

2012-04-18 Thread Alon Levy
On Tue, Apr 17, 2012 at 12:42:45PM +0200, nicolas prochazka wrote: Hello, I'm using qemu 1.0-usbredir from hans git. If i'm starting a windows guest with : /usr/local/bin/qemu -name TEST_QXL010 -readconfig /etc/ich9-ehci-uhci.cfg -device usb-tablet -spice

Re: [Spice-devel] [PATCH spice-common] Add a return value to the default case in create_bitmap to satisfy VC++

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 11:47:25AM -0500, Aric Stewart wrote: --- common/gdi_canvas.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ACK. I'll push diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index 4c5daea..0a04bf8 100644 --- a/common/gdi_canvas.c +++

Re: [Spice-devel] [PATCH spice] update windows client generate.bat and generate1.bat

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 01:10:01PM -0500, Aric Stewart wrote: the python script is now in spice-common and client_marshallers.h needs to be included instead of marshallers.h Looks good, haven't tested but I'll assume you did :) ACK, and pushing. --- client/windows/generate.bat |4

Re: [Spice-devel] [PATCH spice] Copy getopt.h from old common/win/my_getopt-1.5/my_getopt

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 02:17:37PM -0500, Aric Stewart wrote: This patch completes the copy from 4d8f39020ac83602c1647d4af04e8b19bf74ed6e which missed this file. ACK, pushing. --- client/windows/getopt.h | 56 +++ 1 files changed, 56

Re: [Spice-devel] Introduction and Hello

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 02:25:33PM -0500, Aric Stewart wrote: Hello, My name is Aric Stewart. Primarily a WINE hacker, due to interest from a client I am starting work on spice. I will mostly be focusing on the win32 client to begin with but we will see where work progresses. I am

Re: [Spice-devel] [PATCH spice] update windows client generate.bat and generate1.bat

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 01:10:01PM -0500, Aric Stewart wrote: In the future could you send the patches inlined and not attached? I use git format-patch or git send-email directly. the python script is now in spice-common and client_marshallers.h needs to be included instead of marshallers.h

Re: [Spice-devel] [PATCH spice] update windows client generate.bat and generate1.bat

2012-04-17 Thread Alon Levy
On Mon, Apr 16, 2012 at 01:10:01PM -0500, Aric Stewart wrote: the python script is now in spice-common and client_marshallers.h needs to be included instead of marshallers.h Third, the patch doesn't apply because of EOL issues. You should be using no EOL convertion magic. If you use msysgit

Re: [Spice-devel] [PATCH v2 spice 01/11] server/red_worker: fix dump_bitmap

2012-04-17 Thread Alon Levy
On Tue, Apr 17, 2012 at 01:12:26PM +0300, Yonit Halperin wrote: --- server/red_worker.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index 07782c8..5350195 100644 --- a/server/red_worker.c +++ b/server/red_worker.c

Re: [Spice-devel] [PATCH v2 spice 01/11] server/red_worker: fix dump_bitmap

2012-04-17 Thread Alon Levy
On Tue, Apr 17, 2012 at 01:37:26PM +0200, Christophe Fergeau wrote: On Tue, Apr 17, 2012 at 01:46:26PM +0300, Alon Levy wrote: On Tue, Apr 17, 2012 at 01:12:26PM +0300, Yonit Halperin wrote: --- server/red_worker.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions

Re: [Spice-devel] messages.h unable to be used in VC++

2012-04-17 Thread Alon Levy
On Tue, Apr 17, 2012 at 08:15:22AM -0500, Aric Stewart wrote: Hello all, Working away at making the current tip of spice build the win32 client. I have run into another problem. Since the last working win32 cllient build the code generated by spice_codegen.py has shifted from CPP

Re: [Spice-devel] [PATCH xf86-video-qxl 04/13] qxl_driver: cleanup: fix const cast warnings

2012-04-11 Thread Alon Levy
On Wed, Apr 11, 2012 at 12:46:18PM +0200, Christophe Fergeau wrote: On Tue, Apr 10, 2012 at 04:02:56PM +0300, Alon Levy wrote: My bad for not putting it in. It's warning on a const attribute removal cast, since a static string bla is (const char*). For the record, the warning is -Wcast

[Spice-devel] [spice-protocol PATCH 04/46] qxlhw: introducing hardware access callbacks.

2012-04-10 Thread Alon Levy
qxl_driver_t will not access io ports and pci resources directly, but through an opaque struct qxlhw which will have two implementations, qxlhw_pci and qxlhw_drm. --- src/Makefile.am |4 src/qxl.h |3 +++ src/qxlhw.c | 19 +++ src/qxlhw.h | 16

[Spice-devel] [spice-protocol PATCH 03/46] qxl_mem.h: split from qxl.h

2012-04-10 Thread Alon Levy
--- src/qxl.h | 14 ++ src/qxl_driver.c |1 + src/qxl_image.c |1 + src/qxl_mem.c |1 + src/qxl_mem.h | 21 + src/qxl_surface.c |1 + 6 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 src/qxl_mem.h diff

[Spice-devel] [spice-protocol PATCH 08/46] qxl-qxlhw: move save/restore_state

2012-04-10 Thread Alon Levy
--- src/qxl_driver.c | 38 -- src/qxlhw.c | 10 ++ src/qxlhw.h |5 + src/qxlhw_pci.c | 24 4 files changed, 43 insertions(+), 34 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index

[Spice-devel] [spice-protocol PATCH 09/46] qxl_driver: remove another outb

2012-04-10 Thread Alon Levy
--- src/qxl_driver.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 6ffbfa9..a4c5912 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -950,7 +950,7 @@ qxl_leave_vt(int scrnIndex, int flags) qxl-vt_surfaces =

[Spice-devel] [spice-protocol PATCH 10/46] qxlhw: move handle_oom, data_alloc, data_free from qxl_driver

2012-04-10 Thread Alon Levy
data_alloc and data_free unused yet. --- src/qxl_driver.c | 32 +- src/qxl_mem.h |1 - src/qxl_surface.c |4 +- src/qxlhw.c | 12 src/qxlhw.h | 12 src/qxlhw_pci.c | 184 + 6 files changed, 211

[Spice-devel] [spice-protocol PATCH 13/46] qxlhw: add qxlhw_push_cursor

2012-04-10 Thread Alon Levy
cursor commands are now allocated on the stack in qxl_cursor.c and only allocated on the pci bar in qxlhw_pci. --- src/qxl.h|1 - src/qxl_cursor.c | 58 ++ src/qxlhw.c |5 + src/qxlhw.h |4

[Spice-devel] [spice-protocol PATCH 19/46] qxlhw: qxl_surface: use init_drawable

2012-04-10 Thread Alon Levy
--- src/qxl_surface.c | 128 + 1 file changed, 61 insertions(+), 67 deletions(-) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 73a44b3..7554ca6 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -388,19 +388,15 @@ enum

[Spice-devel] [spice-protocol PATCH 26/46] qxlhw: qxl_surface: remove last user of qxl_garbage_collect

2012-04-10 Thread Alon Levy
qxlhw_surface_alloc will do it anyway. --- src/qxl_surface.c |5 + src/qxlhw_pci.c |8 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 6a6242e..0b8c884 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@

[Spice-devel] [spice-protocol PATCH 31/46] qxlhw: qxl.h: remove physical_address

2012-04-10 Thread Alon Levy
--- src/qxl.h |8 1 file changed, 8 deletions(-) diff --git a/src/qxl.h b/src/qxl.h index 585f204..a386651 100644 --- a/src/qxl.h +++ b/src/qxl.h @@ -224,14 +224,6 @@ struct _qxl_screen_t #endif /* XSPICE */ }; -static inline uint64_t -physical_address (qxl_screen_t *qxl, void

[Spice-devel] [spice-protocol PATCH 32/46] qxlhw: qxl.h: remove all mem_slot references from qxl_screen_t

2012-04-10 Thread Alon Levy
--- src/qxl.h | 10 -- src/qxlhw_pci.c |7 --- 2 files changed, 17 deletions(-) diff --git a/src/qxl.h b/src/qxl.h index a386651..466b505 100644 --- a/src/qxl.h +++ b/src/qxl.h @@ -175,16 +175,6 @@ struct _qxl_screen_t ScrnInfoPtrpScrn;

[Spice-devel] [spice-protocol PATCH 33/46] qxlhw: qxl.h: remove qxl_notify_oom

2012-04-10 Thread Alon Levy
--- src/qxl.h |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/qxl.h b/src/qxl.h index 466b505..7f1ae6a 100644 --- a/src/qxl.h +++ b/src/qxl.h @@ -339,16 +339,10 @@ voidqxl_drop_image_cache (qxl_screen_t *qxl); /* - * I/O port

[Spice-devel] [spice-protocol PATCH 34/46] qxl_driver: add and use qxlhw_clear_memory

2012-04-10 Thread Alon Levy
--- src/qxl_driver.c |9 + src/qxlhw.c |5 + src/qxlhw.h |2 ++ src/qxlhw_pci.c | 15 +++ 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index c551282..3de060d 100644 --- a/src/qxl_driver.c +++

[Spice-devel] [spice-protocol PATCH 37/46] qxlhw: qxl_surface: use qxlhw_ref_primary_surface

2012-04-10 Thread Alon Levy
--- src/qxl.h | 10 -- src/qxl_surface.c |5 ++--- src/qxlhw.c |5 + src/qxlhw.h |3 +++ src/qxlhw_pci.c | 21 ++--- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/qxl.h b/src/qxl.h index 626abc3..25e6322

[Spice-devel] [spice-protocol PATCH 41/46] spiceqxl: remove implementation of qxl_set_mode, not needed for Xspice

2012-04-10 Thread Alon Levy
--- src/spiceqxl_io_port.c | 36 +--- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c index 0b8acc8..db7d715 100644 --- a/src/spiceqxl_io_port.c +++ b/src/spiceqxl_io_port.c @@ -173,39 +173,6 @@ static

[Spice-devel] [spice-protocol PATCH 43/46] qxlhw: qxl_driver: qxl_pre_init: don't access rom directly

2012-04-10 Thread Alon Levy
rely on qxlhw_check_device to initialize pScrn-videoRam and qxl-surface0_size --- src/qxl_driver.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 14bac17..67562aa 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@

[Spice-devel] [spice-protocol PATCH 45/46] qxlhw: qxlhw_pci_get_{ram, rom, ram_header} are now xspice only

2012-04-10 Thread Alon Levy
Also some minor cleanup - make qxlhw_pci_get_ram_header for !xspice --- src/qxlhw_pci.c |5 + src/qxlhw_pci.h |2 ++ 2 files changed, 7 insertions(+) diff --git a/src/qxlhw_pci.c b/src/qxlhw_pci.c index e1918c8..0d483fc 100644 --- a/src/qxlhw_pci.c +++ b/src/qxlhw_pci.c @@ -93,6

[Spice-devel] [spice-protocol PATCH 46/46] qxlhw: add and use qxlhw_pci_get_shadow_rom, remove qxl_screen_t.shadow_rom

2012-04-10 Thread Alon Levy
--- src/qxl.h |1 - src/qxlhw_pci.c|7 +++ src/qxlhw_pci.h|1 + src/spiceqxl_display.c |9 ++--- src/spiceqxl_driver.c |3 ++- src/spiceqxl_io_port.c |5 +++-- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/qxl.h

Re: [Spice-devel] [PATCH xf86-video-qxl 04/13] qxl_driver: cleanup: fix const cast warnings

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 12:18:11PM +0200, Christophe Fergeau wrote: On Mon, Apr 09, 2012 at 08:33:10PM +0300, Alon Levy wrote: --- src/qxl_driver.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 5c826f3..82a6ff1

Re: [Spice-devel] [PATCH xf86-video-qxl 05/13] spiceqxl_inputs: fix const discard at initialization warnings

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 12:28:31PM +0200, Christophe Fergeau wrote: Same question as the other patch, wouldn't we be better off just doing (char *)xspice pointer casts? Or disabling this warning? Same answer. Christophe On Mon, Apr 09, 2012 at 08:33:11PM +0300, Alon Levy wrote

Re: [Spice-devel] [PATCH xf86-video-qxl 07/13] (questionable) qxl_surface: qxl_surface_prepare_access: handle unused but set warning with (void)

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 12:21:54PM +0200, Christophe Fergeau wrote: On Mon, Apr 09, 2012 at 08:33:13PM +0300, Alon Levy wrote: --- src/qxl_surface.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 6761bf6..a283d5e 100644

Re: [Spice-devel] [PATCH xf86-video-qxl 08/13] spiceqxl_io_port: use attribute printf (fix warning)

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 12:26:23PM +0200, Christophe Fergeau wrote: ACK do we want to hide these attributes in slightly more readable #define? I'll see if there are any other users, if so I'll do an additional patch. Christophe On Mon, Apr 09, 2012 at 08:33:14PM +0300, Alon Levy wrote

Re: [Spice-devel] [spice-protocol PATCH 00/46] refactor for later drm addition

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 02:49:56PM +0300, Alon Levy wrote: Eek, this isn't spice-protocol of course, it's xf86-video-qxl. Other then that, review away! This patchset has been tested with latest Xorg and qxl, and with Xspice. It doesn't introduce any new functionality. It adds a callback holder

Re: [Spice-devel] [PATCH xf86-video-qxl 04/13] qxl_driver: cleanup: fix const cast warnings

2012-04-10 Thread Alon Levy
On Tue, Apr 10, 2012 at 02:06:25PM +0200, Christophe Fergeau wrote: On Tue, Apr 10, 2012 at 02:59:02PM +0300, Alon Levy wrote: On Tue, Apr 10, 2012 at 12:18:11PM +0200, Christophe Fergeau wrote: On Mon, Apr 09, 2012 at 08:33:10PM +0300, Alon Levy wrote: --- src/qxl_driver.c |6

[Spice-devel] [spice-protocol] qxl_dev: fix const cast warning for QXL_R[AO]M_MAGIC

2012-04-09 Thread Alon Levy
--- spice/qxl_dev.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h index 5e6ce06..741a1f6 100644 --- a/spice/qxl_dev.h +++ b/spice/qxl_dev.h @@ -53,8 +53,8 @@ enum { #define QXL_DEVICE_ID_DEVEL 0x01ff #define QXL_REVISION_DEVEL 0x01

[Spice-devel] [PATCH xf86-video-qxl 05/13] spiceqxl_inputs: fix const discard at initialization warnings

2012-04-09 Thread Alon Levy
--- src/spiceqxl_inputs.c | 64 - 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/src/spiceqxl_inputs.c b/src/spiceqxl_inputs.c index 62ef19f..5cfa823 100644 --- a/src/spiceqxl_inputs.c +++ b/src/spiceqxl_inputs.c @@ -46,26 +46,6

[Spice-devel] [PATCH xf86-video-qxl 07/13] (questionable) qxl_surface: qxl_surface_prepare_access: handle unused but set warning with (void)

2012-04-09 Thread Alon Levy
--- src/qxl_surface.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 6761bf6..a283d5e 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -863,6 +863,8 @@ qxl_surface_prepare_access (qxl_surface_t *surface, stride =

[Spice-devel] [PATCH xf86-video-qxl 08/13] spiceqxl_io_port: use attribute printf (fix warning)

2012-04-09 Thread Alon Levy
--- src/spiceqxl_io_port.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c index ea02ac1..050e7b9 100644 --- a/src/spiceqxl_io_port.c +++ b/src/spiceqxl_io_port.c @@ -58,7 +58,7 @@ static int spiceqxl_io_port_debug_level =

[Spice-devel] [PATCH xf86-video-qxl 09/13] spiceqxl_io_port: use pointer_to_u64 (fix warning)

2012-04-09 Thread Alon Levy
--- src/spiceqxl_io_port.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c index 050e7b9..f599b4e 100644 --- a/src/spiceqxl_io_port.c +++ b/src/spiceqxl_io_port.c @@ -175,7 +175,7 @@ static void

[Spice-devel] [PATCH xf86-video-qxl 11/13] qxl_surface.c: fix -Wshadow warning

2012-04-09 Thread Alon Levy
qxl_surface.c:735:6: warning: declaration of 'i' shadows a previous local [-Wshadow] --- src/qxl_surface.c |1 - 1 file changed, 1 deletion(-) diff --git a/src/qxl_surface.c b/src/qxl_surface.c index a283d5e..76b5579 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -730,7 +730,6 @@

[Spice-devel] [PATCH xf86-video-qxl 12/13] add vim headers to set tabstop to 8

2012-04-09 Thread Alon Levy
--- src/qxl.h|1 + src/qxl_cursor.c |1 + src/qxl_driver.c |1 + src/qxl_image.c |1 + src/qxl_mem.c|1 + src/qxl_option_helpers.c |1 + src/qxl_ring.c |1 + src/qxl_surface.c|1 + 8 files

[Spice-devel] [PATCH xf86-video-qxl 13/13] qxl_driver: ifdef out qxl_wait_for_io_command if not XSPICE

2012-04-09 Thread Alon Levy
--- src/qxl_driver.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index eb09662..77fc40b 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -129,6 +129,7 @@ qxl_available_options (int chipid, int busid) return DefaultOptions; } +#ifndef

Re: [Spice-devel] [PATCH spice-common 4/6] Update spice-protocol submodule

2012-04-08 Thread Alon Levy
On Sun, Apr 08, 2012 at 06:42:36PM +0300, Yonit Halperin wrote: For STREAM_DATA_SIZED and QOS_QUERY messages. Signed-off-by: Yonit Halperin yhalp...@redhat.com --- common/rect.h |2 +- spice-protocol |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Spice-devel] Keyboard layout change on Xspice

2012-04-07 Thread Alon Levy
On Fri, Apr 06, 2012 at 09:11:11PM +0200, David Jaša wrote: Hi David, David Mansfield píše v Pá 06. 04. 2012 v 14:17 -0400: On 04/06/2012 03:05 AM, Alon Levy wrote: On Thu, Apr 05, 2012 at 12:52:53PM -0400, David Mansfield wrote: On 04/05/2012 11:58 AM, Alon Levy wrote

Re: [Spice-devel] Keyboard layout change on Xspice

2012-04-06 Thread Alon Levy
On Thu, Apr 05, 2012 at 11:49:35PM +0200, Michael Niehren wrote: Hi Alon, after setting up setxkbmap de i got the german keyboard, great. 2 issues are left, the ALT and ALT-GR Key's do not work as expected, so specially i could not type the | Symbol with ALT-GR and . Do you also have a

Re: [Spice-devel] [PATCH spice-gtk] Fix crash when closing while recording

2012-04-06 Thread Alon Levy
On Fri, Apr 06, 2012 at 04:08:17AM +0200, Marc-André Lureau wrote: First notify about disconnection before resetting the channel data. An audio recording task might expect the channel to be in a ready state otherwise, for example. I'm wondering if this is enough - what if the event emitted

Re: [Spice-devel] [RFC] register vmc interface early for name != vdagent [was: Re: Read data out of the Virtqueue]

2012-04-05 Thread Alon Levy
approach to fix this problem, I will take it. Look for qemu_bh_new, qemu_bh_schedule - for example see hw/virtio-serial-bus.c -Original Message- From: Alon Levy [mailto:al...@redhat.com] Sent: Thursday, April 05, 2012 2:17 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Hans de Goede; spice-devel

Re: [Spice-devel] [RFC] register vmc interface early for name != vdagent [was: Re: Read data out of the Virtqueue]

2012-04-05 Thread Alon Levy
in vmc_state() */ qemu_chr_generic_open(chr); -} #endif +} else { +s-bh_register = qemu_bh_new(bh_vmc_register_interface, s); +qemu_bh_schedule(s-bh_register); +} return chr; } -Original Message- From: Alon Levy [mailto:al...@redhat.com

Re: [Spice-devel] Keyboard layout change on Xspice

2012-04-05 Thread Alon Levy
On Thu, Apr 05, 2012 at 01:24:54PM +0200, Michael Niehren wrote: Hi together, i successfully installed and connected to Xspice und FC16, great work, i was very pleased to see, what's possible with spice. 1 thing left to use it as an Server to connect from my thin client is the

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

2012-04-03 Thread Alon Levy
orders with respect to #3 are possible). Can you tell me how to resolve this problem based on the spice architecture? Thanks. -Original Message- From: Charles.Tsai-蔡清海-研究發展部 Sent: Friday, March 30, 2012 9:27 AM To: 'Alon Levy' Cc: spice-devel@lists.freedesktop.org Subject: RE

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

2012-04-03 Thread Alon Levy
On Mon, Apr 02, 2012 at 12:23:41PM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com 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. Why?

Re: [Spice-devel] [PATCH 1/2] Fix typo in comment

2012-04-03 Thread Alon Levy
On Tue, Apr 03, 2012 at 10:32:14AM +0200, Christophe Fergeau wrote: --- ACK both. spice/controller_prot.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spice/controller_prot.h b/spice/controller_prot.h index f7b1f26..355feac 100644 --- a/spice/controller_prot.h

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

2012-04-03 Thread Alon Levy
On Mon, Apr 02, 2012 at 12:23:46PM +0100, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com What's the source for manywarnings.m4 and warnings.m4 ? Could you add a link somewhere in the commit message? * m4/manywarnings.m4m, m4/warnings.m4: Import GNULIB warnings

Re: [Spice-devel] [RFC] register vmc interface early for name != vdagent [was: Re: Read data out of the Virtqueue]

2012-04-03 Thread Alon Levy
; ... } -Original Message- From: Alon Levy [mailto:al...@redhat.com] Sent: Tuesday, April 03, 2012 9:14 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Hans de Goede; spice-devel@lists.freedesktop.org Subject: Re: [Spice-devel] [RFC] register vmc interface early for name != vdagent [was: Re: Read data

Re: [Spice-devel] [PATCH spice-xpi] Validate port values

2012-04-03 Thread Alon Levy
On Tue, Apr 03, 2012 at 03:56:12PM +0200, Peter Hatina wrote: On 04/03/2012 03:39 PM, Marc-André Lureau wrote: - Mensaje original - void nsPluginInstance::Connect() { +const int port = portToInt(m_port); +const int sport = portToInt(m_secure_port); + +

Re: [Spice-devel] [spice-xpi 1/4] Move secure channel fixup to secure channel setter

2012-04-03 Thread Alon Levy
On Tue, Apr 03, 2012 at 11:21:07PM +0200, Marc-André Lureau wrote: On Tue, Apr 3, 2012 at 6:12 PM, David Jaša dj...@redhat.com wrote: The s- idio^W^W^W^Wlegacy goes much further, see the ovirt-engine sources what you can expect:

Re: [Spice-devel] Native Spice Drawing?

2012-04-01 Thread Alon Levy
On Sun, Apr 01, 2012 at 12:27:13PM +0100, Lee Essen wrote: On 30 Mar 2012, at 22:16, Alon Levy wrote: On Fri, Mar 30, 2012 at 05:12:26PM +0100, Lee Essen wrote: Hi, I'm relatively new to spice, and am using it very effectively with qemu, however it strikes me

Re: [Spice-devel] [PATCH] Replace sprintf with snprintf use

2012-03-30 Thread Alon Levy
On Fri, Mar 30, 2012 at 06:07:49PM +0200, Christophe Fergeau wrote: The hotkey parser was generating a string with sprintf and data it got from the controller socket (ie data which can have an arbitrary length). Using sprintf there is a bad idea, replace it with snprintf. ACK. ---

<    3   4   5   6   7   8   9   10   11   12   >