Re: [Qemu-devel] [PATCH 5/6] Do constant folding for shift operations.

2011-05-26 Thread Richard Henderson
On 05/26/2011 12:14 PM, Blue Swirl wrote: On Thu, May 26, 2011 at 4:56 PM, Richard Henderson r...@twiddle.net wrote: On 05/26/2011 05:36 AM, Kirill Batuzov wrote: x = (int32_t)x (int32_t)y; This expression has an implementation-defined behavior accroding to C99 6.5.7 so we decided to

Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64

2011-05-26 Thread Andreas Färber
Am 26.05.2011 um 21:00 schrieb Stefan Berger: With the below patch I can build either ppc (-m32) or ppc64 (-m64) versions of Qemu (on a ppc64 host) when passing these compiler flags via 'configure ... --extra-cflags=-m32'. You probably meant without passing? Nack. Please don't hardcode

Re: [Qemu-devel] [PATCH v5 01/25] scsi: add tracing of scsi requests

2011-05-26 Thread Blue Swirl
On Thu, May 26, 2011 at 1:56 PM, Paolo Bonzini pbonz...@redhat.com wrote: Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Christoph Hellwig h...@lst.de ---  hw/scsi-bus.c |    6 ++  trace-events  |    6 ++  2 files changed, 12 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] Booting custom kernel in qemu

2011-05-26 Thread Apelete Seketeli
Hello, I'm trying to boot a custom linux kernel in qemu, and I plan to contribute the necessary work to make it work (this is the first step I'm taking to add OS support in qemu). I'm totally new to qemu, and I haven't found enough information to know how to start debugging the thing, so I

Re: [Qemu-devel] [PATCH 5/6] Do constant folding for shift operations.

2011-05-26 Thread Blue Swirl
On Thu, May 26, 2011 at 11:10 PM, Richard Henderson r...@twiddle.net wrote: On 05/26/2011 12:14 PM, Blue Swirl wrote: On Thu, May 26, 2011 at 4:56 PM, Richard Henderson r...@twiddle.net wrote: On 05/26/2011 05:36 AM, Kirill Batuzov wrote:   x = (int32_t)x (int32_t)y; This expression has an

Re: [Qemu-devel] Multi heterogenous CPU archs for SoC sim?

2011-05-26 Thread Blue Swirl
On Thu, May 26, 2011 at 11:07 PM, Lluís xscr...@gmx.net wrote: Blue Swirl writes: On Wed, May 25, 2011 at 10:20 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 25 May 2011 19:44, Greg McGary greg.mcg...@gmail.com wrote: I would like to create a QEMU model of an SoC that has several CPU

Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64

2011-05-26 Thread Stefan Berger
On 05/26/2011 04:20 PM, Andreas Färber wrote: Am 26.05.2011 um 21:00 schrieb Stefan Berger: With the below patch I can build either ppc (-m32) or ppc64 (-m64) versions of Qemu (on a ppc64 host) when passing these compiler flags via 'configure ... --extra-cflags=-m32'. You probably meant

Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64

2011-05-26 Thread malc
On Thu, 26 May 2011, Stefan Berger wrote: On 05/26/2011 04:20 PM, Andreas F?rber wrote: Am 26.05.2011 um 21:00 schrieb Stefan Berger: With the below patch I can build either ppc (-m32) or ppc64 (-m64) versions of Qemu (on a ppc64 host) when passing these compiler flags via

Re: [Qemu-devel] [PATCH 05/18] ide: Turn debug messages into assertions

2011-05-26 Thread Luiz Capitulino
On Thu, 19 May 2011 14:33:19 +0200 Kevin Wolf kw...@redhat.com wrote: These printfs aren't really debug messages, but clearly indicate a bug if they ever become effective. Then we have a bug somewhere, starting a VM with: # qemu -hda disks/test.img -enable-kvm -m 1G -cdrom /dev/sr0 Where

Re: [Qemu-devel] [PATCH 5/6] Do constant folding for shift operations.

2011-05-26 Thread Richard Henderson
On 05/26/2011 01:25 PM, Blue Swirl wrote: I don't see the point. The C99 implementation defined escape hatch exists for weird cpus. Which we won't be supporting as a QEMU host. Maybe not, but a compiler with this property could arrive. For example, GCC developers could decide that since

Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64

2011-05-26 Thread Andreas Färber
Am 26.05.2011 um 22:31 schrieb Stefan Berger: On 05/26/2011 04:20 PM, Andreas Färber wrote: Am 26.05.2011 um 21:00 schrieb Stefan Berger: With the below patch I can build either ppc (-m32) or ppc64 (-m64) versions of Qemu (on a ppc64 host) when passing these compiler flags via 'configure

Re: [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c

2011-05-26 Thread Alexander Graf
Am 26.05.2011 um 20:50 schrieb Stefan Berger stef...@linux.vnet.ibm.com: Below patch fixes the following error when building on a ppc host: cc1: warnings being treated as errors /root/qemu/qemu-git/target-ppc/kvm.c: In function kvm_arch_get_registers:

Re: [Qemu-devel] [PATCH] target-ppc: Fix compilation error with --enable-debug

2011-05-26 Thread Alexander Graf
Am 26.05.2011 um 20:28 schrieb Stefan Weil w...@mail.berlios.de: Am 26.05.2011 20:05, schrieb Peter Maydell: The PPC helper functions booke206_tlbflush and booke_setpid both take an i32 argument, so we need to use TCGv_i32 rather than TCGv, to avoid a compilation failure when compiling in

Re: [Qemu-devel] [PATCH 00/12] target-s390x: Several small fixes

2011-05-26 Thread Andreas Färber
Am 26.05.2011 um 00:17 schrieb Alexander Graf: On 26.05.2011, at 00:10, Peter Maydell wrote: On 25 May 2011 21:25, Stefan Weil w...@mail.berlios.de wrote: Feel free to combine patches if larger patches are preferred. I'd vote for combining at least 03..12, having nine patches all of which

Re: [Qemu-devel] [PATCH] host-pcc: enable building with -m32 or -m64

2011-05-26 Thread Stefan Berger
On 05/26/2011 05:24 PM, Andreas Färber wrote: Am 26.05.2011 um 22:31 schrieb Stefan Berger: On 05/26/2011 04:20 PM, Andreas Färber wrote: Am 26.05.2011 um 21:00 schrieb Stefan Berger: With the below patch I can build either ppc (-m32) or ppc64 (-m64) versions of Qemu (on a ppc64 host) when

[Qemu-devel] Please help!

2011-05-26 Thread Guan, Qiang
Hi everybody Where can I find the codes for monitor command log in_asm. I want to know how QEMU monitor capture the executed instruction in ASM in a simultaneous way rather than a bunch of Logs. Thank you very much for your time. Best wishes

[Qemu-devel] [Bug 788881] [NEW] i386-bsd-user and similar crash on Mac OS X

2011-05-26 Thread Karl-Michael Schindler
Public bug reported: 0.14.1 crashes on Mac OS X 64bit with some targets (*-bsd-user): CCi386-bsd-user/cpu-exec.o /Users/michael/Downloads/qemu-0.14.1/cpu-exec.c: In function ‘cpu_x86_signal_handler’: /Users/michael/Downloads/qemu-0.14.1/cpu-exec.c:895: error: dereferencing pointer to

[Qemu-devel] [Bug 726962] Re: darwin user i386 no such directory

2011-05-26 Thread Karl-Michael Schindler
same with 0.14.1 with Mac OS X 10.6.7. target ppc-darwin-user has the same problem: CCppc-darwin-user/main.o cc1: warning: /Users/michael/Downloads/qemu-0.14.1/darwin-user/ppc: No such file or directory In file included from /Users/michael/Downloads/qemu-0.14.1/target-ppc/cpu.h:855,

Re: [Qemu-devel] [PATCH v5 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-26 Thread Josh Durgin
On 05/26/2011 01:13 AM, Kevin Wolf wrote: Am 25.05.2011 22:34, schrieb Josh Durgin: The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or conf. The conf option specifies a Ceph configuration file

Re: [Qemu-devel] [PATCH v5 4/4] rbd: Add bdrv_truncate implementation

2011-05-26 Thread Josh Durgin
On 05/26/2011 01:05 AM, Kevin Wolf wrote: Am 25.05.2011 22:34, schrieb Josh Durgin: Signed-off-by: Josh Durginjosh.dur...@dreamhost.com --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index a44d160..b95b1eb

[Qemu-devel] [PATCH v6 0/4] rbd improvements

2011-05-26 Thread Josh Durgin
This patchset moves the complexity of the rbd format into librbd and adds truncation support. Changes since v5: * compare full string, not prefix, with conf in 2/4 * when truncate fails, just return librbd's error Changes since v4: * fixed cosmetic issues pointed out by Christian Brunner

[Qemu-devel] [PATCH v6 4/4] rbd: Add bdrv_truncate implementation

2011-05-26 Thread Josh Durgin
Reviewed-by: Christian Brunner c...@muc.de Signed-off-by: Josh Durgin josh.dur...@dreamhost.com --- block/rbd.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index f4da6ab..bdc448a 100644 --- a/block/rbd.c +++ b/block/rbd.c @@

[Qemu-devel] [PATCH v6 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-26 Thread Josh Durgin
The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or conf. The conf option specifies a Ceph configuration file to read. This allows rbd volumes from more than one Ceph cluster to be used by

[Qemu-devel] [PATCH v6 1/4] rbd: use the higher level librbd instead of just librados

2011-05-26 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Reviewed-by: Christian Brunner c...@muc.de Signed-off-by: Josh Durgin josh.dur...@dreamhost.com Signed-off-by:

[Qemu-devel] [PATCH v6 3/4] rbd: check return values when scheduling aio

2011-05-26 Thread Josh Durgin
If scheduling fails, the number of outstanding I/Os must be correct, or there will be a hang when waiting for everything to be flushed. Reviewed-by: Christian Brunner c...@muc.de Reported-by: Stefan Hajnoczi stefa...@gmail.com Signed-off-by: Josh Durgin josh.dur...@dreamhost.com --- block/rbd.c

[Qemu-devel] [Bug 788886] [NEW] Crash with -m32 and gcc-4.2 on Mac OS X 64bit

2011-05-26 Thread Karl-Michael Schindler
Public bug reported: For building 32bit Qemu on Mac OS X 10.6.7 , i configure with --extra- cflags=-m32 --extra-ldflags=-m32. make with gcc-4.2 then crashes with: GEN qemu-options.def CCqemu-nbd.o gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Re: [Qemu-devel] [PATCH 1/3] Add ppc_init_cacheline_sizes() function for OpenBSD.

2011-05-26 Thread Brad
On 26/05/11 9:15 AM, malc wrote: On Thu, 26 May 2011, Brad wrote: - Original message - On Wed, 25 May 2011, Brad wrote: Add ppc_init_cacheline_sizes() function for OpenBSD to fix compilation of PowerPC host support for OpenBSD/powerpc based architectures. Signed-off-by: Brad

Re: [Qemu-devel] [Bug 788697] Re: [PowerPC] [patch] mtmsr does not preserve high bits of MSR

2011-05-26 Thread Nathan Whitehorn
On 05/26/11 11:45, agraf wrote: On 26.05.2011, at 18:09, Nathan Whitehorn wrote: ** Patch added: mtmstr.diff https://bugs.launchpad.net/bugs/788697/+attachment/2143748/+files/mtmstr.diff -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [Bug 788697] Re: [PowerPC] [patch] mtmsr does not preserve high bits of MSR

2011-05-26 Thread Alexander Graf
On 27.05.2011, at 01:33, Nathan Whitehorn wrote: On 05/26/11 11:45, agraf wrote: On 26.05.2011, at 18:09, Nathan Whitehorn wrote: ** Patch added: mtmstr.diff https://bugs.launchpad.net/bugs/788697/+attachment/2143748/+files/mtmstr.diff -- You received this bug notification because

[Qemu-devel] [Bug 720787] Re: Fails to compile on MacOS

2011-05-26 Thread Karl-Michael Schindler
Nigel's error is also topic in bug https://bugs.launchpad.net/qemu/+bug/726962 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on MacOS Status in QEMU: New Bug

Re: [Qemu-devel] [PATCH 1/3] Add ppc_init_cacheline_sizes() function for OpenBSD.

2011-05-26 Thread malc
On Thu, 26 May 2011, Brad wrote: On 26/05/11 9:15 AM, malc wrote: On Thu, 26 May 2011, Brad wrote: - Original message - On Wed, 25 May 2011, Brad wrote: Add ppc_init_cacheline_sizes() function for OpenBSD to fix compilation of PowerPC host support for

[Qemu-devel] restoring suspend to disk images from qemu-0.12.5 to qemu-014.1 fails

2011-05-26 Thread Jason Krieg
Hi, restoring previously created qemu suspend to disk images with qemu-0.14.1 or 0.14.0 fails the loop in qemu_loadvm_state() seems to fallsly match an EOF and does not proceed with the rest of the sections same problem when migrating from 0.12.5 to 0.14.x any hints/ideas ? Regars, Jason

Re: [Qemu-devel] [PATCH 00/12] target-s390x: Several small fixes

2011-05-26 Thread Stefan Weil
Am 26.05.2011 23:48, schrieb Andreas Färber: Am 26.05.2011 um 00:17 schrieb Alexander Graf: On 26.05.2011, at 00:10, Peter Maydell wrote: On 25 May 2011 21:25, Stefan Weil w...@mail.berlios.de wrote: Feel free to combine patches if larger patches are preferred. I'd vote for combining at

Re: [Qemu-devel] [PATCH 01/12] usb-linux: catch NODEV in more places.

2011-05-26 Thread Gerd Hoffmann
On 05/26/11 20:20, Markus Armbruster wrote: Gerd Hoffmannkra...@redhat.com writes: Factor out disconnect code (called when a device disappears) to a separate function. Add a check for NODEV errno to a few more places to make sure we notice disconnects. Ah, you mean ENODEV! Suddenly the

<    1   2