Re: [Qemu-devel] [PATCH] linux-user: Define AT_RANDOM to support target dynamic linkers that do ASLR

2011-06-03 Thread cedric.vincent
On Wed, Jun 01, 2011 at 05:33:55PM +0200, Richard Henderson wrote: On 06/01/2011 06:47 AM, cedric.vinc...@st.com wrote: On Wed, Jun 01, 2011 at 03:26:09PM +0200, Richard Henderson wrote: 16 bytes, not 16 bits. You're right it's not 16 bits, it's sizeof(uintptr_t) actually: No, it's

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-03 Thread Zhi Yong Wu
On Thu, Jun 2, 2011 at 5:33 PM, Michal Suchanek hramr...@centrum.cz wrote: On 1 June 2011 05:12, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: On Tue, May 31, 2011 at 03:55:49PM -0400, Vivek Goyal wrote: Date: Tue, 31 May 2011 15:55:49 -0400 From: Vivek Goyal vgo...@redhat.com To: Zhi Yong Wu

Re: [Qemu-devel] [PULL v5 00/25] SCSI subsystem improvements

2011-06-03 Thread Paolo Bonzini
On 06/02/2011 04:54 PM, Andreas Färber wrote: Unfortunately that pulled in the v5 version, breaking simple trace build. Paolo, do you have differential patches for your v6 already? Yes, sending them today. Paolo

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Thu, Jun 02, 2011 at 03:01:24PM -0300, Luiz Capitulino wrote: On Thu, 02 Jun 2011 09:02:30 -0500 Anthony Liguori anth...@codemonkey.ws wrote: On 06/02/2011 08:24 AM, Jiri Denemark wrote: On Thu, Jun 02, 2011 at 08:08:35 -0500, Anthony Liguori wrote: On 06/02/2011 04:06 AM, Daniel P.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] Hello Would You Like To Earn

2011-06-03 Thread Jenny . Smith
Hello qemu-devel Would you like to earn an extra $200 everyday?, for just 45 minutes work? You could quit your job and make double the money at home working for yourself. visit-http:tinyurl.com/3ot9sgy Regards, Jenny Smith Survey Human Resources Dept.

[Qemu-devel] [PATCH 2/5] PPC: fix sregs usage on booke

2011-06-03 Thread Alexander Graf
When compiling qemu with kvm support on BookE PPC machines, I get the following error: cc1: warnings being treated as errors /tmp/qemu/target-ppc/kvm.c: In function 'kvm_arch_get_registers': /tmp/qemu/target-ppc/kvm.c:188: error: unused variable 'sregs' This is due to overly ambitious

[Qemu-devel] [PATCH 3/5] PPC: install mpc8544ds.dtb

2011-06-03 Thread Alexander Graf
We don't install mpc8544ds.dtb, which means that -M mpc8544ds doesn't work when installed. Fix it by installing the file. Signed-off-by: Alexander Graf ag...@suse.de --- Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 2b0438c..b6466e7

[Qemu-devel] [PATCH 5/5] PPC: fix mpc8544ds pci default devices

2011-06-03 Thread Alexander Graf
After the Qdev'ification of the MPC8544DS board and PCI bus, the internal PCI bus name changed from pci to pci.0. Reflect this change in the search for that bus. This patch enables networking on e500 guests again. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppce500_mpc8544ds.c |2 +-

[Qemu-devel] [PULL 0/5] PPC patch queue June 03 2011

2011-06-03 Thread Alexander Graf
Howdy, This is my current PPC patch queue, containing a compile fix for ppc64 and some fixes I've come along while trying to get the e500 target working in autotest. Please pull. The following changes since commit 578c7b2ca8ee9e97fa8693b1a83d517e8e3f962e: Juha Riihim?ki (1): audio:

[Qemu-devel] [PATCH 12/13] s390x: fix cksm instruction

2011-06-03 Thread Alexander Graf
The cksm instruction was implemented incorrectly, rendering UDP and TCP checksum calculation wrong, making an emulated s390x Linux guest break in most networking operations. This patch fixes odd end checksum calculation, takes the input register as input for the checksum and optimizes the

[Qemu-devel] [PATCH 09/13] target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x90

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

[Qemu-devel] [PATCH 4/5] Fix segfault on screendump with -nographic

2011-06-03 Thread Alexander Graf
When running -nographic and calling screendump on the monitor, qemu segfaults. Fix the invalid pointer dereference by checking for NULL. Signed-off-by: Alexander Graf ag...@suse.de --- console.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index

[Qemu-devel] [PATCH 04/13] target-s390x: Fix duplicate call of tcg_temp_new_i64

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de tmp2 = tcg_temp_new_i64() is already executed unconditionally, so there is no need to call it a second time for 64 bit hosts. Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |1 -

[Qemu-devel] [PATCH 07/13] target-s390x: Add missing tcg_temp_free_i64() in disas_b2()

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

[Qemu-devel] [PATCH 03/13] target-s390x: Fix wrong argument in call of tcg_gen_shl_i64()

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de tcg_gen_shl_i64 needs a 3rd argument of type TCGv_i64. Set tmp4 so it can be used here. v2: Don't call tcg_const_i64() inside of the loop because it creates additional code. Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 1/5] ppc: Fix compilation for ppc64-softmmu

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de When QEMU was configured with --enable-debug-tcg, compilation fails in spr_write_booke206_mmucsr0() and in spr_write_booke_pid(). Similar changes are also needed in conditional code which is normally unused. Cc: Alexander Graf ag...@suse.de Signed-off-by:

[Qemu-devel] [PATCH 05/13] target-s390x: Add missing tcg_temp_free_i64() in gen_jcc()

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

[Qemu-devel] [PATCH 10/13] target-s390x: Add missing tcg_temp_free_i32()

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

[Qemu-devel] [PULL 00/13] s390x patch queue June 03 2011

2011-06-03 Thread Alexander Graf
Hi, This is my current patch queue for s390x related work. It contains: * compile fixes * add temp_frees where missing * fix LMH, CKSM instructions * update bootloader for increased bootup speed * implement LRVGR instruction With these patches, networking finally works for emulated

[Qemu-devel] [PATCH 11/13] s390x: free tmp explicitly in every opcode for disas_a5()

2011-06-03 Thread Alexander Graf
The disas_a5() function provided a TCG tmp variable which was populated by the respective opcode implementations, but freed at the end of the function in generic code. That makes it really hard for code review, so let's move the freeing to the same scope as the actual allocation. Signed-off-by:

[Qemu-devel] [PATCH 08/13] target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x8e

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

[Qemu-devel] [PATCH 01/13] s390x: update zipl rom

2011-06-03 Thread Alexander Graf
The zipl bootloader rom we have has seen some dramatic speedups upstream, so let's update it to improve the experience when booting a guest image. This binary is based on commit id 9a0842dd9823d529f721b418d554f17c72e009e3. Signed-off-by: Alexander Graf ag...@suse.de --- pc-bios/s390-zipl.rom |

[Qemu-devel] [PATCH 02/13] target-s390x: Fix build for non-linux hosts

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de linux/kvm.h is not always available for compilation. Neither linux/kvm.h nor kvm.h are needed, so remove both which also fixes the build problem for non-linux hosts. Cc: Alexander Graf ag...@suse.de Signed-off-by: Stefan Weil w...@mail.berlios.de

[Qemu-devel] [PATCH 13/13] s390x: implement lrvgr

2011-06-03 Thread Alexander Graf
The LRVGR instruction was missing. Implement it, so everyone's happy. Reported-by: Balazs Kutil bku...@novell.com Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c

[Qemu-devel] [PATCH 06/13] target-s390x: Add missing tcg_temp_free_i64() in do_mh()

2011-06-03 Thread Alexander Graf
From: Stefan Weil w...@mail.berlios.de Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Alexander Graf ag...@suse.de --- target-s390x/translate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Anthony Liguori
On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: On Thu, Jun 02, 2011 at 03:01:24PM -0300, Luiz Capitulino wrote: On Thu, 02 Jun 2011 09:02:30 -0500 Anthony Liguorianth...@codemonkey.ws wrote: On 06/02/2011 08:24 AM, Jiri Denemark wrote: On Thu, Jun 02, 2011 at 08:08:35 -0500, Anthony

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: On Thu, Jun 02, 2011 at 03:01:24PM -0300, Luiz Capitulino wrote: On Thu, 02 Jun 2011 09:02:30 -0500 Anthony Liguorianth...@codemonkey.ws wrote: On 06/02/2011 08:24 AM, Jiri

[Qemu-devel] [PATCH] scsi: fix tracing of scsi requests with simple backend

2011-06-03 Thread Paolo Bonzini
The simple backend only supports a maximum of 6 arguments. Split the scsi_req_parsed event in two parts to cope with the limit. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c |6 +- trace-events |3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Anthony Liguori
On 06/03/2011 07:57 AM, Daniel P. Berrange wrote: On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: errors stop a guest) instead of trying to model an internal QEMU concept (vm_stop()). If you have other user visible concepts

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 08:26:56AM -0500, Anthony Liguori wrote: On 06/03/2011 07:57 AM, Daniel P. Berrange wrote: On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: On 06/03/2011 04:26 AM, Daniel P. Berrange wrote: errors stop a guest) instead of trying to model an internal QEMU

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Jan Kiszka
On 2011-06-03 15:26, Anthony Liguori wrote: I think what we're getting at is the need for an enumeration. So let's introduce one. Here's what I propose: SQMP query-status Return a json-object with the following information: - running: true if the VM is running, or false

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Luiz Capitulino
On Fri, 3 Jun 2011 14:39:41 +0100 Daniel P. Berrange berra...@redhat.com wrote: On Fri, Jun 03, 2011 at 08:26:56AM -0500, Anthony Liguori wrote: On 06/03/2011 07:57 AM, Daniel P. Berrange wrote: On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony Liguori wrote: On 06/03/2011 04:26 AM, Daniel

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Anthony Liguori
On 06/03/2011 08:41 AM, Jan Kiszka wrote: On 2011-06-03 15:26, Anthony Liguori wrote: I think what we're getting at is the need for an enumeration. So let's introduce one. Here's what I propose: SQMP query-status Return a json-object with the following information: - running:

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Anthony Liguori
On 06/03/2011 08:44 AM, Luiz Capitulino wrote: On Fri, 3 Jun 2011 14:39:41 +0100 Daniel P. Berrangeberra...@redhat.com wrote: On Fri, Jun 03, 2011 at 08:26:56AM -0500, Anthony Liguori wrote: On 06/03/2011 07:57 AM, Daniel P. Berrange wrote: On Fri, Jun 03, 2011 at 07:43:24AM -0500, Anthony

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Jan Kiszka
On 2011-06-03 15:51, Anthony Liguori wrote: On 06/03/2011 08:41 AM, Jan Kiszka wrote: On 2011-06-03 15:26, Anthony Liguori wrote: I think what we're getting at is the need for an enumeration. So let's introduce one. Here's what I propose: SQMP query-status Return a

Re: [Qemu-devel] QMP: RFC: I/O error info query-stop-reason

2011-06-03 Thread Daniel P. Berrange
On Fri, Jun 03, 2011 at 08:51:29AM -0500, Anthony Liguori wrote: On 06/03/2011 08:41 AM, Jan Kiszka wrote: On 2011-06-03 15:26, Anthony Liguori wrote: I think what we're getting at is the need for an enumeration. So let's introduce one. Here's what I propose: SQMP query-status

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-03 Thread Eduardo Habkost
(CCing Marcelo, Avi, and kvm mailing list, so they can help answering the uq/master patch flow question) On Fri, Jun 03, 2011 at 12:51:42AM +0200, Jan Kiszka wrote: On 2011-06-02 21:34, Eduardo Habkost wrote: Ouch, the subject prefix is completely wrong because of broken git-send-email

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-03 Thread Jan Kiszka
On 2011-06-03 16:38, Eduardo Habkost wrote: (CCing Marcelo, Avi, and kvm mailing list, so they can help answering the uq/master patch flow question) On Fri, Jun 03, 2011 at 12:51:42AM +0200, Jan Kiszka wrote: On 2011-06-02 21:34, Eduardo Habkost wrote: Ouch, the subject prefix is completely

Re: [Qemu-devel] [PATCH v2 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Wednesday 01 June 2011 12:28:06 Vasily Khoruzhick wrote: Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: codestyle fixes hw/framebuffer.c |2 +

[Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: codestyle fixes v3: fix dpy_update calls for 180 and 360 deg. rotation. hw/framebuffer.c |2 + hw/pxa2xx_lcd.c |

Re: [Qemu-devel] [PATCH v3 1/2] pxa2xx_lcd: add proper rotation support

2011-06-03 Thread Vasily Khoruzhick
On Friday 03 June 2011 18:36:36 Vasily Khoruzhick wrote: Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: codestyle fixes v3: fix dpy_update calls for 180 and 360

[Qemu-devel] [PATCH v3 2/2] Add support for Zipit Z2 machine

2011-06-03 Thread Vasily Khoruzhick
Zipit Z2 is small PXA270 based handheld. Signed-off-by: Vasily Khoruzhick anars...@gmail.com --- v2: codestyle fixes, added VMStateDescription for LCD device and AER915, traces clean up. v3: no changes Makefile.target |1 + hw/z2.c | 352

[Qemu-devel] [PATCH] cirrus_vga: reset lfb_addr after a pci config write if the BAR is unmapped

2011-06-03 Thread stefano.stabellini
From: Stefano Stabellini stefano.stabell...@eu.citrix.com If the cirrus_vga PCI BAR is unmapped than we should not only reset map_addr but also lfb_addr, otherwise we'll keep trying to map the old lfb_addr in map_linear_vram. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com ---

[Qemu-devel] [PATCH] xen: avoid tracking the region 0xa0000 - 0xbffff

2011-06-03 Thread stefano.stabellini
From: Stefano Stabellini stefano.stabell...@eu.citrix.com Xen can only do dirty bit tracking for one memory region, so we should explicitly avoid trying to track the legacy VGA region between 0xa and 0xb, rather than trying and failing. Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH v3] configure: Don't create symlinks to nonexistent targets

2011-06-03 Thread Peter Maydell
When we create the symlinks to source tree files, don't create them if the file is not actually present in the source tree; this will happen if the file is in a git submodule that wasn't checked out. This also avoids the odd effect where an in-source-tree configure will end up creating the

Re: [Qemu-devel] [PATCH] target-arm: Fix compilation failure for 64 bit hosts

2011-06-03 Thread Aurelien Jarno
On Thu, May 26, 2011 at 12:03:36PM +0100, Peter Maydell wrote: Use the correct _ptr aliases for manipulating the pointer to the fp_status; this fixes a compilation failure on 64 bit hosts. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- Apologies for the build breakage.

Re: [Qemu-devel] [PULL 0/5] PPC patch queue June 03 2011

2011-06-03 Thread Aurelien Jarno
On Thu, Jun 02, 2011 at 08:32:58AM +0200, Alexander Graf wrote: Howdy, This is my current PPC patch queue, containing a compile fix for ppc64 and some fixes I've come along while trying to get the e500 target working in autotest. Please pull. Done. The following changes since commit

Re: [Qemu-devel] [PATCH-v3 1/2] tcg: Fix unused-but-set-variable warning

2011-06-03 Thread Aurelien Jarno
On Tue, May 31, 2011 at 09:53:48AM +0200, Christophe Fergeau wrote: Based on a patch from Hans de Goede hdego...@redhat.com This warning is new in gcc 4.6. Acked-by: Amit Shah amit.s...@redhat.com Signed-off-by: Christophe Fergeau cferg...@redhat.com --- tcg/tcg.c |4 ++-- 1 files

Re: [Qemu-devel] [PULL 00/13] s390x patch queue June 03 2011

2011-06-03 Thread Aurelien Jarno
On Thu, Jun 02, 2011 at 08:51:30AM +0200, Alexander Graf wrote: Hi, This is my current patch queue for s390x related work. It contains: * compile fixes * add temp_frees where missing * fix LMH, CKSM instructions * update bootloader for increased bootup speed * implement LRVGR

Re: [Qemu-devel] [PATCH 2/3] Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.

2011-06-03 Thread Aurelien Jarno
On Wed, May 25, 2011 at 11:06:00PM -0400, Brad wrote: Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures. Signed-off-by: Brad Smith b...@comstyle.com --- tcg/mips/tcg-target.h |

Re: [Qemu-devel] [PATCH] PPC: E500: Implement reboot controller

2011-06-03 Thread Scott Wood
On Thu, 2 Jun 2011 13:57:50 +0200 Alexander Graf ag...@suse.de wrote: diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts index 872152d..9b95bfd 100644 --- a/pc-bios/mpc8544ds.dts +++ b/pc-bios/mpc8544ds.dts @@ -82,6 +82,12 @@ compatible = chrp,open-pic;

Re: [Qemu-devel] [PATCH 0/2] tcg: If DEBUG_TCGV, distinguish TCGv_ptr from TCGv_i32/TCGv_i64

2011-06-03 Thread Aurelien Jarno
On Fri, May 27, 2011 at 01:12:11PM +0100, Peter Maydell wrote: This patch series enhances the type checking of TCG values done when compiling with debugging enabled, so that it can detect confusion of TCGv_ptr values with whichever of TCGv_i32 and TCGv_i64 corresponds to the pointer-width type

Re: [Qemu-devel] ARM: BKPT instructions should raise prefetch aborts with IFSR type 00010

2011-06-03 Thread Aurelien Jarno
On Wed, May 18, 2011 at 12:00:46PM +0200, Alex Zuepke wrote: Hi, Peter Maydell schrieb: On 25 March 2011 10:54, Alex Zuepke azue...@sysgo.com wrote: while digging through some problems with BKPT exceptions on ARM, I discovered that QEMU does not update IFSR on prefetch aborts. This

Re: [Qemu-devel] [PATCH] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
On 03.06.2011, at 19:00, Scott Wood wrote: On Thu, 2 Jun 2011 13:57:50 +0200 Alexander Graf ag...@suse.de wrote: diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts index 872152d..9b95bfd 100644 --- a/pc-bios/mpc8544ds.dts +++ b/pc-bios/mpc8544ds.dts @@ -82,6 +82,12 @@

[Qemu-devel] [PATCH] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
When Linux reboots an e500 VM, it writes to a magic register in the global-utilities device indicated by the device tree. We were not emulating that device so far, renedering the VM reboot-less. This patch implements that device with only the reboot functionality implemented and adds it to the

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread riku voipio
On 05/18/2011 03:14 AM, Mike Frysinger wrote: Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it using existing newselect code. There is a blackfin qemu? Anyways, with this patch pselect01 ltp testcase starts failing. Looks like (at

Re: [Qemu-devel] [PATCH] PPC: E500: Implement reboot controller

2011-06-03 Thread Alexander Graf
On 03.06.2011, at 19:00, Scott Wood wrote: On Thu, 2 Jun 2011 13:57:50 +0200 Alexander Graf ag...@suse.de wrote: diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts index 872152d..9b95bfd 100644 --- a/pc-bios/mpc8544ds.dts +++ b/pc-bios/mpc8544ds.dts @@ -82,6 +82,12 @@

[Qemu-devel] [RFC 00/10]: QMP/HMP: Introduce tray handling commands

2011-06-03 Thread Luiz Capitulino
In a recent discussion on the mailing list regarding the introduction of the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events[1], it was mentioned that we need to fix the eject command and maybe introduce new commands first. Here's a my proposal. This series introduces three new commands: o

[Qemu-devel] [RFC 07/10] QMP: Introduce the blockdev-media-insert command

2011-06-03 Thread Luiz Capitulino
This command inserts a new media in an already opened tray. It's only available in QMP. Please, check the command's documentation (being introduced in this commit) for a detailed description. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- blockdev.c | 52

[Qemu-devel] [RFC 08/10] QMP: Introduce the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events

2011-06-03 Thread Luiz Capitulino
They are emitted when the tray is opened or closed, either by the guest or by monitor commands. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- QMP/qmp-events.txt | 30 ++ block.c| 22 ++ monitor.c |6 ++

[Qemu-devel] [RFC 04/10] HMP: info block: Print the 'tray-open' key

2011-06-03 Thread Luiz Capitulino
It's printed before the [not inserted] or the file fields, like this: (qemu) info block ide0-hd0: removable=0 file=disks/test.img ro=0 drv=qcow2 encrypted=0 ide1-cd0: removable=1 locked=0 tray-open=0 file=/Fedora-14-x86_64-DVD.iso ro=1 drv=raw encrypted=0 floppy0: removable=1 locked=0

[Qemu-devel] [RFC 01/10] block: bdrv_eject(): Add 'force' parameter

2011-06-03 Thread Luiz Capitulino
It's purpose is to skip the media locked test. This is going to be used by the blockdev-tray-open QMP command. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c|4 ++-- block.h|2 +- block/raw.c|2 +- hw/ide/atapi.c |2 +- hw/scsi-disk.c |2

[Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command

2011-06-03 Thread Luiz Capitulino
This command opens a removable media drive's tray. It's only available in QMP. The do_tray_open() function is split into two smaller functions because next commits will also use them. Please, check the command's documentation (being introduced in this commit) for a detailed description. XXX:

[Qemu-devel] [RFC 09/10] QMP/HMP: eject: Use blockdev-tray-open

2011-06-03 Thread Luiz Capitulino
This commit rewrites eject as a special case of the blockdev-tray-open command. In other words, do_eject() just calls tray_open(). This brings the following behavior *changes* to both QMP and HMP: 1. Before this commit eject was capable of closing the BlockDriverState associated with *any*

[Qemu-devel] [RFC 02/10] block: Rename bdrv_mon_event()

2011-06-03 Thread Luiz Capitulino
Rename it to bdrv_error_mon_event() in order to better communicate its purpose. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c |4 ++-- block.h |4 ++-- hw/ide/core.c |6 +++--- hw/scsi-disk.c |6 +++--- hw/virtio-blk.c |6 +++--- 5 files

[Qemu-devel] [RFC 10/10] QMP/HMP: change: Use QMP tray commands

2011-06-03 Thread Luiz Capitulino
This commit rewrites change in terms of blockdev-tray-open, blockdev-media-insert and blockdev-tray-close. There should be no visible changes in HMP or QMP, except that the use of this command causes the BLOCK_TRAY_OPEN *and* BLOCK_TRAY_CLOSE events to emitted. Signed-off-by: Luiz Capitulino

[Qemu-devel] [RFC 03/10] QMP: query-block: Add the 'tray-open' key

2011-06-03 Thread Luiz Capitulino
As its name implies this new key informs the device's tray status to clients. It's only present if the device is a removable one. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c |5 + qmp-commands.hx |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-)

[Qemu-devel] [RFC 06/10] QMP: Introduce the blockdev-tray-close command

2011-06-03 Thread Luiz Capitulino
This command closes a removable media drive's tray. It's only available in QMP. Please, check the command's documentation (being introduced in this commit) for a detailed description. XXX: Should we return an error if the tray is already closed? Signed-off-by: Luiz Capitulino

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread Aurelien Jarno
On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: pulse/simple.h does not include stdlib.h We cannot use NULL since it may not be defined Use 0 instead I am unable to reproduce this issue, even with gcc-4.6. Also please note that NULL is defined in stddef.h, not stdlib.h.

Re: [Qemu-devel] [PATCH v3] hw/pc: Support system flash memory with -pflash parameter

2011-06-03 Thread Aurelien Jarno
Ping? Cc:ed Anthony the maintainer of pc.c On Mon, Apr 18, 2011 at 10:46:40AM +0200, Aurelien Jarno wrote: On Thu, Mar 31, 2011 at 11:25:26AM -0700, Jordan Justen wrote: If -pflash is specified and -bios is specified then pflash will be mapped just below the system rom using

Re: [Qemu-devel] [PATCH] multiboot: set boot_device to first partition

2011-06-03 Thread Aurelien Jarno
On Thu, Apr 28, 2011 at 04:11:11PM +0200, Arun Thomas wrote: The multiboot info struct's 'boot_device' field has 'part1' set to 0x01, which maps to the second primary partition. To specify the first primary partition, 'part1' should be set to 0x00, since partition numbers start from zero

Re: [Qemu-devel] [PATCH] target-arm: Move VLD/VST multiple into helper functions

2011-06-03 Thread Aurelien Jarno
On Mon, May 02, 2011 at 05:01:24PM +0100, Peter Maydell wrote: On 20 April 2011 15:52, Peter Maydell peter.mayd...@linaro.org wrote: Move VLD/VST multiple into helper functions, as some cases can generate more TCG ops than the maximum per-instruction limit and certainly more than the

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread Mike Frysinger
On Fri, Jun 3, 2011 at 14:10, riku voipio wrote: On 05/18/2011 03:14 AM, Mike Frysinger wrote: Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect).  So add support for it using existing newselect code. There is a blackfin qemu? i posted it to the list for

[Qemu-devel] [PATCH v2] linux-user: add pselect6 syscall support

2011-06-03 Thread Mike Frysinger
Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - handle null sigptr in a valid 6th sig struct linux-user/syscall.c | 149

Re: [Qemu-devel] [RESEND2 PATCH] exec: Implement qemu_ram_free_from_ptr()

2011-06-03 Thread Aurelien Jarno
On Tue, May 03, 2011 at 12:48:09PM -0600, Alex Williamson wrote: Required for regions mapped via qemu_ram_alloc_from_ptr(). VFIO and ivshmem will make use of this to remove mappings when devices are hot unplugged. Signed-off-by: Alex Williamson alex.william...@redhat.com --- Trying to

Re: [Qemu-devel] [PATCH] virtio-9p: Remove statement without effect (fix warning from cppcheck)

2011-06-03 Thread Aurelien Jarno
On Sat, May 07, 2011 at 10:23:49PM +0200, Stefan Weil wrote: cppcheck report: virtio-9p.c:197: warning: Redundant assignment of flags to itself Cc: Venkateswararao Jujjuri jv...@linux.vnet.ibm.com Signed-off-by: Stefan Weil w...@mail.berlios.de --- hw/9pfs/virtio-9p.c |1 - 1 files

Re: [Qemu-devel] [PATCH] configure: check for -Wendif-labels support

2011-06-03 Thread Aurelien Jarno
On Tue, May 17, 2011 at 05:08:43PM -0400, Mike Frysinger wrote: Older gcc compilers do not support -Wendif-labels, so move it from the hardcoded list to the dynamically detected list. Signed-off-by: Mike Frysinger vap...@gentoo.org --- configure |4 ++-- 1 files changed, 2

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread malc
On Fri, 3 Jun 2011, Aurelien Jarno wrote: On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: pulse/simple.h does not include stdlib.h We cannot use NULL since it may not be defined Use 0 instead I am unable to reproduce this issue, even with gcc-4.6. Also please note

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread Aurelien Jarno
On Sat, Jun 04, 2011 at 01:57:23AM +0400, malc wrote: On Fri, 3 Jun 2011, Aurelien Jarno wrote: On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: pulse/simple.h does not include stdlib.h We cannot use NULL since it may not be defined Use 0 instead I am

Re: [Qemu-devel] [PATCH v3] hw/pc: Support system flash memory with -pflash parameter

2011-06-03 Thread Jordan Justen
On Fri, Jun 3, 2011 at 13:36, Aurelien Jarno aurel...@aurel32.net wrote: Ping? Cc:ed Anthony the maintainer of pc.c Sorry, I've been meaning to rebase this and add your reviewed-by. Would that be the right next step in this case? -Jordan On Mon, Apr 18, 2011 at 10:46:40AM +0200, Aurelien

[Qemu-devel] [PATCH v2][ 07/21] qapi: add qapi-commands.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi command marshaling/dispatch. Currently only generators for synchronous qapi/qmp functions are supported. This script generates the following files: $(prefix)qmp-marshal.c: command marshal/dispatch functions for each QMP command

[Qemu-devel] [PATCH v2][ 01/21] Add hard build dependency on glib

2011-06-03 Thread Michael Roth
From: Anthony Liguori aligu...@us.ibm.com GLib is an extremely common library that has a portable thread implementation along with tons of other goodies. GLib and GObject have a fantastic amount of infrastructure we can leverage in QEMU including an object oriented programming infrastructure.

[Qemu-devel] [PATCH v2][ 21/21] qapi: add QAPI code generation documentation

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt

[Qemu-devel] [QAPI+QGA 2/3] QAPI code generation infrastructure v2

2011-06-03 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set1-v1, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v2 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the

[Qemu-devel] [PATCH v2][ 03/21] qapi: add module init types for qapi

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- module.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK,

[Qemu-devel] [PATCH v2][ 10/21] qapi: add QMP input visiter

2011-06-03 Thread Michael Roth
A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this to pull out QMP command parameters recieved over the wire and pass them as native arguments to the corresponding C functions.

[Qemu-devel] [PATCH v4][ 7/7] guest agent: Makefile, build qemu-ga

2011-06-03 Thread Michael Roth
This allows us to build qemu-ga with make qemu-ga. It pulls in the qemu-tools deps, but does not currently build by default. This may change to avoid bitrot and help with host-side-only unit tests. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- Makefile | 22 +-

[Qemu-devel] [PATCH v2][ 02/21] qlist: add qlist_first()/qlist_next()

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..cd2d23e 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include qobject.h #include qemu-queue.h #include

[Qemu-devel] [PATCH v2][ 05/21] qapi: add qapi-types.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types defined in the schema you pass in $(prefix)qapi-types.c - Cleanup functions for the above C types The $(prefix) is used to as a

[Qemu-devel] [PATCH v2][ 11/21] qapi: add QMP output visiter

2011-06-03 Thread Michael Roth
Type of Visiter class that serves as the inverse of the input visiter: it takes a series of native C types and uses their values to construct a corresponding QObject. The command marshaling/dispatcher functions will use this to convert the output of QMP functions into a QObject that can be sent

[Qemu-devel] [PATCH v2][ 04/21] qapi: add ordereddict/qapi.py helper libraries

2011-06-03 Thread Michael Roth
Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- scripts/ordereddict.py | 128 ++ scripts/qapi.py| 181 2 files changed, 309 insertions(+), 0 deletions(-) create mode 100644

Re: [Qemu-devel] [PATCH] qemu-kvm: fix pulseaudio detection in configure

2011-06-03 Thread malc
On Sat, 4 Jun 2011, Aurelien Jarno wrote: On Sat, Jun 04, 2011 at 01:57:23AM +0400, malc wrote: On Fri, 3 Jun 2011, Aurelien Jarno wrote: On Fri, Apr 29, 2011 at 05:59:19PM +0200, Marc-Antoine Perennou wrote: pulse/simple.h does not include stdlib.h We cannot use NULL since it

[Qemu-devel] [PATCH v2][ 12/21] qapi: add QAPI dealloc visiter

2011-06-03 Thread Michael Roth
Type of Visiter class that can be passed into a qapi-generated C type's visiter function to free() any heap-allocated data types. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi/qapi-dealloc-visiter.c | 127 +++ qapi/qapi-dealloc-visiter.h

[Qemu-devel] [PATCH v2][ 16/21] qapi: test schema used for unit tests

2011-06-03 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qapi-schema-test.json | 16 1 files changed, 16 insertions(+), 0

[Qemu-devel] [PATCH v2][ 06/21] qapi: add qapi-visit.py code generator

2011-06-03 Thread Michael Roth
This is the code generator for qapi visiter functions used to marshal/unmarshal/dealloc qapi types. It generates the following 2 files: $(prefix)qapi-visit.c: visiter function for a particular c type, used to automagically convert qobjects into the

  1   2   >