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

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

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

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

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

2010-08-10 Thread Corentin Chary
Respect client size if it doesn't not support desktop resizing. Signed-off-by: Corentin Chary --- 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 @@ -791,12 +791,11 @@ stati

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

2010-08-10 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 --- ui/vnc.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/

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

2010-08-10 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary --- 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 --- a/qemu-thread.c ++

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

2010-08-10 Thread Corentin Chary
Signed-off-by: Corentin Chary --- 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-tight.c @@ -1546,7 +154

Re: [Qemu-devel] [PATCH] trace: Make trace record fields 64-bit

2010-08-10 Thread Prerna Saxena
On 08/09/2010 07:05 PM, Stefan Hajnoczi wrote: Explicitly use 64-bit fields in trace records so that timestamps and magic numbers work for 32-bit host builds. Signed-off-by: Stefan Hajnoczi --- simpletrace.c | 31 +-- simpletrace.h | 11 ++- simpletr

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

2010-08-10 Thread Corentin Chary
Add most used bitmap and bitops functions into bitmap.c and bitops.c. Theses functions are mostly copied from Linux kernel source. Some of these functions are already redefined in the VNC server. Some of them could be used for some block stuff. The yet yo be submitted NUMA work also need bitmaps.

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

2010-08-10 Thread Corentin Chary
These two helpers are needed for zrle and zywrle. Signed-off-by: Corentin Chary --- 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 index f93250b..d691a0c 1

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

2010-08-10 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 --- ui/vnc-jobs-async.c |2 +

[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 --- 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 c47420b..f93250b 10064

[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 --- ui/vnc-palette.c | 18 ++ ui/vnc-palette.h |3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/ui/vnc-palette.c b/u

[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 --- ui/vnc-enc-tight.c | 75 +++- 1 files changed, 62 insertions(+), 13 deletions(-) diff --git a/ui/vnc-enc-tight.c b/

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

2010-08-10 Thread Corentin Chary
Hi, In this series you'll find: - Adaptive Tight Encoding: send lossy or lossless updates depending on the update frequency of the screen region. If a lossy update is forced, then it will be refreshed with a lossless update as soon as the update frequency goes back to 0. - ZRLE/ZYWRLE Encodi

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

2010-08-10 Thread Corentin Chary
This patch compute the update frequency (in Hz) for each 64x64 rects. Any adaptive encoding can get this value using vnc_update_freq(), and switch to a lossy encoding if the value is too high. The frequency is pre-calculated every 500ms, based on the last 10 updates per 64x64 rect. If a 64x64 rec

[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 --- ui/vnc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ui/vnc.c b/ui/v

[Qemu-devel] [qemu-kvm] build fail on i386 RHEL5u4

2010-08-10 Thread Hao, Xudong
Hi, Recently I build qemu-kvm on 32bit RHEL5u4/RHEL5u5, it will fail on fuction "vhost_dev_sync_region". But RHEL5u1 system is fine to build. Did anyone meet similar issue? qemu-kvm commit: 59d71ddb432db04b57ee2658ce50a3e35d7db97e build error: ... CCx86_64-softmmu/i8254.o CCx86_64-s

[Qemu-devel] Re: [Autotest] [RFC PATCH 08/14] KVM-test: Add a subtest of nic promisc

2010-08-10 Thread Amos Kong
On Thu, Jul 29, 2010 at 5:35 AM, Lucas Meneghel Rodrigues wrote: > On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: >> This test mainly covers TCP sent from host to guest and from guest to host >> with repeatedly turn on/off NIC promiscuous mode. >> >> Signed-off-by: Amos Kong >> --- >>  0 fil

Re: [Qemu-devel] [PATCH v8 1/5] Add qemu_ram_alloc_from_ptr function

2010-08-10 Thread Anthony Liguori
On 07/26/2010 07:10 PM, Cam Macdonell wrote: Provide a function to add an allocated region of memory to the qemu RAM. This patch is copied from Marcelo's qemu_ram_map() in qemu-kvm and given the clearer name qemu_ram_alloc_from_ptr(). Signed-off-by: Cam Macdonell Applied all. Thanks. Re

Re: [Qemu-devel] [PATCH 00/12 v4] Clean up linux-user/elfload.c

2010-08-10 Thread Richard Henderson
On 08/09/2010 09:52 AM, Jan-Simon Möller wrote: >> A re-based and re-tested version of a patch series I >> posted back in April and May. These cleanups prepare >> elfload.c for loading the VDSO for x86_64. > > Do you have a repo where i could pull these from ? Which, the vdso loading bits? gi

[Qemu-devel] [PATCH 2/2] kvm: remove guest triggerable abort()

2010-08-10 Thread Marcelo Tosatti
From: Gleb Natapov This abort() condition is easily triggerable by a guest if it configures pci bar with unaligned address that overlaps main memory. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- kvm-all.c | 16 1 files changed, 4 insertions(+), 12 deletion

[Qemu-devel] [PATCH 1/2] kvm: Don't walk memory_size == 0 slots in kvm_client_migration_log

2010-08-10 Thread Marcelo Tosatti
From: Alex Williamson If we've unregistered a memory area, we should avoid calling qemu_get_ram_ptr() on the left over phys_offset cruft in the slot array. Now that we support removing ramblocks, the phys_offset ram_addr_t can go away and cause a lookup fault and abort. Signed-off-by: Alex Will

[Qemu-devel] [PATCH 0/2] [PULL] qemu-kvm.git uq/master queue

2010-08-10 Thread Marcelo Tosatti
The following changes since commit 748a4ee311b8353292e85851034cb917906aac14: Blue Swirl (1): sparc32: use FW_CFG_CMDLINE_SIZE are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Alex Williamson (1): kvm: Don't walk memory_size ==

Re: [Qemu-devel] about qemu

2010-08-10 Thread Mulyadi Santosa
On Tue, Aug 10, 2010 at 12:17, chandra shekar wrote: > can any one suggest any study materials for start learning  qemu and its > internals > i have already read the documentation in this qemu web page other than that > any > other materials,thanks > I am afraid, the other thing left to try is ju

[Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-10 Thread Michael Tokarev
(and it is also filed agains debian qemu-kvm package, not just qemu -- http://bugs.debian.org/588739 ) -- Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU

[Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot

2010-08-10 Thread Michael Tokarev
This appears to be fixed in 0.13-tobe by this patch: http://lists.gnu.org/archive/html/qemu-devel/2010-07/msg00152.html (hence it's "fix released" in debian which now has 0.13 in experimental). ** Bug watch added: Debian Bug tracker #588739 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=58873

Re: [Autotest] [Qemu-devel] [RFC PATCH 06/14] KVM-test: Add basic file transfer test

2010-08-10 Thread Amos Kong
On Tue, Jul 27, 2010 at 10:36 PM, Lucas Meneghel Rodrigues wrote: > On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: >> This test is the basic test of transfering file between host and guest. Try >> to >> transfer a large file from host to guest, and transfer it back to host, then >> compare t

[Qemu-devel] [PATCH] vmstate: fix vmstate_load_state for subsections

2010-08-10 Thread TeLeMan
If one vmstate includes subsections and its last field flag is VMS_STRUCT, vmstate_load_state will be always failed when the subsections exist. This fix is not perfect because if the last field includes subsections too, vmstate_load_state will maybe be failed when not all of the subsections exist.

[Qemu-devel] Re: [Autotest] [RFC PATCH 14/14] KVM-test: Add subtest of testing offload by ethtool

2010-08-10 Thread Amos Kong
On Tue, Aug 3, 2010 at 3:10 AM, Lucas Meneghel Rodrigues wrote: > On Tue, 2010-07-20 at 09:36 +0800, Amos Kong wrote: >> The latest case contains TX/RX/SG/TSO/GSO/GRO/LRO test. RTL8139 NIC doesn't >> support TSO, LRO, it's too old, so drop offload test from rtl8139. LRO, GRO >> are only supported

[Qemu-devel] Rehabilitering

2010-08-10 Thread DokuMera Nyhetsbrev
Om du har problem med att läsa detta e-postmeddelande, klicka här (http://www.anp.se/newsletterweb/822531/444059437941455D4B7142445C43) för en webb-version. Vårt nyhetsbrev skickas automatiskt till våra kunder och intressenter. Vill du inte ha detta nyhetsbrev framöver, klicka här för att avpre

[Qemu-devel] Re: [Autotest] [RFC PATCH 05/14] KVM-test: Add a subtest jumbo

2010-08-10 Thread Amos Kong
On Tue, Jul 27, 2010 at 10:13 PM, Lucas Meneghel Rodrigues wrote: > On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: >> According to different nic model set different MTU for it. And ping from >> guest >> to host, to see whether tested size can be received by host. >> >> Signed-off-by: Jason W