Re: [Spice-devel] Announcing Spice 0.6.0

2010-08-31 Thread Vasiliy G Tolstov
В Втр, 31/08/2010 в 17:00 +0200, Alexander Larsson пишет: > After some delays due to holidays we today proudly released Spice 0.6.0. > This is the beginning of a new stable series based on the new spice > network protocol major version. It has some new exciting features like > offscreen surfaces an

[Spice-devel] Announcing Spice 0.6.0

2010-08-31 Thread Alexander Larsson
After some delays due to holidays we today proudly released Spice 0.6.0. This is the beginning of a new stable series based on the new spice network protocol major version. It has some new exciting features like offscreen surfaces and WAN mode, as well as a more solid codebase and a saner qemu inte

Re: [Spice-devel] [PATCH 2/2] Fix scaling with large magnification

2010-08-31 Thread Alon Levy
- al...@redhat.com wrote: > From: Alexander Larsson > > When scaling part of an image we need to specify the source > coordinates in transformed coordinates. For large magnifications this > means we will get pretty large values. > > Now, if e.g. src_x * transform is larger than 32765, then

[Spice-devel] [PATCH v2] spice-vmc: add a reset handler used to unregister spice interface (and trigger server mouse)

2010-08-31 Thread Alon Levy
v2: use qdev.reset instead of old API. diff --git a/hw/spice-vmc.c b/hw/spice-vmc.c index 434c70f..0636973 100644 --- a/hw/spice-vmc.c +++ b/hw/spice-vmc.c @@ -189,6 +189,15 @@ static void vmc_print_optional_subtypes(void) fprintf(stderr, "\n"); } +static void vmc_reset(DeviceState *opaqu

Re: [Spice-devel] [PATCH v3] client: add default agent capabilities

2010-08-31 Thread Hans de Goede
ack. On 08/31/2010 01:17 PM, Alon Levy wrote: v3: allocate to maximal size on start (even if default is smaller) diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..79f5e6d 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: R

[Spice-devel] [PATCH v3] client: add default agent capabilities

2010-08-31 Thread Alon Levy
v3: allocate to maximal size on start (even if default is smaller) diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..79f5e6d 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: RedClient& _client; }; +uint32_t default_agent_ca

Re: [Spice-devel] [PATCH v2] client: add default agent capabilities

2010-08-31 Thread Hans de Goede
Hi, Sorry, but still no ack... On 08/31/2010 12:42 PM, Alon Levy wrote: v2: use new[] diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..9a3b0ed 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: RedClient& _client; };

[Spice-devel] [PATCH v2] client: add default agent capabilities

2010-08-31 Thread Alon Levy
v2: use new[] diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..9a3b0ed 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: RedClient& _client; }; +uint32_t default_agent_caps[] = { +(1 << VD_AGENT_CAP_MOUSE_STATE) | +

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Alexander Larsson
On Tue, 2010-08-31 at 10:29 +0300, Yonit Halperin wrote: > This will prevent: 1) rendering problems (commands sent to the client in the > wrong order) > 2) sending commands for surfaces that haven't been created yet on the client > side. > --- Ack. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: [Spice-devel] [PATCH] qxl parser: complete parsing of QXLCompatDrawable structs

2010-08-31 Thread Alexander Larsson
On Tue, 2010-08-31 at 11:59 +0200, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > server/red_parse_qxl.c | 14 ++ > 1 files changed, 14 insertions(+), 0 deletions(-) Ack -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson

[Spice-devel] [PATCH 2/2] Fix scaling with large magnification

2010-08-31 Thread alexl
From: Alexander Larsson When scaling part of an image we need to specify the source coordinates in transformed coordinates. For large magnifications this means we will get pretty large values. Now, if e.g. src_x * transform is larger than 32765, then the coordinate ends up outside the pixman 16b

[Spice-devel] [PATCH 1/2] Revert "Fix scaling with large magnification"

2010-08-31 Thread alexl
From: Alexander Larsson This reverts commit e13be77f33609cb3fdae354ce1f2686ae865f9e0. --- common/sw_canvas.c | 136 --- 1 files changed, 32 insertions(+), 104 deletions(-) diff --git a/common/sw_canvas.c b/common/sw_canvas.c index 0d4367e..a92cff

[Spice-devel] [PATCH 0/2] Better scaling fix

2010-08-31 Thread alexl
From: Alexander Larsson After a talk with soeren i came up with a better fix for the scaling issue that doesn't have to create the sub-image. Instead we embed the src coordinate offset in the transform. I thought I tried this before and it ended up not using the scaling fast-path, however that is

[Spice-devel] [PATCH] qxl parser: complete parsing of QXLCompatDrawable structs

2010-08-31 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- server/red_parse_qxl.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index e6e700b..e0eba20 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -820,6 +820,13

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Yonit Halperin
On 08/31/2010 12:46 PM, Gerd Hoffmann wrote: While we are at it: How should surfaces_dest (and surfaces_rect) be filled for spice 0.4 commands? Right now they are just zero-initialized (see red_get_compat_drawable() in red_parse_qxl.c). Best to fill surfaces_dest with -1. For consistency (thoug

Re: [Spice-devel] [PATCH] client: add default_agent_caps

2010-08-31 Thread Hans de Goede
Hi, On 08/31/2010 10:30 AM, Alon Levy wrote: diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..e1a322e 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: RedClient& _client; }; +uint32_t default_agent_caps[] = { +(1<<

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Gerd Hoffmann
While we are at it: How should surfaces_dest (and surfaces_rect) be filled for spice 0.4 commands? Right now they are just zero-initialized (see red_get_compat_drawable() in red_parse_qxl.c). Best to fill surfaces_dest with -1. For consistency (though not necessary right now), in QXL_COPY_BITS s

[Spice-devel] RFC: HowTo setup a spice live migration test setup

2010-08-31 Thread Hans de Goede
Hi All, As you know my first week I've been working on setting up a live migration test environment (not that I've run much tests yet). I thought it would be good to document what I did / how to create a similar setup. This is intended to be put at: http://spice-space.org/page/Howtos But before

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Yonit Halperin
On 08/31/2010 11:24 AM, Gerd Hoffmann wrote: On 08/31/10 10:11, Yonit Halperin wrote: On 08/31/2010 11:05 AM, Gerd Hoffmann wrote: +static inline int is_drawable_independent_from_surfaces(Drawable *drawable) +{ + int x; + + for (x = 0; x< 3; ++x) { + if (drawable->surfaces_dest[x] != -1) { + re

[Spice-devel] [PATCH] client: add default_agent_caps

2010-08-31 Thread Alon Levy
diff --git a/client/red_client.cpp b/client/red_client.cpp index 6c6e066..e1a322e 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -75,6 +75,12 @@ private: RedClient& _client; }; +uint32_t default_agent_caps[] = { +(1 << VD_AGENT_CAP_MOUSE_STATE) | +(1 << VD_AGENT_C

Re: [Spice-devel] [[Qemu PATCH]] spice: initialize QXLDrawable.surfaces_dest in VGA mode

2010-08-31 Thread Gerd Hoffmann
Hi, +drawable->surfaces_dest[0] = -1; +drawable->surfaces_dest[1] = - 1; +drawable->surfaces_dest[2] = -1; ACK. No need to push, I'll add it in when preparing .v18 today. cheers, Gerd ___ Spice-devel mailing list Spice-devel@lists.f

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Gerd Hoffmann
On 08/31/10 10:11, Yonit Halperin wrote: On 08/31/2010 11:05 AM, Gerd Hoffmann wrote: +static inline int is_drawable_independent_from_surfaces(Drawable *drawable) +{ + int x; + + for (x = 0; x< 3; ++x) { + if (drawable->surfaces_dest[x] != -1) { + return FALSE; + } + } + return TRUE; +} What h

[Spice-devel] recent patches to spice-vmc change command line parameters

2010-08-31 Thread Alon Levy
Hi, I've pushed two patches (right now just on spice.v17, should be on spice.kvm.v14 too) that change the required flags to spicevmc. The new syntax requires you to specify a subtype argument, only value right now is vdagent. So: -device spicevmc,subtype=vdagent instead of just -device sp

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Yonit Halperin
On 08/31/2010 11:05 AM, Gerd Hoffmann wrote: +static inline int is_drawable_independent_from_surfaces(Drawable *drawable) +{ + int x; + + for (x = 0; x< 3; ++x) { + if (drawable->surfaces_dest[x] != -1) { + return FALSE; + } + } + return TRUE; +} What happens if this meets qemu without the surf

Re: [Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Gerd Hoffmann
+static inline int is_drawable_independent_from_surfaces(Drawable *drawable) +{ +int x; + +for (x = 0; x< 3; ++x) { +if (drawable->surfaces_dest[x] != -1) { +return FALSE; +} +} +return TRUE; +} What happens if this meets qemu without the surfaces ini

Re: [Spice-devel] creating devices on the fly (smartcard ccid readers)

2010-08-31 Thread Gerd Hoffmann
Hi, SpiceCoreInterface doesn't allow creation/removal of devices and chardevs. I don't think allowing spice client add/remove guest devices is a good idea. Right now it seems to be the right direction - add some calls (two) for that, following qemu API closely (exactly). Following qemu A

[Spice-devel] [PATCH] server: red_current_add_equal - don't push a drawable to the middle of the pipe if it depends on surfaces.

2010-08-31 Thread Yonit Halperin
This will prevent: 1) rendering problems (commands sent to the client in the wrong order) 2) sending commands for surfaces that haven't been created yet on the client side. --- server/red_worker.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/server/red_w

[Spice-devel] [[Qemu PATCH]] spice: initialize QXLDrawable.surfaces_dest in VGA mode

2010-08-31 Thread Yonit Halperin
--- spice-display.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/spice-display.c b/spice-display.c index fec2432..fed2056 100644 --- a/spice-display.c +++ b/spice-display.c @@ -72,6 +72,9 @@ SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) dr

Re: [Spice-devel] [PATCH v4 3/3] vdagent: support announce_capabilities

2010-08-31 Thread Hans de Goede
Hi, And again 1 small nitpick. On 08/30/2010 05:00 PM, Alon Levy wrote: diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp index b1f47c0..634f3a0 100644 --- a/vdagent/vdagent.cpp +++ b/vdagent/vdagent.cpp @@ -37,6 +37,8 @@ private: VDAgent(); void input_desktop_message_loop();

Re: [Spice-devel] [PATCH v4 2/3] client: add announce_capabilities

2010-08-31 Thread Hans de Goede
Hi, Correction make that 1 small nitpick and one bug found, see below. On 08/30/2010 04:57 PM, Alon Levy wrote: diff --git a/client/red_client.cpp b/client/red_client.cpp index b6a412e..72b5909 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -328,6 +328,8 @@ RedClient::RedClie

Re: [Spice-devel] [PATCH v4 1/3] add vd_agent announce capabilities message

2010-08-31 Thread Hans de Goede
Hi, 2 small nitpicks, see inline comments. On 08/30/2010 04:55 PM, Alon Levy wrote: diff --git a/spice/vd_agent.h b/spice/vd_agent.h index 1fcda88..9b79f0f 100644 --- a/spice/vd_agent.h +++ b/spice/vd_agent.h @@ -64,6 +64,8 @@ enum { VD_AGENT_REPLY, VD_AGENT_CLIPBOARD, VD_AGE