[Qemu-devel] KVM call agenda for Feb 16

2010-02-16 Thread Chris Wright
Please send in any agenda items you are interested in covering.

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

2010-02-16 Thread Stuart Brady
On Mon, Feb 15, 2010 at 12:19:24PM +0100, Alexander Graf wrote: So what you really want is something like #ifdef CONFIG_LINUX_USER /* exec return value is always 0 */ env-gpr[3] = 0; #endif just after the #endif in your patch. If you had inlined your patch I could've commented it

[Qemu-devel] [PATCH] rewrote timer implementation for rtl8139.

2010-02-16 Thread Frediano Ziglio
Add a QEMU timer only when needed (timeout status not set, timeout irq wanted and timer set). This patch is required for Darwin. Patch has been tested under FreeBSD, Darwin and Linux. Signed-off-by: Frediano Ziglio fredd...@gmail.com --- hw/rtl8139.c | 136

[Qemu-devel] [PATCH] Seabios e820 reservation portion v3

2010-02-16 Thread Jes Sorensen
On 02/16/10 01:43, Kevin O'Connor wrote: On Mon, Feb 15, 2010 at 06:33:59PM +0100, Jes Sorensen wrote: Hi, This is the Seabios part to match my e820 reservation via fw_cfg patch. This still has 'struct e820_entry' which is too similar to 'struct e820entry' in memmap.h. Otherwise, it looks

[Qemu-devel] Re: [PATCH] QEMU e820 reservation patch

2010-02-16 Thread Jes Sorensen
On 02/15/10 19:54, Stefano Stabellini wrote: On Mon, 15 Feb 2010, Jes Sorensen wrote: Kevin and I have agreed on the approach for this one now. So here is the latest version of the patch for QEMU, submitting e820 reservation entries via fw_cfg. I think the interface is fine and it is

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

2010-02-16 Thread Alexander Graf
On 16.02.2010, at 01:52, Rob Landley wrote: On Monday 15 February 2010 07:08:33 Michael S. Tsirkin wrote: On Mon, Feb 15, 2010 at 06:58:33AM -0600, Rob Landley wrote: On Monday 15 February 2010 05:19:24 Alexander Graf wrote: On 15.02.2010, at 12:10, Rob Landley wrote: On Sunday 14 February

[Qemu-devel] [PATCH 0/2] support for pselect in linux-user

2010-02-16 Thread Michael Casadevall
The attached patches here add support for pselect call emulation in linux-user and also add the proper entry to the ARM architecture syscall lists. There is some code duplication between do_select() and do_pselect() to handle copying the file descriptors over from the target to host; this could

[Qemu-devel] [PATCH 1/2] This patch adds support for the pselect syscall in linux-user emulation and also adds several support functions required to translate the timespec structs between the target a

2010-02-16 Thread Michael Casadevall
Signed-off-by: Michael Casadevall mcasadev...@ubuntu.com --- linux-user/syscall.c | 119 ++ 1 files changed, 119 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9fb493f..3663451 100644 ---

[Qemu-devel] [PATCH 2/2] Add the syscall id for pselect6 on ARM as this is now supported in newer linux kernels.

2010-02-16 Thread Michael Casadevall
Signed-off-by: Michael Casadevall mcasadev...@ubuntu.com --- linux-user/arm/syscall_nr.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h index b1db341..79a216a 100644 --- a/linux-user/arm/syscall_nr.h +++

[Qemu-devel] Re: KVM call agenda for Feb 16

2010-02-16 Thread Alexander Graf
On 16.02.2010, at 09:04, Chris Wright wrote: Please send in any agenda items you are interested in covering. Stable policies. How do we assure everything that belongs to -stable actually goes to -stable? Alex

Re: [Qemu-devel] Heads up: glibc preadv emulation breaks qemu on older kernels

2010-02-16 Thread Avi Kivity
On 02/16/2010 12:16 AM, Christoph Hellwig wrote: On Fri, Feb 12, 2010 at 11:28:57AM -0600, Anthony Liguori wrote: Yes. The BSDs tend to not play stupid emulation games in the libc, so changes of these kinds of messups to happen are far less. In all fairness, I seem to recall

Re: [Qemu-devel] Heads up: glibc preadv emulation breaks qemu on older kernels

2010-02-16 Thread Richard W.M. Jones
On Tue, Feb 16, 2010 at 12:41:43PM +0200, Avi Kivity wrote: On 02/16/2010 12:16 AM, Christoph Hellwig wrote: On Fri, Feb 12, 2010 at 11:28:57AM -0600, Anthony Liguori wrote: Yes. The BSDs tend to not play stupid emulation games in the libc, so changes of these kinds of messups to happen

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

2010-02-16 Thread OHMURA Kei
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 a test environment to check the impact of bswap.

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

2010-02-16 Thread Alexander Graf
On 16.02.2010, at 12:16, 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] [PATCH] qdev: Free opts on failed do_device_add

2010-02-16 Thread Kevin Wolf
If the device can't be created, don't leak the QemuOpts and release the id of the device that should have been added by the failed device_add. Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/qdev.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/qdev.c

[Qemu-devel] USB device controller emulation

2010-02-16 Thread Taimoor Mirza
Hi all, Does QEMU provide emulation for any target with USB device controller? Actually I am developing an embedded linux based device and was thinking about testing it on QEMU. BR, Taimoor

Re: [Qemu-devel] [PATCH] Fix hanging user monitor when using balloon command

2010-02-16 Thread Daniel P. Berrange
On Fri, Feb 12, 2010 at 02:55:56PM -0600, Adam Litke wrote: Arghh... Adding missing S-O-B Hi Anthony. I wonder if there was a problem when importing my async command handler patchset. Since the 'balloon' command completes immediately, it must call the completion callback before returning.

[Qemu-devel] Re: KVM call agenda for Feb 16

2010-02-16 Thread Anthony Liguori
On 02/16/2010 04:36 AM, Alexander Graf wrote: On 16.02.2010, at 09:04, Chris Wright wrote: Please send in any agenda items you are interested in covering. Stable policies. How do we assure everything that belongs to -stable actually goes to -stable? For the most part, I try

[Qemu-devel] Re: KVM call agenda for Feb 16

2010-02-16 Thread Anthony Liguori
On 02/16/2010 02:04 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. I'm not sure we'll have the right audience for this discussion, but: - macvtap vs. raw; my understanding is that we can achieve roughly the same thing with macvtap as with raw,

[Qemu-devel] [PATCH] qcow2: Fix access after end of array

2010-02-16 Thread Kevin Wolf
If a write requests crosses a L2 table boundary and all clusters until the end of the L2 table are usable for the request, we must not look at the next L2 entry because we already have arrived at the end of the array. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-cluster.c |8

Re: [Qemu-devel] [PATCH] qdev: Free opts on failed do_device_add

2010-02-16 Thread Gerd Hoffmann
On 02/16/10 13:12, Kevin Wolf wrote: If the device can't be created, don't leak the QemuOpts and release the id of the device that should have been added by the failed device_add. Acked-by: Gerd Hoffmann kra...@redhat.com cheers, Gerd

Re: [Qemu-devel] [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation.

2010-02-16 Thread Juergen Lock
On Tue, Feb 16, 2010 at 09:52:50AM +0300, malc wrote: On Mon, 15 Feb 2010, Juergen Lock wrote: On Mon, Feb 15, 2010 at 06:16:07AM +0300, malc wrote: On Sun, 14 Feb 2010, Juergen Lock wrote: Submitted by: Andreas Tobler andre...@fgznet.ch Signed-off-by: Juergen Lock

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

2010-02-16 Thread Rob Landley
On Tuesday 16 February 2010 03:31:16 Alexander Graf wrote: On 16.02.2010, at 01:52, Rob Landley wrote: If swapping the parameter was the right solution I would've submitted a patch long ago :-). Unfortunately it's not as easy. I agree that making a single controller handle four drives is a

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

2010-02-16 Thread Rob Landley
On Monday 15 February 2010 07:01:02 Alexander Graf wrote: On 15.02.2010, at 13:58, Rob Landley wrote: On Monday 15 February 2010 05:19:24 Alexander Graf wrote: On 15.02.2010, at 12:10, Rob Landley wrote: On Sunday 14 February 2010 08:41:00 Alexander Graf wrote: So the only case I can

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

2010-02-16 Thread Alexander Graf
On 16.02.2010, at 19:31, Rob Landley wrote: On Monday 15 February 2010 07:01:02 Alexander Graf wrote: On 15.02.2010, at 13:58, Rob Landley wrote: On Monday 15 February 2010 05:19:24 Alexander Graf wrote: On 15.02.2010, at 12:10, Rob Landley wrote: On Sunday 14 February 2010 08:41:00

Re: [Qemu-devel] [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation.

2010-02-16 Thread malc
On Tue, 16 Feb 2010, Juergen Lock wrote: On Tue, Feb 16, 2010 at 09:52:50AM +0300, malc wrote: On Mon, 15 Feb 2010, Juergen Lock wrote: On Mon, Feb 15, 2010 at 06:16:07AM +0300, malc wrote: On Sun, 14 Feb 2010, Juergen Lock wrote: Submitted by: Andreas Tobler

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

2010-02-16 Thread Rob Landley
On Tuesday 16 February 2010 12:36:15 Alexander Graf wrote: On 16.02.2010, at 19:31, Rob Landley wrote: Let's see, one of the lines I #ifdefed out (line 535-ish of linux- user/elfload.c) is: get_user_ual(_regs-gpr[3], pos); Rummage, rummage... get_user_ual() is a wrapper for

[Qemu-devel] Re: [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation.

2010-02-16 Thread Paolo Bonzini
Nope, not found on FreeBSD. (Also I would kinda doubt that sysctl is standardized?) _CALL_SYSV means that calling convention is SysV one, nothing to do with sysctl, and i wanted you/patch author to run it on FreeBSD/PPC... Yes, one of _CALL_SYSV, _CALL_AIX, _CALL_DARWIN is always defined

[Qemu-devel] Re: [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation.

2010-02-16 Thread Juergen Lock
On Tue, Feb 16, 2010 at 08:50:49PM +0100, Paolo Bonzini wrote: Nope, not found on FreeBSD. (Also I would kinda doubt that sysctl is standardized?) _CALL_SYSV means that calling convention is SysV one, nothing to do with sysctl, and i wanted you/patch author to run it on FreeBSD/PPC...

[Qemu-devel] Re: [PATCH 3/3] Add FreeBSD/ppc host TCG_TARGET_CALL_{ALIGN_ARGS,STACK_OFFSET} definitions.

2010-02-16 Thread Juergen Lock
On Sun, Feb 14, 2010 at 09:13:31PM +0100, Juergen Lock wrote: Submitted by: Andreas Tobler andre...@fgznet.ch Signed-off-by: Juergen Lock n...@jelal.kn-bremen.de --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -69,7 +69,7 @@ #define TCG_TARGET_CALL_STACK_OFFSET 24 #elif

[Qemu-devel] Re: [PATCH 1/3] Add FreeBSD/ppc host ppc_init_cacheline_sizes() implementation.

2010-02-16 Thread Juergen Lock
On Tue, Feb 16, 2010 at 09:34:12PM +0100, Juergen Lock wrote: On Tue, Feb 16, 2010 at 08:50:49PM +0100, Paolo Bonzini wrote: Nope, not found on FreeBSD. (Also I would kinda doubt that sysctl is standardized?) _CALL_SYSV means that calling convention is SysV one, nothing to do with

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

2010-02-16 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 3/6] tcg: Optional target implementation of ANDC.

2010-02-16 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 0/6] tcg-sparc improvements

2010-02-16 Thread Richard Henderson
All of these patches are toward reducing the number of TCG opcodes generated. Three of the patches reduce the number of real insns generated as well. The ANDC and ORC opcodes are already generated by the ARM, PPC, and Alpha translators. I now have remote access to a real debian sparc64 machine,

[Qemu-devel] [PATCH 6/6] tcg-sparc: Implement ORC.

2010-02-16 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c |5 + tcg/sparc/tcg-target.h |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index c1761cc..e8bbcdc 100644 --- a/tcg/sparc/tcg-target.c

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

2010-02-16 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 5/6] tcg-sparc: Implement ANDC.

2010-02-16 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 b876b3a..c1761cc 100644 --- a/tcg/sparc/tcg-target.c

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

2010-02-16 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 +