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

2011-05-26 Thread Kevin Wolf
Am 27.05.2011 01:07, schrieb 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: >

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

2011-05-26 Thread Kevin Wolf
Am 26.05.2011 23:12, schrieb Luiz Capitulino: > On Thu, 19 May 2011 14:33:19 +0200 > Kevin Wolf 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/t

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 Hoffmann 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 subject makes sense.

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 wrote: Feel free to combine patches if larger patches are preferred. I'd vote for combining at least 03..12, having n

[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 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 h

[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 desc

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 b

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,

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 Smith

[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 mak

[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 Reported-by: Stefan Hajnoczi Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 files changed, 20 in

[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 Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- 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 speci

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

2011-05-26 Thread Josh Durgin
Reviewed-by: Christian Brunner Signed-off-by: Josh Durgin --- 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 @@ -688,6 +688,19 @@ static int64_t qemu_rb

[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 Ch

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 Durgin --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index a44d160..b95b1eb 100644 --- a/block/rbd.c +++

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 fil

[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,

[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 inco

[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

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 p

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 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 have the same summary

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 : > 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 debug mode. >

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 : > 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: > /root/qemu/qemu-git/target-ppc/kvm.c:188: error: unused vari

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 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 si

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 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 the host's CDROM

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] 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 "w

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 wrote: > Blue Swirl writes: > >> On Wed, May 25, 2011 at 10:20 PM, Peter Maydell >> wrote: >>> On 25 May 2011 19:44, Greg McGary wrote: I would like to create a QEMU model of an SoC that has several CPU cores having different architectures.  I'm

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 wrote: > On 05/26/2011 12:14 PM, Blue Swirl wrote: >> On Thu, May 26, 2011 at 4:56 PM, Richard Henderson wrote: >>> On 05/26/2011 05:36 AM, Kirill Batuzov wrote: >   x = (int32_t)x >> (int32_t)y; > This expression has an implementat

[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 thought

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 wrote: > Signed-off-by: Paolo Bonzini > Reviewed-by: Christoph Hellwig > --- >  hw/scsi-bus.c |    6 ++ >  trace-events  |    6 ++ >  2 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c > index ce

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 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 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 em

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

2011-05-26 Thread Andreas Färber
Am 25.05.2011 um 20:44 schrieb Greg McGary: I would like to create a QEMU model of an SoC that has several CPU cores having different architectures. I'm guessing this can be done. In theory, many things are possible. In practice, it's a matter of manhours you're willing to invest. Without

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

2011-05-26 Thread Lluís
Blue Swirl writes: > On Wed, May 25, 2011 at 10:20 PM, Peter Maydell > wrote: >> On 25 May 2011 19:44, Greg McGary wrote: >>> I would like to create a QEMU model of an SoC that has several >>> CPU cores having different architectures.  I'm guessing this >>> can be done. >> >> It's not supported

Re: [Qemu-devel] [PATCH 0/6] target-arm: reduce usage of global env

2011-05-26 Thread Peter Maydell
On 25 May 2011 17:00, Peter Maydell wrote: > This patchset is largely aimed at rolling back the changes from an > earlier patchset of mine: > http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg00244.html Some of these patches include the same TCGv_i32/_ptr error fixed in http://patchwork.ozl

Re: [Qemu-devel] [PATCH 0/6] target-arm: reduce usage of global env

2011-05-26 Thread Peter Maydell
On 26 May 2011 20:01, Blue Swirl wrote: > On Wed, May 25, 2011 at 7:00 PM, Peter Maydell > wrote: >> This obviously still leaves some global CPUState use in op_helper.c, >> but it's a move in the right direction. > > Have you seen any measurable changes in performance? The discussion > about the

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

2011-05-26 Thread Stefan Berger
On 05/26/2011 03:14 PM, malc wrote: On Thu, 26 May 2011, Stefan Berger wrote: 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"'. Signed-off-by: Stefan Berger --- c

Re: [Qemu-devel] [PATCH 0/3]: QMP: Introduce inject-nmi command

2011-05-26 Thread Blue Swirl
On Thu, May 26, 2011 at 8:25 PM, Markus Armbruster wrote: > Luiz Capitulino writes: > >> On Fri, 6 May 2011 18:36:31 +0300 >> Blue Swirl wrote: >> >>> On Fri, May 6, 2011 at 12:08 PM, Markus Armbruster >>> wrote: >>> > Blue Swirl writes: >>> > >>> >> On Mon, May 2, 2011 at 6:57 PM, Luiz Capit

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

2011-05-26 Thread Blue Swirl
On Thu, May 26, 2011 at 4:56 PM, Richard Henderson 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 emulate signed shifts by hand. > > Technically, yes

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: > 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"'. > > Signed-off-by: Stefan Berger > > --- > configure |9 +++

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

2011-05-26 Thread Blue Swirl
On Wed, May 25, 2011 at 10:20 PM, Peter Maydell wrote: > On 25 May 2011 19:44, Greg McGary wrote: >> I would like to create a QEMU model of an SoC that has several >> CPU cores having different architectures.  I'm guessing this >> can be done. > > It's not supported currently as far as I'm aware.

Re: [Qemu-devel] [PATCH 0/6] target-arm: reduce usage of global env

2011-05-26 Thread Blue Swirl
On Wed, May 25, 2011 at 7:00 PM, Peter Maydell wrote: > This patchset is largely aimed at rolling back the changes from an > earlier patchset of mine: > http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg00244.html > which made various Neon helper routines use the correct FP status > flags by

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

2011-05-26 Thread 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"'. Signed-off-by: Stefan Berger --- configure |9 - 1 file changed, 8 insertions(+), 1 deletion(-) Inde

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

2011-05-26 Thread Stefan Berger
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: /root/qemu/qemu-git/target-ppc/kvm.c:188: error: unused variable sregs Signed-off-by: Stefan Berger --- target-ppc

Re: [Qemu-devel] dynamically linked binaries under sparc-linux-user

2011-05-26 Thread Blue Swirl
On Tue, May 24, 2011 at 10:42 PM, Artyom Tarasenko wrote: > Should it be possible to use dynamically linked binaries under > sparc*-linux-user? > Under qemu-system-sparc the Debian 4.08r1 initrd works fine, but: > > master$ sparc-linux-user/qemu-sparc -strace -L > ../debian-4.08r1-initrd/ ../debia

Re: [Qemu-devel] [PATCH] ppc: Fix compilation for ppc64-softmmu

2011-05-26 Thread Peter Maydell
On 21 May 2011 09:31, Alexander Graf wrote: > On 20.05.2011, at 22:30, Stefan Weil wrote: >> 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 norma

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

2011-05-26 Thread Peter Maydell
On 26 May 2011 19:28, Stefan Weil wrote: > 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 debug mode. > See ht

[Qemu-devel] block bug: tray status is not updated (and/or guest ignores it)

2011-05-26 Thread Luiz Capitulino
I'm testing with qemu.git (HEAD aa29141d84d), procedure: 1. Start a VM with: # qemu -hda disks/test.img -enable-kvm -m 1G -cdrom Fedora-14-x86_64-DVD.iso 2. Then inside the guest run: # eject /dev/sr0 && mount /dev/sr0 /mnt Results: Actual: The cdrom is successfully mounted Expected: The

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

2011-05-26 Thread Stefan Weil
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 debug mode. Signed-off-by: Peter Maydell --- target-ppc/translate_init

Re: [Qemu-devel] [PATCH] Buildfix: fix libcacard build with -m32 on 64bit machine

2011-05-26 Thread Alon Levy
On Thu, May 26, 2011 at 01:56:54PM -0400, Stefan Berger wrote: > When configuring with --extra-cflags="-m32" on a 64bit machine the > following error appears during compilation: Thanks for the fix. Reviewed-by: Alon Levy > > make -C libhw64 V="1" TARGET_DIR="libhw64/" all > make[1]: Entering

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

2011-05-26 Thread Markus Armbruster
Gerd Hoffmann 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 subject makes sense. Fix it up? [...]

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

2011-05-26 Thread 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 debug mode. Signed-off-by: Peter Maydell --- target-ppc/translate_init.c |8 1 files changed, 4 insert

[Qemu-devel] [PATCH] Buildfix: fix libcacard build with -m32 on 64bit machine

2011-05-26 Thread Stefan Berger
When configuring with --extra-cflags="-m32" on a 64bit machine the following error appears during compilation: make -C libhw64 V="1" TARGET_DIR="libhw64/" all make[1]: Entering directory `/root/tmp/qemu-git/libhw64' make[1]: Leaving directory `/root/tmp/qemu-git/libhw64' make -C libcacard V="1

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

2011-05-26 Thread Stefan Weil
Am 26.05.2011 13:03, schrieb Peter Maydell: 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 --- Apologies for the build breakage. target-arm/translate.c | 18 +- 1 fil

Re: [Qemu-devel] [PATCH 0/3]: QMP: Introduce inject-nmi command

2011-05-26 Thread Markus Armbruster
Luiz Capitulino writes: > On Fri, 6 May 2011 18:36:31 +0300 > Blue Swirl wrote: > >> On Fri, May 6, 2011 at 12:08 PM, Markus Armbruster wrote: >> > Blue Swirl writes: >> > >> >> On Mon, May 2, 2011 at 6:57 PM, Luiz Capitulino >> >> wrote: >> >>> On Sat, 30 Apr 2011 09:33:15 +0300 >> >>> Blue

[Qemu-devel] [Bug 788734] [NEW] vmwgfx does not work in Linux guest in kvm

2011-05-26 Thread Michal Suchanek
Public bug reported: loading the vmwgfx module of kernel 2.6.39-rc7 in kvm 0.14 results in [drm:vmw_driver_load] *ERROR* Hardware has no pitchlock and the kernel module fails. Consequently vmwgfx is broken, only the vmwlegacy driver works. ** Affects: qemu Importance: Undecided S

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

2011-05-26 Thread Alexander Graf
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 subscribed to QEMU. > https://

[Qemu-devel] [Bug 788701] Re: qemu-user fails to run rpcgen (i386, x86_64)

2011-05-26 Thread Rafał Krypa
** Summary changed: - qem-user fails to run rpcgen (i386, x86_64) + qemu-user fails to run rpcgen (i386, x86_64) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/788701 Title: qemu-user fails to run

[Qemu-devel] [PATCH] hw/9118.c: Implement active-low interrupt support

2011-05-26 Thread Peter Maydell
The 9118 ethernet controller interrupt line is active low unless the IRQ config register is programmed to set both the IRQ_POL (polarity: active-high) and IRQ_TYPE (type: push-pull) bits: implement support for inverting the irq output in other configurations. This also requires that we support sett

[Qemu-devel] [Bug 788701] [NEW] qem-user fails to run rpcgen (i386, x86_64)

2011-05-26 Thread Rafał Krypa
Public bug reported: Confirmed on qemu current development tree (git commit aa29141). While trying to run eglibc's rpcgen from native system by qemu-user, I get an error: qemu-x86_64 /usr/bin/rpcgen -c /dev/null fork: Invalid argument I am running a Debian Wheezy system and rpcgen comes from li

[Qemu-devel] [Bug 788701] Re: qem-user fails to run rpcgen (i386, x86_64)

2011-05-26 Thread Rafał Krypa
** Attachment added: "rpcgen.tar.bz2" https://bugs.launchpad.net/bugs/788701/+attachment/2143749/+files/rpcgen.tar.bz2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/788701 Title: qem-user fails

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

2011-05-26 Thread Nathan Whitehorn
** 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 subscribed to QEMU. https://bugs.launchpad.net/bugs/788697 Title: [PowerPC] [patch] mtmsr do

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

2011-05-26 Thread Nathan Whitehorn
Public bug reported: The mtmsr instruction on 64-bit PPC does not preserve the high-order 32-bits of the MSR the way it is supposed to, instead setting them to 0, which takes 64-bit code out of 64-bit mode. There is some code that does the right thing, but it brokenly only preserves these bits whe

[Qemu-devel] [PATCH] xen: fix interrupt routing

2011-05-26 Thread Stefano Stabellini
xen: fix interrupt routing - remove i440FX-xen and i440fx_write_config_xen we don't need to intercept pci config writes to i440FX anymore; - introduce PIIX3-xen and piix3_write_config_xen we do need to intercept pci config write to the PCI-ISA bridge to update the PCI link routing; - set the num

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

2011-05-26 Thread Richard Henderson
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 emulate signed shifts by hand. Technically, yes. In practice, no. GCC, ICC, LLVM, MSVC all know what the user wan

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: > - 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 Smith > >

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

2011-05-26 Thread Brad
- 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 Smith > > > > --- > > cache-utils.c |    11 +--

Re: [Qemu-devel] [PATCH 1/2] QMP: add get_events(wait=True) option

2011-05-26 Thread Luiz Capitulino
On Thu, 26 May 2011 09:03:49 +0100 Stefan Hajnoczi wrote: > On Wed, May 25, 2011 at 10:15 PM, Luiz Capitulino > wrote: > > On Wed, 25 May 2011 19:48:00 +0100 > > Stefan Hajnoczi wrote: > > > >> The get_events() function polls for new QMP events and then returns.  It > >> can be useful to wait f

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

2011-05-26 Thread Kirill Batuzov
On Fri, 20 May 2011, Richard Henderson wrote: > > On 05/20/2011 05:39 AM, Kirill Batuzov wrote: > > +case INDEX_op_sar_i32: > > +#if TCG_TARGET_REG_BITS == 64 > > +x &= 0x; > > +y &= 0x; > > +#endif > > +r = x & 0x8000; > > +x &= ~0x80

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

2011-05-26 Thread malc
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 Smith > > --- > cache-utils.c | 11 +-- > 1 files changed, 9 insertions(+), 2 deletions

[Qemu-devel] [PATCH v5 20/25] scsi: make write_data return void

2011-05-26 Thread Paolo Bonzini
The return value is unused anyway. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-disk.c|6 ++ hw/scsi-generic.c |7 ++- hw/scsi.h |2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c inde

[Qemu-devel] [PATCH v5 05/25] scsi-generic: do not use a stale aiocb

2011-05-26 Thread Paolo Bonzini
If a request is canceled after it has been completed, scsi_cancel_io would pass a stale aiocb to bdrv_aio_cancel. Avoid this. Signed-off-by: Paolo Bonzini Cc: Christoph Hellwig --- hw/scsi-generic.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/scsi-generic.c b/

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

2011-05-26 Thread Peter Maydell
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 --- Apologies for the build breakage. target-arm/translate.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) di

[Qemu-devel] [PATCH v5 24/25] scsi: rename arguments to the new callbacks

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Cc: Christoph Hellwig --- hw/esp.c | 10 +- hw/lsi53c895a.c | 20 ++-- hw/spapr_vscsi.c | 31 ++- hw/usb-msd.c | 10 +- 4 files changed, 34 insertions(+), 37 deletions(-) diff --git a/h

[Qemu-devel] [PATCH v5 21/25] scsi-generic: Handle queue full

2011-05-26 Thread Paolo Bonzini
The sg driver currently has a hardcoded limit of commands it can handle simultaneously. When this limit is reached the driver will return -EDOM. So we need to capture this to enable proper return values here. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hell

[Qemu-devel] [PATCH v5 23/25] scsi: split command_complete callback in two

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Cc: Christoph Hellwig --- hw/esp.c | 62 ++--- hw/lsi53c895a.c | 60 ++-- hw/scsi-bus.c|4 +- hw/scsi.h|9 + hw/spapr_vscsi.c | 101 ++---

[Qemu-devel] [PATCH v5 18/25] scsi: Implement 'get_sense' callback

2011-05-26 Thread Paolo Bonzini
From: Hannes Reinecke The get_sense callback copies existing sense information into the provided buffer. This is required if sense information should be transferred together with the command response. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig -

[Qemu-devel] [PATCH v5 08/25] scsi: Use 'SCSIRequest' directly

2011-05-26 Thread Paolo Bonzini
From: Hannes Reinecke Currently the SCSIRequest structure is abstracted away and cannot accessed directly from the driver. This requires the handler to do a lookup on an abstract 'tag' which identifies the SCSIRequest structure. With this patch the SCSIRequest structure is exposed to the driver.

[Qemu-devel] [PATCH v5 22/25] esp: rename sense to status

2011-05-26 Thread Paolo Bonzini
This mirrors the LSI patch that was recently committed. Signed-off-by: Paolo Bonzini Cc: Christoph Hellwig --- hw/esp.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index cd6dfc7..7af20a8 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -61,7 +61,

[Qemu-devel] [PATCH v5 25/25] scsi: ignore LUN field in the CDB

2011-05-26 Thread Paolo Bonzini
The LUN field in the CDB is a historical relic. Ignore it as reserved, which is what modern SCSI specifications actually say. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-disk.c|6 +++--- hw/scsi-generic.c |5 ++--- 2 files changed, 5 insertions(+), 6 del

[Qemu-devel] [PATCH v5 17/25] scsi: introduce scsi_req_get_buf

2011-05-26 Thread Paolo Bonzini
... and remove some SCSIDevice variables or fields that now become unused. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/esp.c |2 +- hw/lsi53c895a.c |2 +- hw/scsi-bus.c|5 + hw/scsi.h|1 + hw/spapr_vscsi.c |8 ++-- hw/usb-m

[Qemu-devel] [PATCH v5 16/25] scsi: introduce scsi_req_continue

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Cc: Christoph Hellwig --- hw/esp.c | 26 ++ hw/lsi53c895a.c | 22 -- hw/scsi-bus.c| 16 +--- hw/scsi.h|1 + hw/spapr_vscsi.c | 26 ++ hw/usb-msd.c |

[Qemu-devel] [PATCH v5 19/25] scsi-disk: add data direction checking

2011-05-26 Thread Paolo Bonzini
From: Hannes Reinecke scsi_req_parse() already provides for a data direction setting, so we should be using it to check for correct direction. And we should return the sense code 'INVALID FIELD IN CDB' in these cases. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini Reviewed-by: Chr

[Qemu-devel] [PATCH v5 14/25] scsi: do not call send_command directly

2011-05-26 Thread Paolo Bonzini
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/esp.c |2 +- hw/lsi53c895a.c |2 +- hw/scsi-bus.c |9 - hw/scsi-disk.c|1 - hw/scsi-generic.c |1 - hw/scsi

[Qemu-devel] [PATCH v5 12/25] scsi: use scsi_req_complete

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-generic.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index c008e9c..229d24f 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -290,7 +290,6 @@ s

[Qemu-devel] [PATCH v5 15/25] scsi: introduce scsi_req_new

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/esp.c |2 +- hw/lsi53c895a.c |3 +-- hw/scsi-bus.c|5 + hw/scsi.h|1 + hw/spapr_vscsi.c |2 +- hw/usb-msd.c |2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v5 13/25] scsi: Update sense code handling

2011-05-26 Thread Paolo Bonzini
From: Hannes Reinecke The SCSI spec has a quite detailed list of sense codes available. It even mandates the use of specific ones for some failure cases. The current implementation just has one type of generic error which is actually a violation of the spec in certain cases. This patch introduces

[Qemu-devel] [PATCH v5 10/25] scsi: introduce scsi_req_abort

2011-05-26 Thread Paolo Bonzini
This covers the case of canceling a request's I/O and still completing it. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-bus.c|9 + hw/scsi.h|1 + hw/spapr_vscsi.c |8 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --gi

[Qemu-devel] [PATCH v5 04/25] scsi: introduce SCSIBusOps

2011-05-26 Thread Paolo Bonzini
There are more operations than a SCSI bus can handle, besides completing commands. One example, which this series will introduce, is cleaning up after a request is cancelled. More long term, a "SCSI bus" can represent the LUNs attached to a target; in this case, while all commands will ultimately

[Qemu-devel] [PATCH v5 11/25] scsi: introduce scsi_req_cancel

2011-05-26 Thread Paolo Bonzini
This is for when the request must be dropped in the void, but still memory should be freed. To this end, the devices register a second callback in SCSIBusOps. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/esp.c | 16 ++-- hw/lsi53c895a.c | 30 +++

[Qemu-devel] [PATCH v5 07/25] lsi: extract lsi_find_by_tag

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/lsi53c895a.c | 63 +- 1 files changed, 38 insertions(+), 25 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 704e8ad..1ebcde7 100644 --- a/hw/lsi53c895a.c ++

[Qemu-devel] [PATCH v5 06/25] scsi: reference-count requests

2011-05-26 Thread Paolo Bonzini
With the next patch, a device may hold SCSIRequest for an indefinite time. Split a rather big patch, and protect against access errors, by reference counting them. There is some ugliness in scsi_send_command implementation due to the need to unref the request when it fails. This will go away wit

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

2011-05-26 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-bus.c |6 ++ trace-events |6 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index ceeb4ec..0fd85fc 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -4,6 +4

[Qemu-devel] [PATCH v5 09/25] scsi: commonize purging requests

2011-05-26 Thread Paolo Bonzini
The code for canceling requests upon reset is already the same. Clean it up and move it to scsi-bus.c. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-bus.c | 12 hw/scsi-disk.c| 18 ++ hw/scsi-generic.c | 18 ++

[Qemu-devel] [PATCH v5 02/25] scsi-generic: Remove bogus double complete

2011-05-26 Thread Paolo Bonzini
scsi-generic scsi_read_complete() should not -both- call the client complete callback with SCSI_REASON_DATA -and- call scsi_command_complete(). The former will cause the client to queue a new read or write request, while the later will free the request data structure, thus causing the new read or

[Qemu-devel] [PATCH v5 03/25] scsi: introduce scsi_req_data

2011-05-26 Thread Paolo Bonzini
This abstracts calling the command_complete callback, reducing churn in the following patches. Signed-off-by: Paolo Bonzini Reviewed-by: Christoph Hellwig --- hw/scsi-bus.c | 11 +++ hw/scsi-disk.c|8 hw/scsi-generic.c |6 +++--- hw/scsi.h |1 + tr

  1   2   >