[Spice-devel] [PATCH 9/9] 0.12.3 release

2013-05-17 Thread Alon Levy
--- NEWS | 18 ++ configure.ac | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 30912c5..acfffb8 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,21 @@ +Major changes in 0.12.3: + +* monitor client bandwidth and lat

[Spice-devel] [PATCH 8/9] server/red_parse_qxl: two coding convention pointer cast fix

2013-05-17 Thread Alon Levy
--- server/red_parse_qxl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 4b39029..65781e7 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -104,7 +104,7 @@ static size_t red_get_data_chunks_ptr(RedMe

[Spice-devel] [PATCH 7/9] server/dispatchers: initialize stack to 0 for valgrind

2013-05-17 Thread Alon Levy
--- server/main_dispatcher.c | 2 +- server/red_dispatcher.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/main_dispatcher.c b/server/main_dispatcher.c index 92b0791..e7a451a 100644 --- a/server/main_dispatcher.c +++ b/server/main_dispatcher.c @@ -78,7 +78,7

[Spice-devel] [PATCH 6/9] server/red_dispatcher: close pa hole in RedWorkerMessageDisplayConnect for valgrind

2013-05-17 Thread Alon Levy
--- server/red_dispatcher.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/red_dispatcher.h b/server/red_dispatcher.h index 4d0d2a8..7d23b11 100644 --- a/server/red_dispatcher.h +++ b/server/red_dispatcher.h @@ -43,10 +43,10 @@ void red_dispatcher_client_monitors_c

[Spice-devel] [PATCH 5/9] server/tests: test_display_width_stride

2013-05-17 Thread Alon Levy
--- server/tests/Makefile.am | 8 ++- server/tests/test_display_base.c | 48 ++--- server/tests/test_display_base.h | 13 + server/tests/test_display_width_stride.c | 92 4 files changed, 154 insertions(+), 7 deletio

[Spice-devel] [PATCH 4/9] server/red_worker: simplify monitors_config update

2013-05-17 Thread Alon Levy
--- server/red_worker.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index 14d219b..f047d29 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -1279,6 +1279,9 @@ static MonitorsConfig *monitors_config_getref

[Spice-devel] [PATCH 3/9] server/tests/test_display_base: add missing set_client_capabilities, fix client_monitors_config signature

2013-05-17 Thread Alon Levy
--- server/tests/test_display_base.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index 588e960..8657e91 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -

[Spice-devel] [PATCH 2/9] server/red_worker: turn critical (assert) non error into warning

2013-05-17 Thread Alon Levy
The situation causing this assert is unknown but it doesn't cause correctness issues with later rendering, and it is causing an abort. --- server/red_worker.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/red_worker.c b/server/red_worker.c index 8f3e478..14d219b 10

[Spice-devel] [PATCH 1/9] server/red_worker: s/driver_has_monitors_config/driver_cap_monitors_config/ (plus small comment)

2013-05-17 Thread Alon Levy
--- server/red_worker.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.c index fb736b5..8f3e478 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -1040,7 +1040,7 @@ typedef struct RedWorker { uint64_t *comma

[Spice-devel] [PATCH 0/9] 0.12.3 + a bunch of small fixes I had laying around

2013-05-17 Thread Alon Levy
Feel free to shoot down anything (like the rename for no apparent reason other then using the word cap) Alon Levy (9): server/red_worker: s/driver_has_monitors_config/driver_cap_monitors_config/ (plus small comment) server/red_worker: turn critical (assert) non error into warning

Re: [Spice-devel] how to infer the spice channel type corresponding to a specific port.

2013-05-15 Thread Alon Levy
On Wed, 2013-05-15 at 18:05 +0800, bigclouds wrote: > hi, > 1.how to know the channel type of a port? There is no way, since there is a single port, and the order of client connection to the server is determined by the client, and the ports are determined by the operating system. You will have to l

Re: [Spice-devel] why spice server is not aware of client-disconnection.

2013-05-14 Thread Alon Levy
On Tue, 2013-05-14 at 07:18 -0400, Marc-André Lureau wrote: > > Hi > > - Mensaje original - > > > > We don't have any keep alive. > > Do you know if there is a reason? (perhaps I am missing something obvious) Not really. I mean, what's the down side, a tiny bit of bandwidth / wakeups?

Re: [Spice-devel] why spice server is not aware of client-disconnection.

2013-05-14 Thread Alon Levy
On Tue, 2013-05-14 at 17:38 +0800, bigclouds wrote: > hi,all > look at the output of netstat, it is after at least 30minutes i > un-plug cable. > how to make server know client's disconnect and disconnect > channels(clean channels). > > > tcp0 0 192.168.5.240:5903 192.168.5

Re: [Spice-devel] [xf86-video-qxl] Eliminate gcc warning "initialization discards 'const' qualifier from pointer target type"

2013-05-13 Thread Alon Levy
Sorry for the noise, brain fart. On Mon, 2013-05-13 at 14:01 +0300, Alon Levy wrote: > ACK from me. > > Soren, are you ok with this? > > On Thu, 2013-03-21 at 13:03 -0500, Jeremy White wrote: > > Signed-off-by: Jeremy White > > --- > > > > This i

Re: [Spice-devel] [xf86-video-qxl] Eliminate gcc warning "initialization discards 'const' qualifier from pointer target type"

2013-05-13 Thread Alon Levy
ACK from me. Soren, are you ok with this? On Thu, 2013-03-21 at 13:03 -0500, Jeremy White wrote: > Signed-off-by: Jeremy White > --- > > This is the controversial patch; see previous conversation here: > http://lists.freedesktop.org/archives/spice-devel/2012-September/010801.html > > I feel

[Qemu-devel] [PATCH v3] arch_init/ram_load: add error message for block length mismatch

2013-05-12 Thread Alon Levy
Makes it easier to debug situations where the source and target have different ram blocks in a device and migration fails due to that, for instance a BAR size change on a PCI device. Signed-off-by: Alon Levy --- v3: use RAM_ADDR_FMT arch_init.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [arig-discuss] today on a roof in Arad :)

2013-05-05 Thread Alon Levy
t; כדי לבטל את המנוי לקבוצה הזו ולהפסיק לקבל ממנה הודעות דוא"ל, שלח הודעת דוא"ל > אל hasadna+unsubscr...@googlegroups.com. > כדי לפרסם הודעות בקבוצה זו, שלח דוא"ל ל-hasa...@googlegroups.com. > לאפשרויות נוספות בקר ב-https://groups.google.com/groups/opt_out. > > -- Alon Levy ___ arig-discuss mailing list arig-discuss@lists.subsignal.org https://lists.subsignal.org/mailman/listinfo/arig-discuss

[Spice-devel] [PATCH] red_worker: remove wrong TODO

2013-05-05 Thread Alon Levy
red_create_stream is called even without any client but there is no encoding since the mjpeg encoder is now associated with StreamAgent which is only created when we have a client. --- server/red_worker.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/red_worker.c b/server/red_worker.

[Qemu-devel] [PULL] libcacard fix from Cole Robinson

2013-04-26 Thread Alon Levy
The following changes since commit 909eedb74f88d1d6d9e6bbdc34875772e7a8a5ab: target-ppc: slightly optimize lfiwax (2013-04-27 00:37:46 +0200) are available in the git repository at: git://people.freedesktop.org/~alon/qemu libcacard_ccid.2 for you to fetch changes up to ae12e3a643c66575c7721

[Qemu-devel] [PULL] libcacard and ccid fixes

2013-04-24 Thread Alon Levy
fetch changes up to 203a368e66f5211b832e17b85c6f5dacfc8d7bf9: libcacard/cac: change big switch functions to single return point (2013-04-24 10:57:48 +0300) Alon Levy (15): dev-smartcard-reader: white space fixes dev

Re: [Spice-devel] [PATCH spice] server: Add public spice_qxl_driver_unload method

2013-04-23 Thread Alon Levy
> With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to > know what part of the primary to use for each monitor. If the guest driver > does not support this, the server sends messages to the client for a > single monitor spanning the entire primary. > > As soon as the guest

Re: [Spice-devel] [Users] Server 2k8

2013-04-23 Thread Alon Levy
> Ryan Wilkinson píše v Po 22. 04. 2013 v 14:43 -0600: > > Sounds like I'm missing something. We're looking at using Windows > > Server 2k8 as a workstation OS as the licensing seems to be more > > reasonable for vdi. > > Ah, OK. Then it would be reasonable to add server systems as supported > to

Re: [Users] [Spice-devel] Server 2k8

2013-04-23 Thread Alon Levy
> Ryan Wilkinson píše v Po 22. 04. 2013 v 14:43 -0600: > > Sounds like I'm missing something. We're looking at using Windows > > Server 2k8 as a workstation OS as the licensing seems to be more > > reasonable for vdi. > > Ah, OK. Then it would be reasonable to add server systems as supported > to

[Qemu-devel] [PATCH v3 24/28] dev-smartcard-reader: copy atr protocol to ccid parameters

2013-04-22 Thread Alon Levy
Adds todos. Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 8022f9f..78ef504 100644 --- a/hw/usb/dev-smartcard-reader.c

[Qemu-devel] [PATCH v3 09/28] libcacard: split vscclient main() from socket reading

2013-04-22 Thread Alon Levy
From: Marc-André Lureau --- libcacard/vscclient.c | 314 ++ 1 file changed, 162 insertions(+), 152 deletions(-) diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c index 9b744f2..5e00db3 100644 --- a/libcacard/vscclient.c +++ b/libcacard/vs

[Qemu-devel] [PATCH v3 28/28] libcacard/cac: change big switch functions to single return point

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/cac.c | 73 - 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/libcacard/cac.c b/libcacard/cac.c index 5864539..7a06b5a 100644 --- a/libcacard/cac.c +++ b/libcacard/cac.c @@ -40,41

[Qemu-devel] [PATCH v3 23/28] dev-smartcard-reader: change default protocol to T=0

2013-04-22 Thread Alon Levy
We don't support T=1 so we shouldn't advertise it by default. Two independent changes: * Default ATR sets T=0. This gets overwritten by the client provided ATR later. * Class descriptor changes dwAdvertise dwProtocols. to 0x1 and dwProtocols.=0 per spec. Signed-off-by:

[Qemu-devel] [PATCH v3 18/28] dev-smartcard-reader: reuse usb.h definitions

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 38c3c0e..98f3be1 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev

[Qemu-devel] [PATCH v3 27/28] dev-smartcard-reader: empty implementation for Mechanical (fail correctly)

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 78ef504..125cc2c 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -1051,6

[Qemu-devel] [PATCH v3 26/28] libcacard: move atr setting from macro to function

2013-04-22 Thread Alon Levy
Only because qemu's checkpatch complains about it. Signed-off-by: Alon Levy --- Makefile.objs | 1 + libcacard/vcard_emul_nss.c | 14 +++--- libcacard/vcardt.c | 40 libcacard/vcardt.h

[Qemu-devel] [PATCH v3 15/28] dev-smartcard-reader: nicer debug messages

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 69 +++ 1 file changed, 63 insertions(+), 6 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 57eb803..6653619 100644 --- a/hw/usb/dev-smartcard

[Qemu-devel] [PATCH v3 01/28] libcacard: correct T0 historical bytes size

2013-04-22 Thread Alon Levy
From: Marc-André Lureau The VCARD_ATR_PREFIX macro adds a prefix of 6 characters only. pcsc_scan was complaining before the patch: + Historical bytes: 56 43 41 52 44 5F 4E 53 53 ERROR! ATR is truncated: 2 byte(s) is/are missing --- libcacard/vcardt.h | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PATCH v3 10/28] libcacard: vscclient to use QemuThread for portability

2013-04-22 Thread Alon Levy
From: Marc-André Lureau --- libcacard/vscclient.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c index 5e00db3..5f47634 100644 --- a/libcacard/vscclient.c +++ b/libcacard/vscclient.c @@ -218,8 +218,7 @@ on_host_init(VSCM

[Qemu-devel] [PATCH v3 21/28] ccid-card-passthru, dev-smartcard-reader: add debug environment variables

2013-04-22 Thread Alon Levy
namespace, i.e: Signed-off-by: Alon Levy --- hw/usb/ccid-card-passthru.c | 2 ++ hw/usb/dev-smartcard-reader.c | 1 + include/qemu-common.h | 5 + util/cutils.c | 23 +++ 4 files changed, 31 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH v3 25/28] libcacard/vreader: add debugging messages for apdu

2013-04-22 Thread Alon Levy
Using g_debug with log domain libcacard Signed-off-by: Alon Levy --- libcacard/cac.c | 7 - libcacard/cac.h | 8 ++ libcacard/vreader.c | 77 + 3 files changed, 85 insertions(+), 7 deletions(-) diff --git a/libcacard/cac.c b

[Qemu-devel] [PATCH v3 22/28] dev-smartcard-reader: define structs for CCID_Parameter internals

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 74 +++ 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 35f234e..0d482a9 100644 --- a/hw/usb/dev-smartcard

[Qemu-devel] [PATCH v3 20/28] ccid-card-passthru: add atr check

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/ccid-card-passthru.c | 59 + 1 file changed, 59 insertions(+) diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c index 275b887..16d51c9 100644 --- a/hw/usb/ccid-card-passthru.c +++ b/hw/usb/ccid

[Qemu-devel] [PATCH v3 16/28] dev-smartcard-reader: remove aborts (never triggered, but just in case)

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 6653619..6133edf 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev

[Qemu-devel] [PATCH v3 19/28] libcacard: change default ATR

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/vcardt.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h index 538bdde..3b9a619 100644 --- a/libcacard/vcardt.h +++ b/libcacard/vcardt.h @@ -26,9 +26,17 @@ typedef struct

[Qemu-devel] [PATCH v3 11/28] libcacard: teach vscclient to use GMainLoop for portability

2013-04-22 Thread Alon Levy
From: Marc-André Lureau This version handles non-blocking sending and receiving from the socket. Signed-off-by: Marc-André Lureau --- libcacard/vscclient.c | 391 +++--- 1 file changed, 246 insertions(+), 145 deletions(-) diff --git a/libcacard/vscc

[Qemu-devel] [PATCH v3 17/28] dev-smartcard-reader: support windows guest

2013-04-22 Thread Alon Levy
By not advertising USB wakeup support (which we don't). Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 6133edf..38c3c0e 100644 --- a/hw/us

[Qemu-devel] [PATCH v3 14/28] dev-smartcard-reader: white space fixes

2013-04-22 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index db8ce02..57eb803 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -471,6 +471,7

[Qemu-devel] [PATCH v3 05/28] libcacard: use system config directory for nss db on win32

2013-04-22 Thread Alon Levy
From: Marc-André Lureau It's a bit nicer to look for default database under CSIDL_COMMON_APPDATA\pki\nss rather that /etc/pki/nss. Signed-off-by: Marc-André Lureau --- libcacard/vcard_emul_nss.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/libcacard/vc

[Qemu-devel] [PATCH v3 13/28] libcacard: remove default libcoolkey loading

2013-04-22 Thread Alon Levy
From: Marc-André Lureau Use only the modules defined in the NSS database. --- libcacard/vcard_emul_nss.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c index 6b1ca8a..9ba80fb 100644 --- a/libcacard/vca

[Qemu-devel] [PATCH v3 12/28] libcacard: remove sql: prefix

2013-04-22 Thread Alon Levy
From: Marc-André Lureau For some reason, with sql:/ prefix, the PKCS11 modules are not loaded. This patch goes on top of Alon smartcard series. --- libcacard/vcard_emul_nss.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_e

[Qemu-devel] [PATCH v3 08/28] libcacard: fix mingw64 cross-compilation

2013-04-22 Thread Alon Levy
From: Marc-André Lureau Compile and link with version.lo Signed-off-by: Marc-André Lureau --- Makefile | 8 ++-- rules.mak | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 88375dc..b6ad03a 100644 --- a/Makefile +++ b/Makefile @@ -166,11 +16

[Qemu-devel] [PATCH v3 03/28] ccid: make backend_enum_table "static const" and adjust users

2013-04-22 Thread Alon Levy
From: Jim Meyering Signed-off-by: Jim Meyering --- hw/usb/ccid-card-emulated.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 6cbb176..094284d 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-ca

[Qemu-devel] [PATCH v3 02/28] ccid-card-emul: do not crash if backend is not provided

2013-04-22 Thread Alon Levy
From: Marc-André Lureau Program received signal SIGSEGV, Segmentation fault. __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:164 164 movdqu(%rsi), %xmm2 (gdb) bt at /home/elmarco/320g/src/qemu/hw/ccid-card-emulated.c:477 at /home/elmarco/320g/src/qemu

[Qemu-devel] [PATCH v3 06/28] util: move socket_init() to osdep.c

2013-04-22 Thread Alon Levy
From: Marc-André Lureau vscclient needs to call socket_init() for portability. Moving to osdep.c since it has no internal dependency. Signed-off-by: Marc-André Lureau --- util/osdep.c| 23 +++ util/qemu-sockets.c | 24 2 files changed, 23 in

[Qemu-devel] [PATCH v3 07/28] build-sys: must link with -fstack-protector

2013-04-22 Thread Alon Levy
From: Marc-André Lureau It is needed to give that flag to the linker as well, but latest libtool 2.4.2 still swallows that argument, so let's pass it with libtool -Wc argument. qemu-1.4.0/stubs/arch-query-cpu-def.c:6: undefined reference to `__stack_chk_guard' Signed-off-by: Marc-André Lureau

[Qemu-devel] [PATCH v3 04/28] ccid: declare DEFAULT_ATR table to be "static const"

2013-04-22 Thread Alon Levy
From: Jim Meyering Signed-off-by: Jim Meyering --- hw/usb/ccid-card-passthru.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c index 71a45f6..275b887 100644 --- a/hw/usb/ccid-card-passthru.c +++ b/hw/usb/ccid-card-pas

[Qemu-devel] [PATCH v3 00/28] ccid and libcacard fixes for windows/mingw

2013-04-22 Thread Alon Levy
that were not acked before. did all the changes per Marc Andre's comments. Please look at the g_debug one, I'm not sure about the ifdeffery there (not if it works, but if it looks ok). Alon Levy (15): dev-smartcard-reader: white space fixes dev-smartcard-reader: nicer debug mess

Re: [Spice-devel] [PATCH spice-server 00/28] adaptive video streaming

2013-04-17 Thread Alon Levy
> On 04/17/2013 10:47 AM, Alon Levy wrote: > > On Mon, 2013-04-15 at 14:54 -0400, Yonit Halperin wrote: > >> Hi, > >> On 04/14/2013 09:37 AM, Alon Levy wrote: > >>> On Tue, Feb 26, 2013 at 01:03:46PM -0500, Yonit Halperin wrote: > >>> > >&g

Re: [Spice-devel] [PATCH spice-gtk 6/8] spice-pulse: adjust the playback latency when the min-latency property changes

2013-04-17 Thread Alon Levy
> If the current latency is smaller than the new min-latency > value, we cork the playback till the target latency is achieved. > > Note: I didn't modify the prebuf configuration and used > pa_stream_prebuf, because pulse updated the prebuf only if > I set both prebuf and tlength to be target_late

Re: [Spice-devel] [PATCH spice-gtk 4/8] channel-display: video stream quality report

2013-04-17 Thread Alon Levy
> handle MSG_STREAM_ACTIVIATE_REPORT and send MSGC_STREAM_REPORT > periodically, or when the playback is out of sync. ACK with one comment > --- > gtk/channel-display-priv.h | 10 > gtk/channel-display.c | 116 > - > spice-common

Re: [Spice-devel] [PATCH spice-gtk 3/8] channel-playback: provide access to playback properties via the session

2013-04-17 Thread Alon Levy
> Support checking whether an audio playback is active and what its latency > is. ACK, one comment. > --- > gtk/Makefile.am | 1 + > gtk/channel-playback-priv.h | 23 +++ > gtk/channel-playback.c | 24 > gtk/spice-session-priv.h|

Re: [Spice-devel] [spice-xpi 1/3] build: Adjust plugin name when building xpi

2013-04-17 Thread Alon Levy
> The plugin binary name was changed from libnsISpice to npSpiceConsole, > but the Makefile.am rule optionnally building SpiceXpi.xpi was not > changed to take this rename into account. ACK series. > --- > SpiceXPI/Makefile.am | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

Re: [Spice-devel] [PATCH spice-server 00/28] adaptive video streaming

2013-04-17 Thread Alon Levy
On Mon, 2013-04-15 at 14:54 -0400, Yonit Halperin wrote: > Hi, > On 04/14/2013 09:37 AM, Alon Levy wrote: > > On Tue, Feb 26, 2013 at 01:03:46PM -0500, Yonit Halperin wrote: > > > > ACK series, sorry for the delay. I have to admit I don't understand the > > fir

Re: [Qemu-devel] [PATCH v2 00/10] ccid and libcacard fixes for windows/mingw

2013-04-17 Thread Alon Levy
On Mon, 2013-04-15 at 15:31 +0200, Marc-André Lureau wrote: > Hi > > > On Wed, Mar 27, 2013 at 9:36 PM, Alon Levy wrote: > This series: > 1. fixes windows guests to show the ccid device > 2. changes libcacard to use glib > 3. makes lib

Re: [Qemu-devel] [PATCH] ccid: Fix crash when backend isn't specified

2013-04-15 Thread Alon Levy
On Sun, 2013-04-14 at 16:06 -0400, Cole Robinson wrote: > Reproducer: > > ./x86_64-softmmu/qemu-system-x86_64 -device usb-ccid,id=ccid0 -usb -device > ccid-card-emulated -monitor stdio > ACK, thanks. Marc-Andre, could you review the fixed patches I sent previously, and then I can put this on t

Re: [Spice-devel] [PATCH spice-server 00/28] adaptive video streaming

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:46PM -0500, Yonit Halperin wrote: ACK series, sorry for the delay. I have to admit I don't understand the first patches as well as I should, but seeing as they have been tested and that I would just be delaying them further, I prefer to let you push them. I hope to wo

Re: [Spice-devel] [PATCH spice-server 24/28] server/red_worker.c: use the bit rate of old streams as a start point for new streams

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:10PM -0500, Yonit Halperin wrote: > mjpeg_encoder modify the initial bit we supply it, according to the > client feedback. If it reaches a bit rate which is higher than the > initial one, we use the higher bit rate as the new bit rate estimation. ACK to this and the r

Re: [Spice-devel] [PATCH spice-server 23/28] red_worker: video streams - adjust client playback latency

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:09PM -0500, Yonit Halperin wrote: ACK one comment below > --- > server/red_worker.c | 56 > - > 1 file changed, 51 insertions(+), 5 deletions(-) > > diff --git a/server/red_worker.c b/server/red_worker.c > index

Re: [Spice-devel] [PATCH spice-server 22/28] reds: support mm_time latency adjustments

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:08PM -0500, Yonit Halperin wrote: > When there is no audio playback, we set the mm_time in the client to be older > than the one in the server by at least the requested latency (the delta is > actually bigger, due to the network latency). > When there is an audio playb

Re: [Spice-devel] [PATCH spice-server 21/28] snd_worker: support sending SPICE_MSG_PLAYBACK_LATENCY

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:07PM -0500, Yonit Halperin wrote: > also update spice-common submodule ACK with one line removed. > --- > server/snd_worker.c | 45 + > server/snd_worker.h | 2 ++ > 2 files changed, 47 insertions(+) > > diff --git a/ser

Re: [Spice-devel] [PATCH spice-server 20/28] dispatcher.h: fix - s/#define MAIN_DISPATCHER_H/#define DISPATCHER_H

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:06PM -0500, Yonit Halperin wrote: ACK > --- > server/dispatcher.h | 6 +++--- > server/main_dispatcher.h | 1 + > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/server/dispatcher.h b/server/dispatcher.h > index a468c58..1b389bd 100644 > ---

Re: [Spice-devel] [PATCH spice-server 19/28] red_worker: ignoring video frame drops that are not due to pipe congestion

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:05PM -0500, Yonit Halperin wrote: > A frame can be dropped if a new frame was added during the same > call to red_process_command (we didn't attempt to send the older > frame). Such drops are ignored. ACK. red_detach_stream / red_attach_stream and red_stream_mainten

Re: [Spice-devel] [PATCH spice-server 18/28] red_worker: notify mjpeg_encoder on server frame drops

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:04PM -0500, Yonit Halperin wrote: ACK > --- > server/red_worker.c | 17 + > 1 file changed, 13 insertions(+), 4 deletions(-) > > diff --git a/server/red_worker.c b/server/red_worker.c > index 23f9ca5..ff26f84 100644 > --- a/server/red_worker.c > +++

Re: [Spice-devel] [PATCH spice-server 17/28] red_worker: support SPICE_MSGC_DISPLAY_STREAM_REPORT

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:03PM -0500, Yonit Halperin wrote: ACK, one spelling error below. > update mjpeg_encoder with reports from the client about > the playback quality. > --- > server/red_dispatcher.c | 1 + > server/red_worker.c | 86 > +

Re: [Spice-devel] [PATCH spice-server 16/28] red_worker: start using mjpeg_encoder rate control capabilities

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:02PM -0500, Yonit Halperin wrote: > This patch only employs setting the stream parameters based on > the initial given bit-rate, the latency, and the encoding size. > Later patches will also employ mjpeg_encoder response to client reports, > and its control over frame

Re: [Spice-devel] [PATCH spice-server 15/28] server/red_worker: enable latency monitoring in the display channel

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:01PM -0500, Yonit Halperin wrote: ACK > --- > server/red_worker.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/server/red_worker.c b/server/red_worker.c > index 82f2fc9..5043c10 100644 > --- a/server/red_worker.c > +++ b/server/red_w

Re: [Spice-devel] [PATCH spice-server 14/28] red_worker: stream - update periodically the input frame rate

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:04:00PM -0500, Yonit Halperin wrote: > Periodically calculate the rate of frames arriving from the guest to the > server. ACK. red_now should be put in a header later. > --- > server/red_worker.c | 36 +++- > 1 file changed, 35 insertio

Re: [Spice-devel] [PATCH spice-server 13/28] red_channel: monitor connection latency using MSG_PING

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:59PM -0500, Yonit Halperin wrote: ACK. just a note: maybe we should not send our time, but an id, to not leak information? another note: should we drop the special case main channel ping later? other notes (all nitpick quality) below. > --- > server/inputs_channe

Re: [Spice-devel] [PATCH spice-server 12/28] server/red_worker: assign timer callbacks to worker_core, using spice_timer_queue

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:58PM -0500, Yonit Halperin wrote: > display channel - supplying timeouts interface to red_channel, in order to > allow > periodic latency monitoring (see next patch). ACK > --- > server/red_worker.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff

Re: [Spice-devel] [PATCH spice-server 11/28] server: spice_timer_queue

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:57PM -0500, Yonit Halperin wrote: > Each thread can create a spice_timer_queue, for managing its > own timers. ACK. nitpick: why ms and not nano? > --- > server/Makefile.am | 2 + > server/spice_timer_queue.c | 268 > +

Re: [Spice-devel] [PATCH spice-server 10/28] mjpeg_encoder: add stream warmup time, in which we avoid server and client drops

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:56PM -0500, Yonit Halperin wrote: > The stream starts after lossless frames were sent to the client, > and without rate control (except for pipe congestion). Thus, on the beginning > of the stream, we might observe frame drops on the client and server side > which > a

Re: [Spice-devel] [PATCH spice-server 09/28] mjpeg_encoder: keep the average observed fps similar to the defined fps

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:55PM -0500, Yonit Halperin wrote: > The actual frames distribution does not necessarily fit the > condition "at least one frame every (1000/rate_contorl->fps) > milliseconds". > For keeping the average frame rate close to the defined fps, we > periodically measure the

Re: [Spice-devel] [PATCH spice-server 08/28] mjpeg_encoder: move the control over frame drops to mjpeg_encoder

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:54PM -0500, Yonit Halperin wrote: ACK with one comment. > --- > server/mjpeg_encoder.c | 20 +--- > server/mjpeg_encoder.h | 21 ++--- > server/red_worker.c| 21 - > 3 files changed, 39 insertions(+), 23 deleti

Re: [Spice-devel] [PATCH spice-server 07/28] mjpeg_encoder: update the client with estimations for the required playback latency

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:53PM -0500, Yonit Halperin wrote: > The required client playback latency is assessed based on the current > estimation of the bit rate, the network latency, and the encoding size > of the frames. When the playback delay that is reported by the client > seems too small,

Re: [Spice-devel] [PATCH spice-server 06/28] mjpeg_encoder: modify stream bit rate based on server side pipe congestion

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:52PM -0500, Yonit Halperin wrote: > Downgrading stream bit rate when the input frame rate in the server > exceeds the output frame rate, and frames are being dropped from the > output pipe. ACK. > --- > server/mjpeg_encoder.c | 103 > +++

Re: [Spice-devel] [PATCH spice-server 05/28] mjpeg_encoder: adjust the stream bit rate based on periodic client feedback

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:51PM -0500, Yonit Halperin wrote: > mjpeg_encoder can receive periodic reports about the playback status on > the client side. Then, mjpeg_encoder analyses the report and can > increase or decrease the stream bit rate, depending on the report. > When the bit rate is ch

Re: [Spice-devel] [PATCH spice-server 04/28] mjpeg_encoder: re-configure stream parameters when the frame's encoding size changes

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:50PM -0500, Yonit Halperin wrote: > If the encoding size seems to get smaller/bigger, re-evaluate the > stream quality and frame rate. ACK. > --- > server/mjpeg_encoder.c | 147 > ++--- > 1 file changed, 139 insertions(+)

Re: [Spice-devel] [PATCH spice-server 03/28] mjpeg_encoder: configure mjpeg quality and frame rate according to a given bit rate

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:49PM -0500, Yonit Halperin wrote: > Previously, the mjpeg quality was always 70. The frame rate was > tuned according to the frames' congestion in the pipe. > This patch sets the quality and frame rate according to > a given bit rate and the size of the first encoded f

Re: [Spice-devel] [PATCH spice-server 02/28] server/red_worker: streams: moving mjpeg_encoder from Stream to StreamAgent

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:48PM -0500, Yonit Halperin wrote: > The mjpeg_encoder should be client specific, and not shared between > different clients**, for the following reasons: > (1) Since we use abbreviated jpeg datastream for mjpeg, employing the same > mjpeg_encoder for different clie

Re: [Spice-devel] [PATCH spice-server 01/28] red_worker: stream agent - fix miscounting of frames

2013-04-14 Thread Alon Levy
On Tue, Feb 26, 2013 at 01:03:47PM -0500, Yonit Halperin wrote: > Frames counting was skipped when the previous frame was already > sent completely to the client. ACK > --- > server/red_worker.c | 16 > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/server/re

[Qemu-devel] [PATCH v2 03/10] ccid-card-passthru, dev-smartcard-reader: add debug environment variables

2013-03-27 Thread Alon Levy
namespace, i.e: Signed-off-by: Alon Levy --- hw/ccid-card-passthru.c | 2 ++ hw/usb/dev-smartcard-reader.c | 1 + include/qemu-common.h | 5 + util/cutils.c | 23 +++ 4 files changed, 31 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH v2 09/10] dev-smartcard-reader: empty implementation for Mechanical (fail correctly)

2013-03-27 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 7040e8d..689468b 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -1051,6

[Qemu-devel] [PATCH v2 10/10] libcacard/cac: change big switch functions to single return point

2013-03-27 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/cac.c | 73 - 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/libcacard/cac.c b/libcacard/cac.c index 5864539..7a06b5a 100644 --- a/libcacard/cac.c +++ b/libcacard/cac.c @@ -40,41

[Qemu-devel] [PATCH v2 07/10] libcacard/vreader: add debugging messages for apdu

2013-03-27 Thread Alon Levy
Using g_debug with log domain libcacard Signed-off-by: Alon Levy --- libcacard/cac.c | 7 - libcacard/cac.h | 8 ++ libcacard/vreader.c | 77 + 3 files changed, 85 insertions(+), 7 deletions(-) diff --git a/libcacard/cac.c b

[Qemu-devel] [PATCH v2 06/10] dev-smartcard-reader: copy atr protocol to ccid parameters

2013-03-27 Thread Alon Levy
Adds todos. Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index bb96f02..7040e8d 100644 --- a/hw/usb/dev-smartcard-reader.c

[Qemu-devel] [PATCH v2 04/10] dev-smartcard-reader: define structs for CCID_Parameter internals

2013-03-27 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/usb/dev-smartcard-reader.c | 74 +++ 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 751bd04..014c0b1 100644 --- a/hw/usb/dev-smartcard

[Qemu-devel] [PATCH v2 08/10] libcacard: move atr setting from macro to function

2013-03-27 Thread Alon Levy
Only because qemu's checkpatch complains about it. Signed-off-by: Alon Levy --- Makefile.objs | 1 + libcacard/vcard_emul_nss.c | 14 +++--- libcacard/vcardt.c | 40 libcacard/vcardt.h

[Qemu-devel] [PATCH v2 05/10] dev-smartcard-reader: change default protocol to T=0

2013-03-27 Thread Alon Levy
We don't support T=1 so we shouldn't advertise it by default. Two independent changes: * Default ATR sets T=0. This gets overwritten by the client provided ATR later. * Class descriptor changes dwAdvertise dwProtocols. to 0x1 and dwProtocols.=0 per spec. Signed-off-by:

[Qemu-devel] [PATCH v2 02/10] ccid-card-passthru: add atr check

2013-03-27 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/ccid-card-passthru.c | 59 + 1 file changed, 59 insertions(+) diff --git a/hw/ccid-card-passthru.c b/hw/ccid-card-passthru.c index 3566e55..111894f 100644 --- a/hw/ccid-card-passthru.c +++ b/hw/ccid-card-passthru.c

[Qemu-devel] [PATCH v2 01/10] libcacard: change default ATR

2013-03-27 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/vcardt.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h index 538bdde..3b9a619 100644 --- a/libcacard/vcardt.h +++ b/libcacard/vcardt.h @@ -26,9 +26,17 @@ typedef struct

[Qemu-devel] [PATCH v2 00/10] ccid and libcacard fixes for windows/mingw

2013-03-27 Thread Alon Levy
Marc Andre's comments. Please look at the g_debug one, I'm not sure about the ifdeffery there (not if it works, but if it looks ok). Alon Levy (10): libcacard: change default ATR ccid-card-passthru: add atr check ccid-card-passthru, dev-smartcard-reader: add debug environment

Re: [Qemu-devel] [PATCH 18/26] hw/usb/dev-smartcard-reader.c: copy atr's protocol to ccid's parameters (adds todo's)

2013-03-27 Thread Alon Levy
On Fri, Mar 22, 2013 at 03:23:15PM +0100, Marc-André Lureau wrote: > Hi, > > > On Mon, Mar 18, 2013 at 2:11 PM, Alon Levy wrote: > > +if (atr_protocol_num == 0) { > > +DPRINTF(s, D_WARN, "%s: error: unimplemented ATR T0 parameters" > >

Re: [Spice-devel] UMS memory management

2013-03-27 Thread Alon Levy
> Hi, > On 03/27/2013 06:17 AM, Hans de Goede wrote: > > Hi, > > > > On 03/27/2013 09:07 AM, Søren Sandmann wrote: > >> Hello, > >> > >> The following is some notes on what I am planning to do for UMS > >> memory > >> management. It basically amounts to a rewrite of qxl-surface-ums.c > > > > Looks

Re: [Qemu-devel] [PATCH 1/8] RFC: chardev frontend open handling cleanup

2013-03-25 Thread Alon Levy
> This patch-series is the result of the > "[PATCH 1/2] char: add qemu_chr_be_is_fe_connected" discussion > thread. > > This patch series (tries to) make(s) the frontend open concept both > more > explicit and generic, and significantly cleans up the surrounding > code. The whole patch series loo

Re: [Qemu-devel] qxl: qxl's event named "QXL_INTERRUPT_DISPLAY"

2013-03-25 Thread Alon Levy
> Hi, I'm learning about qxl device in KVM VM. I got a problem and asks > for help. Thanks. > > The qemu's command is: > qemu-system-x86_64 -spice port=5900,disable-ticketing -vga > qxl > --enable-kvm ... > > The code in function 'interface_get_command' is followed: > SPIC

<    1   2   3   4   5   6   7   8   9   10   >