Re: [Qemu-devel] Re: [PATCH v2] qemu-kvm: Speed up of the dirty-bitmap-traveling

2010-02-18 Thread Alexander Graf
On 18.02.2010, at 06:57, OHMURA Kei wrote: We think? I mean - yes, I think so too. But have you actually measured it? How much improvement are we talking here? Is it still faster when a bswap is involved? Thanks for pointing out. I will post the data for x86 later. However, I don't have

[Qemu-devel] Re: [PATCH 1/3] qcow2: Factor next_refcount_table_size out

2010-02-18 Thread Juan Quintela
Kevin Wolf kw...@redhat.com wrote: When the refcount table grows, it doesn't only grow by one entry but reserves some space for future refcount blocks. The algorithm to calculate the number of entries stays the same with the fixes, so factor it out before replacing the rest. Signed-off-by:

[Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Artyom Tarasenko
2010/2/17 Rob Landley r...@landley.net: On Wednesday 17 February 2010 09:45:48 Paolo Bonzini wrote: On 02/17/2010 10:24 AM, Artyom Tarasenko wrote: I've also got a bunch of sort of working, but not well enough to run builds natively under targets on top of that (arm big endian, sh4,

Re: [Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Artyom Tarasenko
2010/2/17 Blue Swirl blauwir...@gmail.com: On Wed, Feb 17, 2010 at 8:55 PM, Rob Landley r...@landley.net wrote: On Wednesday 17 February 2010 09:45:48 Paolo Bonzini wrote: On 02/17/2010 10:24 AM, Artyom Tarasenko wrote: I've also got a bunch of sort of working, but not well enough to run

[Qemu-devel] Re: [PATCH 2/3] qcow2: Rewrite alloc_refcount_block/grow_refcount_table

2010-02-18 Thread Juan Quintela
Kevin Wolf kw...@redhat.com wrote: +/* Find the refcount block for the given cluster */ +refcount_table_index = cluster_index (s-cluster_bits - REFCOUNT_SHIFT); +if (refcount_table_index = s-refcount_table_size) { +refcount_block_offset = 0; +} else { +

[Qemu-devel] Re: [PATCH 3/3] qcow2: More checks for qemu-img check

2010-02-18 Thread Juan Quintela
Kevin Wolf kw...@redhat.com wrote: Implement some more refcount block related checks Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com

Re: [Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Rob Landley
On Wednesday 17 February 2010 14:46:15 Blue Swirl wrote: Alas the image has no hint how to reproduce it. Doesn't say what toolchain it was built with, what kernel .config was used, and so on. (The arm one at least had /proc/config.gz...) Well, actually if you mount -t proc proc

[Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Rob Landley
On Thursday 18 February 2010 05:21:16 Artyom Tarasenko wrote: 2010/2/17 Rob Landley r...@landley.net: qemu-sparc can decently run debian-40r8: gcc and all the other stuff seem to work. Most versions of the NetBSD boot. Some require the original OBP though. The only known to me version which

Re: [Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Rob Landley
On Thursday 18 February 2010 05:38:01 Artyom Tarasenko wrote: 2010/2/17 Blue Swirl blauwir...@gmail.com: On Wed, Feb 17, 2010 at 8:55 PM, Rob Landley r...@landley.net wrote: On Wednesday 17 February 2010 09:45:48 Paolo Bonzini wrote: On 02/17/2010 10:24 AM, Artyom Tarasenko wrote: I've

[Qemu-devel] [patch uq/master 2/4] qemu: kvm specific wait_io_event

2010-02-18 Thread Marcelo Tosatti
In KVM mode the global mutex is released when vcpus are executing, which means acquiring the fairness mutex is not required. Also for KVM there is one thread per vcpu, so tcg_has_work is meaningless. Add a new qemu_wait_io_event_common function to hold common code between TCG/KVM.

[Qemu-devel] [patch uq/master 4/4] qemu: kvm: remove pre-entry exit_request check with iothread enabled

2010-02-18 Thread Marcelo Tosatti
With SIG_IPI blocked vcpu loop exit notification happens via -EAGAIN from KVM_RUN. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu/kvm-all.c === --- qemu.orig/kvm-all.c +++ qemu/kvm-all.c @@ -753,11 +753,13 @@ int

[Qemu-devel] [patch uq/master 3/4] qemu: kvm: consume internal signal with sigtimedwait

2010-02-18 Thread Marcelo Tosatti
Change the way the internal qemu signal, used for communication between iothread and vcpus, is handled. Block and consume it with sigtimedwait on the outer vcpu loop, which allows more precise timing control. Change from standard signal (SIGUSR1) to real-time one, so multiple signals are not

Re: [Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Artyom Tarasenko
2010/2/18 Rob Landley r...@landley.net: On Thursday 18 February 2010 05:38:01 Artyom Tarasenko wrote: 2010/2/17 Blue Swirl blauwir...@gmail.com: On Wed, Feb 17, 2010 at 8:55 PM, Rob Landley r...@landley.net wrote: On Wednesday 17 February 2010 09:45:48 Paolo Bonzini wrote: On 02/17/2010

[Qemu-devel] Re: qemu-ppc can't run static uClibc binaries.

2010-02-18 Thread Artyom Tarasenko
2010/2/18 Rob Landley r...@landley.net: On Thursday 18 February 2010 05:21:16 Artyom Tarasenko wrote: 2010/2/17 Rob Landley r...@landley.net: qemu-sparc can decently run debian-40r8: gcc and all the other stuff seem to work. Most versions of the NetBSD boot. Some require the original OBP

[Qemu-devel] How to get 64-bit MMIO?

2010-02-18 Thread Dmitry Antipov
Hello all, is there any support for 64-bit MMIO? I'm trying to emulate 16750-like UART by adopting current 16550A emulation. The problem is that my (MIPS) hardware is 64-bit, and native software issues 64-bit load/stores (LD/SD) to talk with all hardware registers, which are all 64-bit too (for

[Qemu-devel] Errors while building qemu

2010-02-18 Thread Taimoor Mirza
Hi all, I've been getting following errors while building qemu 0.11.1 and 0.12.2 on my Redhat machine. block/curl.c:80: error: syntax error before curl_socket_t block/curl.c:82: warning: function declaration isn't a prototype block/curl.c: In function `curl_sock_cb': block/curl.c:84: error:

Re: [Qemu-devel] [PATCH] tcg: Add consistency checks for op definitions

2010-02-18 Thread Blue Swirl
Thanks, applied. On Mon, Feb 15, 2010 at 6:17 PM, Stefan Weil w...@mail.berlios.de wrote: When compiled with CONFIG_DEBUG_TCG, this code looks for missing, duplicate and wrong entries in the op definitions. Errors will raise an assertion at program start (all checks are done in the initial

[Qemu-devel] [PATCH] QMP: Spec: Private Extensions support

2010-02-18 Thread Luiz Capitulino
Vendors might want to add their own extensions to QMP, as JSON itself (and several other protocols) allow this someway, I think QMP should allow too. We just have to choose a naming convention that is guaranteed not to clash with any future new commands, arguments, parameters and event names.

[Qemu-devel] [PATCH v2 1/2] remove dead m68k definitions

2010-02-18 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-m68k/exec.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-m68k/exec.h b/target-m68k/exec.h index 1267bb6..ece9aa0 100644 --- a/target-m68k/exec.h +++ b/target-m68k/exec.h @@ -20,10 +20,6 @@ #include

[Qemu-devel] [PATCH v2 2/2] get rid of hostregs_helper.h

2010-02-18 Thread Paolo Bonzini
Since b567b38 (target-arm: remove T0 and T1, 2009-10-16) the only global register that is used is AREG0, so the complexity of hostregs_helper.h is unused. Use regular assignments and a compiler optimization barrier. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- v1-v2: added QEMU

[Qemu-devel] Re: [PATCH v2 2/2] get rid of hostregs_helper.h

2010-02-18 Thread Blue Swirl
Thanks, applied both. On Thu, Feb 18, 2010 at 10:25 PM, Paolo Bonzini pbonz...@redhat.com wrote: Since b567b38 (target-arm: remove T0 and T1, 2009-10-16) the only global register that is used is AREG0, so the complexity of hostregs_helper.h is unused.  Use regular assignments and a compiler

Re: [Qemu-devel] How to get 64-bit MMIO?

2010-02-18 Thread Blue Swirl
On Thu, Feb 18, 2010 at 4:41 PM, Dmitry Antipov anti...@mvista.com wrote: Hello all, is there any support for 64-bit MMIO? No, though there has been some discussion about it before which you can find in the archives. 64 bit MMIO would be useful for Sparc32, Sparc64 and Alpha. I'm trying to

Re: [Qemu-devel] [PATCH] QMP: Spec: Private Extensions support

2010-02-18 Thread Anthony Liguori
On 02/18/2010 02:24 PM, Luiz Capitulino wrote: Vendors might want to add their own extensions to QMP, as JSON itself (and several other protocols) allow this someway, I think QMP should allow too. We just have to choose a naming convention that is guaranteed not to clash with any future new

[Qemu-devel] [PATCH] virtio-spec: document block CMD and FLUSH

2010-02-18 Thread Michael S. Tsirkin
I took a stub at documenting CMD and FLUSH request types in virtio block. Christoph, could you look over this please? I note that the interface seems full of warts to me, this might be a first step to cleaning them. One issue I struggled with especially is how type field mixes bits and non-bit

[Qemu-devel] [PATCH 2/7] tcg-sparc: Implement not.

2010-02-18 Thread Richard Henderson
The fallback implementation of ret = arg1 ^ -1 isn't ideal because of the extra tcg op to load the minus one. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c |6 ++ tcg/sparc/tcg-target.h |2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 4/7] tcg: Optional target implementation of ORC.

2010-02-18 Thread Richard Henderson
Previously ORC was always implemented by tcg-op.h with an explicit NOT opcode. Allow a target implementation. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/tcg-op.h | 11 +++ tcg/tcg-opc.h |6 ++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 1/7] tcg-sparc: Implement neg.

2010-02-18 Thread Richard Henderson
The fallback implementation of ret = 0 - arg1 isn't ideal, first because of the extra tcg op to load the zero, and second because we fail to handle zero as %g0 for arg1 of the sub. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c | 13 +

[Qemu-devel] [PATCH 3/7] tcg: Optional target implementation of ANDC.

2010-02-18 Thread Richard Henderson
Previously ANDC was always implemented by tcg-op.h with an explicit NOT opcode. Allow a target implementation. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/tcg-op.h | 11 +++ tcg/tcg-opc.h |6 ++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 5/7] tcg-sparc: Implement ANDC.

2010-02-18 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c |6 ++ tcg/sparc/tcg-target.h |2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 55c74af..1ea474d 100644 --- a/tcg/sparc/tcg-target.c

[Qemu-devel] [PATCH 7/7] tcg: Add comments for all optional instructions not implemented.

2010-02-18 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/arm/tcg-target.h| 14 ++ tcg/i386/tcg-target.h | 12 +++- tcg/mips/tcg-target.h |4 +++- tcg/ppc/tcg-target.h| 10 +- tcg/ppc64/tcg-target.h | 25 ++---

[Qemu-devel] [PATCH 0/7] tcg-sparc improvements, v2

2010-02-18 Thread Richard Henderson
Changes since v1: * Add comments for all optional instructions that aren't implemented on each architecture, as requested. * Rebase vs master. r~ Richard Henderson (7): tcg-sparc: Implement neg. tcg-sparc: Implement not. tcg: Optional target implementation of ANDC. tcg: Optional

[Qemu-devel] [PATCH] QEMU kill CR3_CACHE references

2010-02-18 Thread Jes Sorensen
Hi, The CR3 caching was never implemented in QEMU and is obsoleted by NPT/EPT. This patch removes the unused references to it from target-i386/kvm.c. Cheers, Jes commit 5ed16687929511d015dd3542c4359cabe170401a Author: Jes Sorensen jes.soren...@redhat.com Date: Fri Feb 19 07:39:56 2010 +0100