[Qemu-devel] [PATCH] mips_fulong2e: Detect format errors for function prom_set

2010-09-11 Thread Stefan Weil
Add the necessary gcc attribute and fix the detected errors. Cc: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Stefan Weil w...@mail.berlios.de --- hw/mips_fulong2e.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c

[Qemu-devel] [PATCH] mips_malta: Detect format errors for function prom_set

2010-09-11 Thread Stefan Weil
Add the necessary gcc attribute and fix the detected errors. Cc: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Stefan Weil w...@mail.berlios.de --- hw/mips_malta.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index

[Qemu-devel] Re: [PATCH 0/2] PowerPC fixes

2010-09-11 Thread Edgar E. Iglesias
On Sat, Sep 11, 2010 at 03:08:32AM +0200, Alexander Graf wrote: There goes another round of PowerPC fixes. Originally this should only have been a fix for the MSR_POW issue (bug 608107), but I also stumbed over recent Linux kernels not booting in qemu-system-ppc64. So a fix for that is also

[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread Stefan Hajnoczi
On Fri, Sep 10, 2010 at 10:47 PM, H. Peter Anvin h...@linux.intel.com wrote: diff --git a/hw/usb-audio.c b/hw/usb-audio.c new file mode 100644 index 000..d4cf488 --- /dev/null +++ b/hw/usb-audio.c @@ -0,0 +1,702 @@ +/* + * QEMU USB Net devices + * + * Copyright (c) 2006 Thomas Sailer

[Qemu-devel] [PATCH] Cocoa: Avoid missing prototype warnings for qemu_main

2010-09-11 Thread Andreas Färber
In vl.c main is redefined to qemu_main but no prototype is available. Move it into qemu-common.h since it is needed in ui/cocoa.m, too. Adjust the call sites to the signature used in vl.c. Signed-off-by: Andreas Färber andreas.faer...@web.de --- qemu-common.h |4 ui/cocoa.m|5

Re: [Qemu-devel] [PATCH 1/2] PPC: Enable hint bits for lwarx/ldarx

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 03:08 schrieb Alexander Graf: The lwarx and ldarx instructions have a bit to give some hint to the CPU which is safe to ignore. We currently refuse to accept any instruction with that bit set, as it used to be declared MBZ. Let's remove the reserved bit and make the

[Qemu-devel] Re: [PATCH 0/2] PowerPC fixes

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 09:12, Edgar E. Iglesias wrote: On Sat, Sep 11, 2010 at 03:08:32AM +0200, Alexander Graf wrote: There goes another round of PowerPC fixes. Originally this should only have been a fix for the MSR_POW issue (bug 608107), but I also stumbed over recent Linux kernels not

[Qemu-devel] [PATCH] Prefer posix_madvise() over madvise()

2010-09-11 Thread Andreas Färber
From: Andreas Färber afaer...@opensolaris.org vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. The underlying issue is that madvise() is not a POSIX function, therefore Solaris' _POSIX_C_SOURCE suppresses the prototype.

[Qemu-devel] Re: [PATCH 0/2] PowerPC fixes

2010-09-11 Thread Edgar E. Iglesias
On Sat, Sep 11, 2010 at 12:30:50PM +0200, Alexander Graf wrote: On 11.09.2010, at 09:12, Edgar E. Iglesias wrote: On Sat, Sep 11, 2010 at 03:08:32AM +0200, Alexander Graf wrote: There goes another round of PowerPC fixes. Originally this should only have been a fix for the MSR_POW issue

[Qemu-devel] Re: [PATCH] Prefer posix_madvise() over madvise()

2010-09-11 Thread Blue Swirl
On Sat, Sep 11, 2010 at 11:51 AM, Andreas Färber andreas.faer...@web.de wrote: From: Andreas Färber afaer...@opensolaris.org vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. The underlying issue is that madvise() is not a

[Qemu-devel] [PATCH] powerpc: Avoid TLB related log spamming

2010-09-11 Thread Edgar E. Iglesias
Invalid TLB entries are normal and should not spam the log. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-ppc/helper.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index d342b09..a7ec1f4 100644 ---

[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 03:08, H. Peter Anvin wrote: [snip] I know. Someone else is welcome to do that... since it would require knowing both the VirtualBox and the Qemu sound subsystem interfaces and in what ways they are similar or different. They should be reasonably close. About 80% of the

Re: [Qemu-devel] [PATCH] powerpc: Avoid TLB related log spamming

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 14:38, Edgar E. Iglesias wrote: Invalid TLB entries are normal and should not spam the log. Thanks, applied to my ppc tree: git://repo.or.cz/qemu/agraf.git ppc-next Alex

Re: [Qemu-devel] [PATCH] powerpc: Avoid TLB related log spamming

2010-09-11 Thread Edgar E. Iglesias
On Sat, Sep 11, 2010 at 03:19:57PM +0200, Alexander Graf wrote: On 11.09.2010, at 14:38, Edgar E. Iglesias wrote: Invalid TLB entries are normal and should not spam the log. Thanks, applied to my ppc tree: [1]git://repo.or.cz/qemu/agraf.git ppc-next Alex Thanks Alex, I

Re: [Qemu-devel] [PATCH] Cocoa: Avoid missing prototype warnings for qemu_main

2010-09-11 Thread Stefan Weil
Am 11.09.2010 11:55, schrieb Andreas Färber: In vl.c main is redefined to qemu_main but no prototype is available. Move it into qemu-common.h since it is needed in ui/cocoa.m, too. Adjust the call sites to the signature used in vl.c. Signed-off-by: Andreas Färberandreas.faer...@web.de ---

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Alexander Graf
On 10.09.2010, at 17:38, Joerg Roedel wrote: This patch adds the svm cpuid feature flags to the qemu intialization path. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- target-i386/cpu.h | 12 +++ target-i386/cpuid.c | 80 ---

Re: [Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread malc
On Fri, 10 Sep 2010, H. Peter Anvin wrote: On 09/10/2010 07:47 PM, H. Peter Anvin wrote: On 09/10/2010 06:08 PM, H. Peter Anvin wrote: Any remotely recent stock distro should have support for it. I say should, because I haven't actually tested it with a Linux guest yet. I'll try to

[Qemu-devel] [RFC][PATCH 0/3] Fix caching issues with live migration

2010-09-11 Thread Anthony Liguori
Today, live migration only works when using shared storage that is fully cache coherent using raw images. The failure case with weak coherent (i.e. NFS) is subtle but nontheless still exists. NFS only guarantees close-to-open coherence and when performing a live migration, we do an open on the

[Qemu-devel] [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-11 Thread Anthony Liguori
This fixes a couple nasty problems relating to live migration. 1) When dealing with shared storage with weak coherence (i.e. NFS), even if we re-read, we may end up with undesired caching. By delaying any reads until we absolutely have to, we decrease the likelihood of any undesirable

[Qemu-devel] [PATCH 1/3] block: allow migration to work with image files

2010-09-11 Thread Anthony Liguori
Image files have two types of data: immutable data that describes things like image size, backing files, etc. and mutable data that includes offset and reference count tables. Today, image formats aggressively cache mutable data to improve performance. In some cases, this happens before a guest

[Qemu-devel] [PATCH 2/3] block-nbd: fix use of protocols in backing files and nbd probing

2010-09-11 Thread Anthony Liguori
The use of protocols in backing_files is currently broken because of some checks for adjusting relative pathnames. Additionally, there's a spurious read when using an nbd protocol that can be quite destructive when using copy-on-read. Potentially, this can lead to probing an image file over top

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Joerg Roedel
On Sat, Sep 11, 2010 at 03:43:02PM +0200, Alexander Graf wrote: @@ -305,6 +322,8 @@ static x86_def_t builtin_x86_defs[] = { CPUID_EXT3_OSVW, CPUID_EXT3_IBS */ .ext3_features = CPUID_EXT3_LAHF_LM | CPUID_EXT3_SVM | CPUID_EXT3_ABM | CPUID_EXT3_SSE4A,

Re: [Qemu-devel] [PATCH] Cocoa: Avoid missing prototype warnings for qemu_main

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 15:26 schrieb Stefan Weil: Am 11.09.2010 11:55, schrieb Andreas Färber: In vl.c main is redefined to qemu_main but no prototype is available. Move it into qemu-common.h since it is needed in ui/cocoa.m, too. Adjust the call sites to the signature used in vl.c. Signed-off-by:

[Qemu-devel] [PATCH 0/4] powerpc: Add the Virtex5 ML507 refdesign board

2010-09-11 Thread Edgar E. Iglesias
Hi, This series adds support for emulating virtex5 ml507 PPC-440 boards. I've tested this by booting linux into userspace and running a bunch of cryptographic testsuites on top of the guest. One thing to note is that QEMU lacks a model for the Xilinx LL-TEMAC and linux will hang if the

[Qemu-devel] [PATCH 1/4] powerpc: Improve emulation of the BookE MMU

2010-09-11 Thread Edgar E. Iglesias
Improve the emulation of the BookE MMU to be able to boot linux on virtex5 boards. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-ppc/helper.c | 46 -- 1 files changed, 40 insertions(+), 6 deletions(-) diff --git

[Qemu-devel] [PATCH 2/4] powerpc: Make the decr interrupt type overridable

2010-09-11 Thread Edgar E. Iglesias
Make it possible for boards to override the kind of interrupt to be signaled when the decr timer hits. The 405's signal PIT interrupts while the 440's signal DECR. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- hw/ppc.c | 22 -- hw/ppc.h |2 ++ 2 files

[Qemu-devel] [PATCH 3/4] powerpc: Add a ppc-440x5 Xilinx model

2010-09-11 Thread Edgar E. Iglesias
Add a powerpc 440x5 with the model ID on the Xilinx virtex5. Connect the 440x5 to the 40x interrupt logic. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-ppc/translate_init.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 4/4] powerpc: Add a virtex5 ml507 refdesign board

2010-09-11 Thread Edgar E. Iglesias
Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- Makefile.target|8 + default-configs/ppc-softmmu.mak|2 + default-configs/ppc64-softmmu.mak |2 + default-configs/ppcemb-softmmu.mak |2 + hw/virtex_ml507.c | 283

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 16:20, Joerg Roedel wrote: On Sat, Sep 11, 2010 at 03:43:02PM +0200, Alexander Graf wrote: @@ -305,6 +322,8 @@ static x86_def_t builtin_x86_defs[] = { CPUID_EXT3_OSVW, CPUID_EXT3_IBS */ .ext3_features = CPUID_EXT3_LAHF_LM | CPUID_EXT3_SVM |

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Joerg Roedel
On Sat, Sep 11, 2010 at 04:29:18PM +0200, Alexander Graf wrote: Depends on which Phenom you have. A Phenom II has NRIPSAVE but the old Phenoms don't have it. For the SVM features it is not that important what the host hardware supports but what KVM can emulate. VMCBCLEAN can be emulated

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 16:36, Joerg Roedel wrote: On Sat, Sep 11, 2010 at 04:29:18PM +0200, Alexander Graf wrote: Depends on which Phenom you have. A Phenom II has NRIPSAVE but the old Phenoms don't have it. For the SVM features it is not that important what the host hardware supports but what

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Joerg Roedel
On Sat, Sep 11, 2010 at 04:38:51PM +0200, Alexander Graf wrote: I am not sure that I am the right person to do such an invasive change. At least not in this patch-set. I could think of removing SVM from the qemu64 definition and add it again in the TCG specific path. It's not an invasive

Re: [Qemu-devel] [PATCH 1/4] powerpc: Improve emulation of the BookE MMU

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 16:09 schrieb Edgar E. Iglesias: Improve the emulation of the BookE MMU to be able to boot linux on virtex5 boards. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-ppc/helper.c | 46 +++ +-- 1 files changed, 40

Re: [Qemu-devel] [PATCH 2/2] qemu-kvm: Add svm cpuid features

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 16:42, Joerg Roedel wrote: On Sat, Sep 11, 2010 at 04:38:51PM +0200, Alexander Graf wrote: I am not sure that I am the right person to do such an invasive change. At least not in this patch-set. I could think of removing SVM from the qemu64 definition and add it again in

Re: [Qemu-devel] [PATCH 1/4] powerpc: Improve emulation of the BookE MMU

2010-09-11 Thread Edgar E. Iglesias
On Sat, Sep 11, 2010 at 04:42:19PM +0200, Andreas Färber wrote: Am 11.09.2010 um 16:09 schrieb Edgar E. Iglesias: Improve the emulation of the BookE MMU to be able to boot linux on virtex5 boards. Signed-off-by: Edgar E. Iglesias edgar.igles...@gmail.com --- target-ppc/helper.c |

[Qemu-devel] Re: [PATCH 0/4] powerpc: Add the Virtex5 ML507 refdesign board

2010-09-11 Thread Alexander Graf
Am 11.09.2010 um 16:09 schrieb Edgar E. Iglesias edgar.igles...@gmail.com: Hi, This series adds support for emulating virtex5 ml507 PPC-440 boards. I've tested this by booting linux into userspace and running a bunch of cryptographic testsuites on top of the guest. One thing to note is

Re: [Qemu-devel] [PATCH 2/3] block-nbd: fix use of protocols in backing files and nbd probing

2010-09-11 Thread Stefan Hajnoczi
On Sat, Sep 11, 2010 at 3:04 PM, Anthony Liguori aligu...@us.ibm.com wrote: Additionally, there's a spurious read when using an nbd protocol that can be quite destructive when using copy-on-read.  Potentially, this can lead to probing an image file over top of NBD but this is completely wrong

[Qemu-devel] [PATCH] Introduce qemu_madvise()

2010-09-11 Thread Andreas Färber
From: Andreas Färber afaer...@opensolaris.org vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. The underlying issue is that madvise() is not a POSIX function, therefore Solaris' _POSIX_C_SOURCE suppresses the prototype.

Re: [Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread H. Peter Anvin
I meant just take the Fedora 13 DVD and install it onto a virtual hard disk. More later when I'm at a real computer. malc av1...@comtv.ru wrote: On Fri, 10 Sep 2010, H. Peter Anvin wrote: On 09/10/2010 07:47 PM, H. Peter Anvin wrote: On 09/10/2010 06:08 PM, H. Peter Anvin wrote: Any

Re: [Qemu-devel] Re: [PATCH] Prefer posix_madvise() over madvise()

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 14:11 schrieb Blue Swirl: On Sat, Sep 11, 2010 at 11:51 AM, Andreas Färber andreas.faer...@web.de wrote: From: Andreas Färber afaer...@opensolaris.org vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. The

Re: [Qemu-devel] [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-11 Thread Stefan Hajnoczi
On Sat, Sep 11, 2010 at 3:04 PM, Anthony Liguori aligu...@us.ibm.com wrote: This fixes a couple nasty problems relating to live migration. 1) When dealing with shared storage with weak coherence (i.e. NFS), even if   we re-read, we may end up with undesired caching.  By delaying any reads  

Re: [Qemu-devel] [PATCH 2/3] block-nbd: fix use of protocols in backing files and nbd probing

2010-09-11 Thread Anthony Liguori
On 09/11/2010 11:53 AM, Stefan Hajnoczi wrote: On Sat, Sep 11, 2010 at 3:04 PM, Anthony Liguorialigu...@us.ibm.com wrote: Additionally, there's a spurious read when using an nbd protocol that can be quite destructive when using copy-on-read. Potentially, this can lead to probing an image

Re: [Qemu-devel] [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-11 Thread Anthony Liguori
On 09/11/2010 12:24 PM, Stefan Hajnoczi wrote: On Sat, Sep 11, 2010 at 3:04 PM, Anthony Liguorialigu...@us.ibm.com wrote: This fixes a couple nasty problems relating to live migration. 1) When dealing with shared storage with weak coherence (i.e. NFS), even if we re-read, we may end up

Re: [Qemu-devel] Issue with compiling qemu-0.13.0.-rc1

2010-09-11 Thread Anthony Liguori
On 09/10/2010 06:59 PM, Adhyas Avasthi wrote: When I try to run the following commands on rc1 or fresh git (synced 5 minutes back), I get the following error: bash-3.2$ ./configure --disable-kvm --disable-xen bash-3.2$ make Please include the full output of configure. Why are you

Re: [Qemu-devel] [PATCH 2/3] block-nbd: fix use of protocols in backing files and nbd probing

2010-09-11 Thread Anthony Liguori
On 09/11/2010 12:27 PM, Anthony Liguori wrote: I think the better solution is to explicitly specific raw with nbd. IOW, I think -drive file=nbd:localhost:1026,format=raw should work the same way. I still feel slightly weird about probing happening with nbd. It seems like it could only

[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread H. Peter Anvin
It would certainly be a worthwhile project. Alexander Graf ag...@suse.de wrote: On 11.09.2010, at 03:08, H. Peter Anvin wrote: [snip] I know. Someone else is welcome to do that... since it would require knowing both the VirtualBox and the Qemu sound subsystem interfaces and in what ways

[Qemu-devel] How to investigate Qemu blank screen on target system problem?

2010-09-11 Thread Robert Smith
I've built kernel  v2.6.33.2 and tryintg to simulate realview (or integrator)  arm board on qemu under Ubuntu 9.10. make ARCH=arm realview_defconfig make ARCH=arm CROSS_COMPILE=arm-linux- qemu-system-arm -M realview -kernel zImage.2.6.33.2.realview -initrd initramfs.cpio.gz or make ARCH=arm

[Qemu-devel] Arm : How to investigate Qemu blank screen on target system problem?

2010-09-11 Thread Robert Smith
Sirs, I've built kernel v2.6.33.2 and tryintg to simulate realview (or integrator) arm board on qemu under Ubuntu 9.10. make ARCH=arm realview_defconfig make ARCH=arm CROSS_COMPILE=arm-linux- qemu-system-arm -M realview -kernel zImage.2.6.33.2.realview -initrd initramfs.cpio.gz or make

Re: [Qemu-devel] [PATCH] Introduce qemu_madvise()

2010-09-11 Thread Alexander Graf
On 11.09.2010, at 19:05, Andreas Färber wrote: From: Andreas Färber afaer...@opensolaris.org vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. The underlying issue is that madvise() is not a POSIX function, therefore

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-09-11 Thread Andreas Färber
Hello Stefan, Am 06.09.2010 um 17:13 schrieb Stefan Hajnoczi: diff --git a/Makefile b/Makefile index f95cc2f..3c5e6a0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for QEMU. -GENERATED_HEADERS = config-host.h +GENERATED_HEADERS = config-host.h trace.h ifneq ($(wildcard

Re: [Qemu-devel] [PATCH] Introduce qemu_madvise()

2010-09-11 Thread Andreas Färber
Am 11.09.2010 um 23:37 schrieb Alexander Graf: On 11.09.2010, at 19:05, Andreas Färber wrote: Remaining madvise() users: exec.c: limited to __linux__ and/or MADV_MERGEABLE (no POSIX equivalent) kvm-all.c: limited to MADV_DONTFORK (no POSIX equivalent), otherwise runtime error if

Re: [Qemu-devel] [PATCH] Introduce qemu_madvise()

2010-09-11 Thread Alexander Graf
On 12.09.2010, at 00:39, Andreas Färber wrote: Am 11.09.2010 um 23:37 schrieb Alexander Graf: On 11.09.2010, at 19:05, Andreas Färber wrote: Remaining madvise() users: exec.c: limited to __linux__ and/or MADV_MERGEABLE (no POSIX equivalent) kvm-all.c: limited to MADV_DONTFORK (no POSIX

[Qemu-devel] [Bug 636095] [NEW] tap downscript is not executed when exiting qemu through quit monitor command

2010-09-11 Thread Max
Public bug reported: When you tell qemu to shutdown using the quit monitor command, the downscript of the tap interface is not executed. To reproduce: Create the test script /tmp/qemu-ifdown-test.sh : == #!/bin/bash touch /tmp/is_this_working == Run: == # chmod +x /tmp/qemu-ifdown-test.sh

[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread H. Peter Anvin
On 09/11/2010 12:41 AM, Stefan Hajnoczi wrote: On Fri, Sep 10, 2010 at 10:47 PM, H. Peter Anvin h...@linux.intel.com wrote: diff --git a/hw/usb-audio.c b/hw/usb-audio.c new file mode 100644 index 000..d4cf488 --- /dev/null +++ b/hw/usb-audio.c @@ -0,0 +1,702 @@ +/* + * QEMU USB Net