[Qemu-devel] [Bug 1179104] [NEW] client crash during debian ppc installation

2013-05-11 Thread Edward J. Shornock
Public bug reported: Host system: Debian Testing/Sid $ uname -a Linux darkside 3.8-1-amd64 #1 SMP Debian 3.8.11-1 x86_64 GNU/Linux With git rev 38ebb396c955ceb2ef7e246248ceb7f8bfe1b774: I created a HDD image: qemu-img create -f qcow2 powerpc.img 10G I fetched this CD image (I think it's 3

Re: [Qemu-devel] [PATCH for-1.5] qom: optimize casting to leaf class and parent class

2013-05-11 Thread Anthony Liguori
Paolo Bonzini writes: > Il 11/05/2013 00:58, Anthony Liguori ha scritto: >> Aurelien Jarno writes: >> >>> On Fri, May 10, 2013 at 01:47:55PM -0500, Anthony Liguori wrote: Most QOM types use type_register_static but we still strdup the passed data. However, the original pointers are u

Re: [Qemu-devel] [PATCH] w32: Fix build with older gcc (unresolved symbol)

2013-05-11 Thread Stefan Weil
Am 11.05.2013 11:01, schrieb Igor Mitsyanko: > On 11.05.2013 10:41, Stefan Weil wrote: >> Am 10.05.2013 22:14, schrieb Igor Mitsyanko: >>> On 29.03.2013 21:20, Stefan Weil wrote: The cross i586-mingw32msvc-gcc 4.4.4 from Debian Squeeze does not support __sync_val_compare_and_swap by

[Qemu-devel] [PATCH for-1.5 2/2] w32: Include stdio.h to get the declaration of ssize_t

2013-05-11 Thread Stefan Weil
Latest native MinGW and also the Debian squeeze cross version declare ssize_t in sys/types.h which is not included by osdep.h. This results in a compiler error for several files: CCutil/hbitmap.o In file included from C:/qemu/util/hbitmap.c:15:0: C:/qemu/include/qemu/osdep.h:175:1: error: un

[Qemu-devel] [PATCH for-1.5 1/2] w32: Fix configure test for -march=i486

2013-05-11 Thread Stefan Weil
The latest version of MinGW needs a test for __sync_val_compare_and_swap to fix a missing symbol linker error. Reported-by: Igor Mitsyanko Signed-off-by: Stefan Weil --- configure |1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 9439f1c..3a75f66 100755 --- a/co

[Qemu-devel] [PATCH for-1.5 0/2]

2013-05-11 Thread Stefan Weil
These patches are needed to fix the currently broken build with MinGW. Patch 1 fixes a problem reported on qemu-devel. Patch 2 fixes a problem which is reported by our buildbots. [PATCH for-1.5 1/2] w32: Fix configure test for -march=i486 [PATCH for-1.5 2/2] w32: Include stdio.h to get the declar

[Qemu-devel] [PATCH for-1.5] ppc: do not register IABR SPR twice for 603e

2013-05-11 Thread Hervé Poussineau
IABR SPR is already registered in gen_spr_603(), called from init_proc_603E(). Signed-off-by: Hervé Poussineau --- target-ppc/translate_init.c |5 - 1 file changed, 5 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 6feb62a..248d3e0 100644 --- a/

Re: [Qemu-devel] [PATCH for-1.5] qom: optimize casting to leaf class and parent class

2013-05-11 Thread Paolo Bonzini
Il 11/05/2013 00:58, Anthony Liguori ha scritto: > Aurelien Jarno writes: > >> On Fri, May 10, 2013 at 01:47:55PM -0500, Anthony Liguori wrote: >>> Most QOM types use type_register_static but we still strdup the >>> passed data. However, the original pointers are useful because >>> GCC is pretty

Re: [Qemu-devel] [PATCH 3/9] Move include and struct definition to dump.h

2013-05-11 Thread Andreas Färber
Am 07.05.2013 09:16, schrieb Qiao Nuohan: > Move includes and definition of struct DumpState into include/sysemu/dump.h. > > Signed-off-by: Qiao Nuohan > Reviewed-by: Zhang Xiaohe > --- > dump.c| 30 -- > include/sysemu/dump.h | 31 +++

Re: [Qemu-devel] [PATCH] w32: Fix build with older gcc (unresolved symbol)

2013-05-11 Thread Igor Mitsyanko
On 11.05.2013 10:41, Stefan Weil wrote: Am 10.05.2013 22:14, schrieb Igor Mitsyanko: On 29.03.2013 21:20, Stefan Weil wrote: The cross i586-mingw32msvc-gcc 4.4.4 from Debian Squeeze does not support __sync_val_compare_and_swap by default. Using -march=i686 fixes that and should also result in

[Qemu-devel] [Bug 865518] Re: qemu segfaults when writing to very large qcow2 disk

2013-05-11 Thread Richard Jones
Still happening in upstream qemu from git: Program terminated with signal 11, Segmentation fault. #0 0x7f4f86c721a0 in get_cluster_table (bs=bs@entry=0x7f4f886e7880, offset=offset@entry=1152921504606834688, new_l2_table=new_l2_table@entry=0x7f4f8ad9a0b0, new_l2_index=new_l2_ind

[Qemu-devel] [Bug 865518] Re: qemu segfaults when writing to very large qcow2 disk

2013-05-11 Thread Richard Jones
Simple reproducer using only qemu tools: $ qemu-img create -f qcow2 huge.qcow2 $((1024*1024))T Formatting 'huge.qcow2', fmt=qcow2 size=1152921504606846976 encryption=off cluster_size=65536 lazy_refcounts=off $ qemu-io /tmp/huge.qcow2 -c "write $((1024*1024*1024*1024*1024*1024 - 1024)) 512" Segm

Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-11 Thread Peter Maydell
On 11 May 2013 06:09, liu ping fan wrote: > On Wed, May 8, 2013 at 2:30 AM, Peter Maydell > wrote: >> Also, technically speaking get_system_memory() is never the >> right answer, though in practice it's good enough for our >> purposes. (returning get_system_memory() would allow a bus >> master D

Re: [Qemu-devel] [PATCH v2 2/3] block: add block-backup QMP command

2013-05-11 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/05/2013 05:34, Eric Blake ha scritto: > On 05/08/2013 06:49 AM, Kevin Wolf wrote: >> Am 29.04.2013 um 09:42 hat Stefan Hajnoczi geschrieben: >>> @block-backup >>> > >> drive-backup would probably be a more consistent naming. We would >> then st

Re: [Qemu-devel] [PATCH for-1.5 0/9] Disable expensive QOM cast debugging for official releases

2013-05-11 Thread Paolo Bonzini
Il 11/05/2013 01:06, Anthony Liguori ha scritto: > The thing is, none of these casts should be for more than 1 level and > the patch I provided makes those casts almost free. Assuming strings are collapsed (and that's why my original attempt to introduce the fast path only looked at the concrete c

Re: [Qemu-devel] VFIO VGA test branches

2013-05-11 Thread Justin Gottula
Hi, The kernel won't compile with CONFIG_HOTPLUG_PCI=m: drivers/pci/hotplug/pci_hotplug_core.c:548:5: error: redefinition of ‘pci_hp_reset_slot’ int pci_hp_reset_slot(struct hotplug_slot *hotplug, int probe) ^ In file included from drivers/pci/hotplug/pci_hotplug_core.c:41:0: include/linux/

Re: [Qemu-devel] [PATCH for-1.5 0/9] Disable expensive QOM cast debugging for official releases

2013-05-11 Thread Aurelien Jarno
On Fri, May 10, 2013 at 10:59:22PM +0200, Paolo Bonzini wrote: > Il 10/05/2013 19:41, Anthony Liguori ha scritto: > > Paolo Bonzini writes: > > > >> Il 10/05/2013 16:39, Anthony Liguori ha scritto: > >>> I just oppose the notion of disabling casts and *especially* only > >>> disabling casts for o

Re: [Qemu-devel] [PATCH for-1.5] qom: optimize casting to leaf class and parent class

2013-05-11 Thread Aurelien Jarno
On Fri, May 10, 2013 at 05:58:23PM -0500, Anthony Liguori wrote: > Aurelien Jarno writes: > > > On Fri, May 10, 2013 at 01:47:55PM -0500, Anthony Liguori wrote: > >> Most QOM types use type_register_static but we still strdup the > >> passed data. However, the original pointers are useful becaus