Re: [Qemu-devel] [PATCH] Spelling fixes

2013-07-08 Thread Corentin Chary
answers. Even as non native speaker I was aware that this part still did not sound like correct English, but I restricted my modifications to those parts where I was sure. Let's ask the original author Corentin Chary... Regards Stefan W. -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH v2 00/15] vnc: adapative tight, zrle, zywrle, and bitmap module

2010-11-11 Thread Corentin Chary
encoding for lossless updates, like zlib or tight. - Bitmap module: create bitmap.h and bitops.h, and remove duplicate code from vnc.c It was my last series from GSoC 2010 context, if necessary I can send different series for adaptive vnc, zrle and bitmap stuff. Thanks, Corentin Chary (15

[Qemu-devel] [PATCH v2 07/15] vnc: palette: and fill and color calls.

2010-11-11 Thread Corentin Chary
These two helpers are needed for zrle and zywrle. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 33 + ui/vnc-palette.h |3 +++ 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c

[Qemu-devel] [PATCH v2 03/15] vnc: refresh lossy rect after a given timeout

2010-11-11 Thread Corentin Chary
If an adaptive encoding has choosen to send a lossy update based on the result of vnc_update_freq(), then it should advertise it with vnc_sent_lossy_rect(). This will allow to automatically refresh this rect once it's static again. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc

[Qemu-devel] [PATCH v2 12/15] vnc: use the new generic bitmap functions

2010-11-11 Thread Corentin Chary
Switch to bitmap.h and bitops.h instead of redefining our own bitmap helpers. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 91 ++--- ui/vnc.h |7 +++-- 2 files changed, 25 insertions(+), 73 deletions(-) diff

[Qemu-devel] [PATCH v2 05/15] vnc: palette: use a pool to reduce memory allocations

2010-11-11 Thread Corentin Chary
We now that the palette will never have more than 256 elements. Let's use a pool to reduce malloc calls. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 18 ++ ui/vnc-palette.h |3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git

[Qemu-devel] [PATCH v2 02/15] vnc: add a way to get the update frequency for a given region

2010-11-11 Thread Corentin Chary
rect was not updated in the last 2 second, then the frequency became 0, and all the stored timestamp are reseted. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 101 ++ ui/vnc.h | 19 +++ 2 files changed, 120

[Qemu-devel] [PATCH v2 13/15] vnc: don't try to send bigger updates that client height

2010-11-11 Thread Corentin Chary
Respect client size if it doesn't not support desktop resizing. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 600ea75..9189014 100644 --- a/ui/vnc.c +++ b/ui/vnc.c

[Qemu-devel] [PATCH v2 06/15] vnc: palette: add palette_init calls

2010-11-11 Thread Corentin Chary
This allow to use palette on the stack instead of always allocating them. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c |8 +++- ui/vnc-palette.h |1 + 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c index

[Qemu-devel] [PATCH v2 15/15] vnc: add a non-adaptive option

2010-11-11 Thread Corentin Chary
This option allow to disable adaptive behaviors in some encodings. Signed-off-by: Corentin Chary corenti...@iksaif.net --- qemu-options.hx|9 + ui/vnc-enc-tight.c |2 +- ui/vnc.c | 13 + ui/vnc.h |1 + 4 files changed, 20 insertions(+), 5

[Qemu-devel] [PATCH v2 09/15] vnc: fix uint8_t comparisons with negative values

2010-11-11 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c |4 ++-- ui/vnc-enc-zrle.c |3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index ad9a9a8..81024d5 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc

[Qemu-devel] [PATCH v2 11/15] bitmap: add a generic bitmap and bitops library

2010-11-11 Thread Corentin Chary
. Signed-off-by: Corentin Chary corenti...@iksaif.net --- Makefile.objs |1 + bitmap.c | 255 + bitmap.h | 222 ++ bitops.c | 142 ++ bitops.h

Re: [Qemu-devel] [PATCH v2 11/15] bitmap: add a generic bitmap and bitops library

2010-11-11 Thread Corentin Chary
__ffs(1): 0 ffs(1): 1 This behavior is needed for all the other function to work (and makes more sense that the normal ffs). But .. maybe I should just use ffs() - 1 -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH] vnc: qemu can die if the client is disconnected while updating screen

2010-11-26 Thread Corentin Chary
?), but the destroy call does. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-jobs-async.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ui/vnc-jobs-async.c b/ui/vnc-jobs-async.c index 6e9cf08..0b5d750 100644 --- a/ui/vnc-jobs-async.c +++ b/ui/vnc-jobs-async.c

[Qemu-devel] [PATCH 0/2] vnc: the lost parts

2011-01-25 Thread Corentin Chary
Hi Anthony, If you want to enable vnc threaded server by default, you should really merge these two lost patchs :). Thanks, Corentin Chary (1): vnc: qemu can die if the client is disconnected while updating screen Yoshiaki Tamura (1): vl.c: set NULL upon deleting handlers

[Qemu-devel] [PATCH 2/2] vnc: qemu can die if the client is disconnected while updating screen

2011-01-25 Thread Corentin Chary
From: Corentin Chary corenti...@iksaif.net agraf reported that qemu_mutex_destroy(vs-output_mutex) was failing in vnc_disconnect_finish() when the vnc client was disconnected while updating the screen. It's because vnc_worker_thread_loop() tries to unlock the mutex while not locked. Signed-off

[Qemu-devel] [PATCH 1/2] vl.c: set NULL upon deleting handlers in qemu_set_fd_handler2()

2011-01-25 Thread Corentin Chary
handler still exists, it'll be called, and then crashes because of lack of resources. This patch fixes it. Signed-off-by: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Reviewed-by: Corentin Chary corenti...@iksaif.net --- vl.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

Re: [Qemu-devel] [PATCH 1/2] vl.c: set NULL upon deleting handlers in qemu_set_fd_handler2()

2011-01-25 Thread Corentin Chary
On Tue, Jan 25, 2011 at 10:03 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Jan 25, 2011 at 8:33 AM, Corentin Chary corentin.ch...@gmail.com wrote: From: Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp Currently qemu_set_fd_handler2() is only setting ioh-deleted upon deleting

[Qemu-devel] [PING 0.14] Missing vnc patch

2011-02-03 Thread Corentin Chary
vnc: qemu can die if the client is disconnected while updating screen http://patchwork.ozlabs.org/patch/80334/ (what about a stable alias instead of [PING x.x] ? Like sta...@kernel.org) Thanks, -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH v3 01/16] vnc: qemu can die if the client is disconnected while updating screen

2011-02-04 Thread Corentin Chary
agraf reported that qemu_mutex_destroy(vs-output_mutex) while failing in vnc_disconnect_finish(). It's because vnc_worker_thread_loop() tries to unlock the mutex while not locked. The unlocking call doesn't fail (pthread bug ?), but the destroy call does. Signed-off-by: Corentin Chary corenti

[Qemu-devel] [PATCH v3 00/16] vnc: adapative tight, zrle, zywrle, and bitmap module

2011-02-04 Thread Corentin Chary
From: Corentin Chary corentin.ch...@gmail.com Hi, Since v2: - Fixed some styles issues - Rebased to current master - Fixed a Makefile issue (using .c instead of .o) I rebased the series against current master, it contains: - Adaptive Tight Encoding: send lossy or lossless updates depending

[Qemu-devel] [PATCH v3 08/16] vnc: palette: and fill and color calls.

2011-02-04 Thread Corentin Chary
These two helpers are needed for zrle and zywrle. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 32 ui/vnc-palette.h |3 +++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c

[Qemu-devel] [PATCH v3 04/16] vnc: refresh lossy rect after a given timeout

2011-02-04 Thread Corentin Chary
If an adaptive encoding has choosen to send a lossy update based on the result of vnc_update_freq(), then it should advertise it with vnc_sent_lossy_rect(). This will allow to automatically refresh this rect once it's static again. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc

[Qemu-devel] [PATCH v3 02/16] vnc: don't set the quality if lossy encoding are disabled

2011-02-04 Thread Corentin Chary
This should not change the current behavior, but if any new encoding try to use the tight quality, it will always be set to -1 when lossy encodings are disabled. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff

[Qemu-devel] [PATCH v3 03/16] vnc: add a way to get the update frequency for a given region

2011-02-04 Thread Corentin Chary
rect was not updated in the last 2 second, then the frequency became 0, and all the stored timestamp are reseted. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 101 ++ ui/vnc.h | 19 +++ 2 files changed, 120

[Qemu-devel] [PATCH v3 06/16] vnc: palette: use a pool to reduce memory allocations

2011-02-04 Thread Corentin Chary
We now that the palette will never have more than 256 elements. Let's use a pool to reduce malloc calls. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 18 ++ ui/vnc-palette.h |3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git

[Qemu-devel] [PATCH v3 05/16] vnc: tight: use the update frequency to choose between lossy and lossless

2011-02-04 Thread Corentin Chary
Use the new update frequency infrastructure to use jpeg for regions with high update frequency. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c | 75 +++- 1 files changed, 62 insertions(+), 13 deletions(-) diff --git

[Qemu-devel] [PATCH v3 07/16] vnc: palette: add palette_init calls

2011-02-04 Thread Corentin Chary
This allow to use palette on the stack instead of always allocating them. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c |8 +++- ui/vnc-palette.h |1 + 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c index

[Qemu-devel] [PATCH v3 12/16] bitmap: add a generic bitmap and bitops library

2011-02-04 Thread Corentin Chary
. bitops_ffsl() and bitops_flsl() are here because bitops/bitmap works on unsigned long, not int, and we can't use current code because: * ffs only works on int * qemu_fls only works on int * ffsl is a GNU extension Signed-off-by: Corentin Chary corenti...@iksaif.net --- Makefile.objs |1

[Qemu-devel] [PATCH v3 10/16] vnc: fix uint8_t comparisons with negative values

2011-02-04 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c |4 ++-- ui/vnc-enc-zrle.c |3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index ad9a9a8..81024d5 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc

[Qemu-devel] [PATCH v3 11/16] vnc: fix lossy rect refreshing

2011-02-04 Thread Corentin Chary
The for loop in send_lossy_rect was totally wrong, and we can't call vnc_set_bits() because it does not really do what it should. Use vnc_set_bit() directly instead. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 12 1 files changed, 8 insertions(+), 4

[Qemu-devel] [PATCH v3 14/16] vnc: don't try to send bigger updates that client height

2011-02-04 Thread Corentin Chary
Respect client size if it doesn't not support desktop resizing. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 6c57b0e..86c23207 100644 --- a/ui/vnc.c +++ b/ui/vnc.c

[Qemu-devel] [PATCH v3 16/16] vnc: add a non-adaptive option

2011-02-04 Thread Corentin Chary
This option allow to disable adaptive behaviors in some encodings. Signed-off-by: Corentin Chary corenti...@iksaif.net --- qemu-options.hx|9 + ui/vnc-enc-tight.c |2 +- ui/vnc.c | 13 + ui/vnc.h |1 + 4 files changed, 20 insertions(+), 5

[Qemu-devel] [PATCH v3 13/16] vnc: use the new generic bitmap functions

2011-02-04 Thread Corentin Chary
Switch to bitmap.h and bitops.h instead of redefining our own bitmap helpers. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 91 ++--- ui/vnc.h |7 +++-- 2 files changed, 25 insertions(+), 73 deletions(-) diff

[Qemu-devel] [PATCH v3 15/16] vnc: tight: tweak adaptive tight settings

2011-02-04 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 81024d5..82c1e96 100644 --- a/ui/vnc-enc

Re: [Qemu-devel] Remote Desktop integration

2011-02-14 Thread Corentin Chary
from userspace, there is no way to implement that into QEMU. Simply install it on your guests if you want to use it. -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH 01/15] vnc: don't set the quality if lossy encoding are disabled

2010-08-10 Thread Corentin Chary
This should not change the current behavior, but if any new encoding try to use the tight quality, it will always be set to -1 when lossy encodings are disabled. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff

[Qemu-devel] [PATCH 02/15] vnc: add a way to get the update frequency for a given region

2010-08-10 Thread Corentin Chary
rect was not updated in the last 2 second, then the frequency became 0, and all the stored timestamp are reseted. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 101 ++ ui/vnc.h | 19 +++ 2 files changed, 120

[Qemu-devel] [PATCH 00/15] vnc: adapative tight, zrle, zywrle, and bitmap module

2010-08-10 Thread Corentin Chary
, like zlib or tight. - Bitmap module: create bitmap.h and bitops.h, and remove duplicate code from vnc.c This is probably my last series in the GSoC 2010 context, but I'll probably continue to work on the VNC server for some time :). Thanks, Corentin Chary (15): vnc: don't set the quality

[Qemu-devel] [PATCH 04/15] vnc: tight: use the update frequency to choose between lossy and lossless

2010-08-10 Thread Corentin Chary
Use the new update frequency infrastructure to use jpeg for regions with high update frequency. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c | 75 +++- 1 files changed, 62 insertions(+), 13 deletions(-) diff --git

[Qemu-devel] [PATCH 05/15] vnc: palette: use a pool to reduce memory allocations

2010-08-10 Thread Corentin Chary
We now that the palette will never have more than 256 elements. Let's use a pool to reduce malloc calls. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 18 ++ ui/vnc-palette.h |3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git

[Qemu-devel] [PATCH 06/15] vnc: palette: add palette_init calls

2010-08-10 Thread Corentin Chary
This allow to use palette on the stack instead of always allocating them. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c |8 +++- ui/vnc-palette.h |1 + 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c index

[Qemu-devel] [PATCH 07/15] vnc: palette: and fill and color calls.

2010-08-11 Thread Corentin Chary
These two helpers are needed for zrle and zywrle. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-palette.c | 33 + ui/vnc-palette.h |3 +++ 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c

[Qemu-devel] [PATCH 11/15] bitmap: add a generic bitmap and bitops library

2010-08-11 Thread Corentin Chary
. Signed-off-by: Corentin Chary corenti...@iksaif.net --- Makefile.objs |1 + bitmap.c | 255 + bitmap.h | 222 ++ bitops.c | 142 ++ bitops.h

[Qemu-devel] [PATCH 09/15] vnc: fix uint8_t comparisons with negative values

2010-08-11 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c |6 +++--- ui/vnc-enc-zrle.c |3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 5ca4342..9f83235 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc

[Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-11 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary corenti...@iksaif.net --- qemu-thread.c |1 + ui/vnc-enc-tight.c | 20 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/qemu-thread.c b/qemu-thread.c index fbc78fe..4094c51 100644

[Qemu-devel] [PATCH 10/15] vnc: fix lossy rect refreshing

2010-08-11 Thread Corentin Chary
The for loop in send_lossy_rect was totally wrong, and we can't call vnc_set_bits() because it does not really do what it should. Use vnc_set_bit() directly instead. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 12 1 files changed, 8 insertions(+), 4

[Qemu-devel] [PATCH 13/15] vnc: don't try to send bigger updates that client height

2010-08-11 Thread Corentin Chary
Respect client size if it doesn't not support desktop resizing. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 0adab4a..dffb4aa 100644 --- a/ui/vnc.c +++ b/ui/vnc.c

[Qemu-devel] [PATCH 15/15] vnc: add a non-adaptive option

2010-08-11 Thread Corentin Chary
This option allow to disable adaptive behaviors in some encodings. Signed-off-by: Corentin Chary corenti...@iksaif.net --- qemu-options.hx|9 + ui/vnc-enc-tight.c |2 +- ui/vnc.c | 13 + ui/vnc.h |1 + 4 files changed, 20 insertions(+), 5

[Qemu-devel] [PATCH 12/15] vnc: use the new generic bitmap functions

2010-08-11 Thread Corentin Chary
Switch to bitmap.h and bitops.h instead of redefining our own bitmap helpers. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc.c | 91 ++--- ui/vnc.h |7 +++-- 2 files changed, 25 insertions(+), 73 deletions(-) diff

Re: [Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-11 Thread Corentin Chary
On Wed, Aug 11, 2010 at 3:06 PM, Chris Krumme chris.kru...@windriver.com wrote: Hello Corentin, On 08/11/2010 12:49 AM, Corentin Chary wrote: The force_jpeg threshold was too low. Signed-off-by: Corentin Charycorenti...@iksaif.net ---  qemu-thread.c      |    1 +  ui/vnc-enc-tight.c

[Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-12 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 9f83235..b0181ff 100644 --- a/ui/vnc-enc

[Qemu-devel] Re: [PATCH] vnc: check fd before calling qemu_set_fd_handler2() in vnc_client_write()

2010-08-20 Thread Corentin Chary
{ +    } else if (vs-csock != -1) {         qemu_set_fd_handler2(vs-csock, NULL, vnc_client_read, NULL, vs);     }     vnc_unlock_output(vs); -- 1.7.1.1 Acked-By: Corentin Chary corenti...@iksaif.net -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] Re: [PATCH] vl.c: set NULL upon deleting handlers in qemu_set_fd_handler2()

2010-08-23 Thread Corentin Chary
-fd_write = NULL;                 break;             }         } -- 1.7.1.1 Good catch, thanks, Reviewed-by: Corentin Chary corenti...@iksaif.net -- Corentin Chary http://xf.iksaif.net

Re: [Qemu-devel] Re: Unmaintained QEMU builds

2010-09-06 Thread Corentin Chary
stuff is multiplatform, and serious commercial work needs something faster than tcg. *-user is useful to GCC developers (and used by those who work on the ARM backend to run the GCC testsuite). Paolo Isn't that also used by scratchbox ? -- Corentin Chary http://xf.iksaif.net

Re: [Qemu-devel] qemu: qemu_mutex_lock: Invalid argument

2010-09-14 Thread Corentin Chary
=ac71103dc6b408775ae72067790ab367912f75ec -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH 2/2] vnc: set the right prefered encoding

2010-05-03 Thread Corentin Chary
From RFB specs: The order of the encoding types given in this message is a hint bby the client as to its preference (the first encoding specified being most preferred) Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions

[Qemu-devel] [PATCH 1/2] vnc: Fix compile error on x86_64 with -D_VNC_DEBUG=1

2010-05-03 Thread Corentin Chary
-sasl.o] Error 1 Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-auth-sasl.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/vnc-auth-sasl.c b/vnc-auth-sasl.c index acaac0c..a51ddc8 100644 --- a/vnc-auth-sasl.c +++ b/vnc-auth-sasl.c @@ -47,7 +47,8 @@ long

[Qemu-devel] [PATCH] vnc: split encoding in specific files

2010-05-03 Thread Corentin Chary
This will allow to implement new encodings (tight, zrle, ..) in a cleaner way. This may hurt performances, because some functions like vnc_convert_pixel are not static anymore, but should not be a problem with gcc 4.5 and the new -flto. Signed-off-by: Corentin Chary corenti...@iksaif.net

[Qemu-devel] [PATCH] vnc: set the right prefered encoding

2010-05-04 Thread Corentin Chary
From RFB specs: The order of the encoding types given in this message is a hint by the client as to its preference (the first encoding specified being most preferred) Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c | 14 ++ 1 files changed, 10 insertions(+), 4

[Qemu-devel] [PATCH 2/4] vnc: really call zlib if we want zlib

2010-05-06 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index a91c3a3..d0c0d00 100644 --- a/vnc.c +++ b/vnc.c @@ -655,7 +655,7 @@ static void send_framebuffer_update(VncState *vs, int x, int y, int w

[Qemu-devel] [PATCH 3/4] vnc: only use a single zlib stream

2010-05-06 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c | 12 +--- vnc.h |2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c

Re: [Qemu-devel] [PATCH] vnc: set the right prefered encoding

2010-05-06 Thread Corentin Chary
On Tue, May 4, 2010 at 2:01 PM, Corentin Chary corenti...@iksaif.net wrote: From RFB specs: The order of the encoding types given in this message is a hint by the client as to its preference (the first encoding specified being most preferred) Signed-off-by: Corentin Chary corenti

[Qemu-devel] [PATCH 1/4] vnc: set the right prefered encoding

2010-05-06 Thread Corentin Chary
From RFB specs: The order of the encoding types given in this message is a hint by the client as to its preference (the first encoding specified being most preferred) Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c | 15 +++ 1 files changed, 11 insertions(+), 4

[Qemu-devel] [PATCH 4/4] vnc: adjust compression zstream level

2010-05-06 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c |9 - vnc.h |1 + 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c index 6a16a79..29dd1b7 100644 --- a/vnc-encoding-zlib.c +++ b/vnc

[Qemu-devel] [RFC] vnc: add basic tight support

2010-05-08 Thread Corentin Chary
This patch only add support for basic compression without any filter. This should not be merged right now, because it's currently worse than zlib, but clients would prefer it. This only for preliminary review and comments. Thanks, --- Makefile |2 + Makefile.objs |

[Qemu-devel] [PATCH 10/10] vnc: update copyrights for vnc-encoding-tight.c

2010-05-18 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c index b836569..0c661a9 100644 --- a/vnc-encoding-tight.c +++ b/vnc-encoding-tight.c @@ -1,9 +1,14

[Qemu-devel] [PATCH 03/10] vnc: only use a single zlib stream

2010-05-18 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c | 12 +--- vnc.h |2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c

[Qemu-devel] [PATCH 02/10] vnc: really call zlib if we want zlib

2010-05-18 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index a91c3a3..d0c0d00 100644 --- a/vnc.c +++ b/vnc.c @@ -655,7 +655,7 @@ static void send_framebuffer_update(VncState *vs, int x, int y, int w

[Qemu-devel] [PATCH 06/10] vnc: add support for tight fill encoding

2010-05-18 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 245 +- 1 files changed, 244 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c index 0d328c2..5ea90c0 100644 --- a/vnc-encoding

[Qemu-devel] [PATCH 08/10] vnc: remove memory leaks in zlib and tight encoding

2010-05-18 Thread Corentin Chary
Also introduce a new helper to free buffers: buffer_free() Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 11 +++ vnc-encoding-zlib.c |8 vnc.c| 23 ++- vnc.h|4 +++- 4 files changed

[Qemu-devel] [PATCH 05/10] vnc: add basic tight support

2010-05-18 Thread Corentin Chary
This patch only add support for basic compression without any filter. Signed-off-by: Corentin Chary corenti...@iksaif.net --- Makefile |2 + Makefile.objs |1 + vnc-encoding-hextile.c |5 +- vnc-encoding-tight.c | 287

[Qemu-devel] [PATCH 07/10] vnc: don't clear zlib stream on set_encoding

2010-05-18 Thread Corentin Chary
. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c |7 --- vnc-encoding-zlib.c |5 - vnc.c|2 -- vnc.h|2 -- 4 files changed, 0 insertions(+), 16 deletions(-) diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c

[Qemu-devel] [PATCH 04/10] vnc: adjust compression zstream level

2010-05-18 Thread Corentin Chary
Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c |9 - vnc.h |1 + 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c index 6a16a79..29dd1b7 100644 --- a/vnc-encoding-zlib.c +++ b/vnc

Re: [Qemu-devel] Re: [PATCH 01/10] vnc: refactor set_encodings

2010-05-18 Thread Corentin Chary
On Tue, May 18, 2010 at 11:18 AM, Alexander Graf ag...@suse.de wrote: On 18.05.2010, at 09:31, Corentin Chary wrote: This is missing a patch description. When people later on either cherry-pick your commits or simply git show them, it's almost impossible to know what's going on. So please

Re: [Qemu-devel] Re: [PATCH 01/10] vnc: refactor set_encodings

2010-05-18 Thread Corentin Chary
On Tue, May 18, 2010 at 11:19 AM, Alexander Graf ag...@suse.de wrote: On 18.05.2010, at 09:31, Corentin Chary wrote: Signed-off-by: Corentin Chary corenti...@iksaif.net I'm also missing a cover letter explaining what your patch set does. As a general rule of thumb, whenever your patch set

Re: [Qemu-devel] VNC encoding ZLibHex?

2010-05-18 Thread Corentin Chary
(libvncserver and ultravnc seems to support that encoding) and get some numbers (you can choose the prefered encoding with most of the vnc clients). -- Corentin Chary http://xf.iksaif.net

Re: [Qemu-devel] VNC encoding ZLibHex?

2010-05-18 Thread Corentin Chary
; ./SDL_viewer 127.0.0.1 On another term I launch tcpdump -i lo0 -nvv port 5900 | python tcpstat.py dump.csv (but you can use wireshark, etc ...) [1] http://xf.iksaif.net/blog/index.php?post/2010/05/18/QEMU%3A-some-charts-on-tight-zlib-and-hextile -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH v2 03/10] vnc: only use a single zlib stream

2010-05-18 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding zlib encoding only uses a single stream. Current implementation defines 4 streams but only uses the first one. Remove them and only use a single stream. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c

[Qemu-devel] [PATCH v2 09/10] vnc: tight: add palette encoding

2010-05-18 Thread Corentin Chary
Add palette tight encoding. Palette encoding will try to count the number of colors for a given rectangle, and if this number is low enough ( 256) it will send the palette + the rectangle with indexed colors. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 430

[Qemu-devel] [PATCH v2 02/10] vnc: really call zlib if we want zlib

2010-05-18 Thread Corentin Chary
send_framebuffer_update() was calling hextile instead of zlib since commit 70a4568fe0c5a64adaa3da5030b7109e5199e692. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index a91c3a3..d0c0d00 100644

[Qemu-devel] [PATCH v2 08/10] vnc: remove memory leaks in zlib and tight encoding

2010-05-18 Thread Corentin Chary
Free buffers used by tight and zlib encodings, lso introduce a new helper to free buffers: buffer_free() Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 11 +++ vnc-encoding-zlib.c |8 vnc.c| 23

[Qemu-devel] [PATCH v2 06/10] vnc: add support for tight fill encoding

2010-05-18 Thread Corentin Chary
Fill encoding detects rectangle using only one color and send only one pixel value. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 245 +- 1 files changed, 244 insertions(+), 1 deletions(-) diff --git a/vnc

[Qemu-devel] [PATCH v2 07/10] vnc: don't clear zlib stream on set_encoding

2010-05-18 Thread Corentin Chary
. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c |7 --- vnc-encoding-zlib.c |5 - vnc.c|2 -- vnc.h|2 -- 4 files changed, 0 insertions(+), 16 deletions(-) diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c

Re: [Qemu-devel] [PATCH] virtio-blk: Avoid zeroing every request structure

2010-05-18 Thread Corentin Chary
in qemu_mallocz instead of malloc + memset ? $ man calloc calloc() allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. __The memory is set to zero.__ -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] Re: [PATCH 1/4] vnc: set the right prefered encoding

2010-05-18 Thread Corentin Chary
Forget this series, I'm sending a rebased one. -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] Re: [PATCH v2 01/10] vnc: refactor set_encodings

2010-05-18 Thread Corentin Chary
On Tue, May 18, 2010 at 2:54 PM, Alexander Graf ag...@suse.de wrote: Corentin Chary wrote: Create a new set_encoding() function to remove duplicated code in set_encodings(). Signed-off-by: Corentin Chary corenti...@iksaif.net Acked-by: Alexander Graf ag...@suse.de Keep in mind

[Qemu-devel] Re: [PATCH v2 01/10] vnc: refactor set_encodings

2010-05-18 Thread Corentin Chary
the first encoding (which is in fact the last, because we start from the end of the array). I believe that the right thing to do is to revert 14eb8b6829ad9dee7035de729e083844a425f274 and add some comments to explain why we loop in reverse order. -- Corentin Chary http://xf.iksaif.net

Re: [Qemu-devel] [PATCH] virtio-blk: Avoid zeroing every request structure

2010-05-18 Thread Corentin Chary
On Tue, May 18, 2010 at 9:02 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, May 18, 2010 at 5:37 PM, Corentin Chary corentin.ch...@gmail.com wrote: Did you try to profile using calloc in qemu_mallocz instead of malloc + memset ? No, I didn't try it.  I don't see how it could perform

[Qemu-devel] [PATCH v3 01/12] Revert vnc: set the right prefered encoding

2010-05-19 Thread Corentin Chary
This patch was wrong, because the loop was already reversed, so the first encoding was correctly set at the end of the loopp. This reverts commit 14eb8b6829ad9dee7035de729e083844a425f274. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c | 14 -- 1 files changed, 4

[Qemu-devel] [PATCH v3 00/12] *** SUBJECT HERE ***

2010-05-19 Thread Corentin Chary
-First-%28dumb%29-tight-benchmarks [2] http://xf.iksaif.net/blog/index.php?post/2010/05/18/QEMU%3A-some-charts-on-tight-zlib-and-hextile Corentin Chary (12): Revert vnc: set the right prefered encoding vnc: explain why set_encodings loop is reversed vnc: really call zlib if we want zlib vnc

[Qemu-devel] [PATCH v3 04/12] vnc: only use a single zlib stream

2010-05-19 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding zlib encoding only uses a single stream. Current implementation defines 4 streams but only uses the first one. Remove them and only use a single stream. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c

[Qemu-devel] [PATCH v3 03/12] vnc: really call zlib if we want zlib

2010-05-19 Thread Corentin Chary
send_framebuffer_update() was calling hextile instead of zlib since commit 70a4568fe0c5a64adaa3da5030b7109e5199e692. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index d0402b9..e81a2a5 100644

[Qemu-devel] [PATCH v3 05/12] vnc: adjust compression zstream level

2010-05-19 Thread Corentin Chary
Adjust zlib compression level if needed by calling deflateParams. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c |9 - vnc.h |1 + 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c

[Qemu-devel] [PATCH v3 02/12] vnc: explain why set_encodings loop is reversed

2010-05-19 Thread Corentin Chary
Add a small comment to explain why we need to start from the end of the array to set the right prefered encoding. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/vnc.c b/vnc.c index b1a3fdb..d0402b9 100644

[Qemu-devel] [PATCH v3 12/12] vnc: tight: add palette encoding

2010-05-19 Thread Corentin Chary
Add palette tight encoding. Palette encoding will try to count the number of colors for a given rectangle, and if this number is low enough ( 256) it will send the palette + the rectangle with indexed colors. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 437

[Qemu-devel] [PATCH v3 08/12] vnc: remove a memory leak in zlib

2010-05-19 Thread Corentin Chary
Makes sure we free all ressources used in zlib encoding (zlib stream and buffer). Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-zlib.c |8 vnc.c |2 ++ vnc.h |1 + 3 files changed, 11 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH v3 09/12] vnc: return the number of rectangles

2010-05-19 Thread Corentin Chary
Some encodings like tight supports tiling (spliting in multiple sub-rectangles). So we needed a way to tell vnc_update_client() how much rectangles are in the buffer. zlib, raw and hextile always send a full rectangle. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding

[Qemu-devel] [PATCH v3 11/12] vnc: add support for tight fill encoding

2010-05-19 Thread Corentin Chary
Fill encoding detects rectangles using only one color and send only one pixel value. Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc-encoding-tight.c | 257 +- 1 files changed, 255 insertions(+), 2 deletions(-) diff --git a/vnc

[Qemu-devel] [PATCH v3 07/12] vnc: add buffer_free()

2010-05-19 Thread Corentin Chary
Add a buffer_free() helper to free vnc buffers and remove some duplicated code in vnc_disconnect_finish(). Signed-off-by: Corentin Chary corenti...@iksaif.net --- vnc.c | 18 ++ vnc.h |1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/vnc.c b/vnc.c index

  1   2   3   >