[Qemu-devel] [PATCH v4 09/16] target-or32: Add PIC support

2012-06-10 Thread Jia Liu
Add OpenRISC Programmable Interrupt Controller. Signed-off-by: Jia Liu --- hw/openrisc_pic.c | 48 1 file changed, 48 insertions(+) diff --git a/hw/openrisc_pic.c b/hw/openrisc_pic.c index 0d14bbe..76bd792 100644 --- a/hw/openrisc_pic.c +++ b/h

[Qemu-devel] [PATCH v4 12/16] target-or32: Add system instructions

2012-06-10 Thread Jia Liu
Add OpenRISC system instruction helpers and translation. Signed-off-by: Jia Liu --- target-openrisc/Makefile.objs |3 +- target-openrisc/helper.h |4 + target-openrisc/sys_helper.c | 235 + target-openrisc/translate.c | 18 4 files

[Qemu-devel] [PATCH v4 05/16] target-or32: Add exception support

2012-06-10 Thread Jia Liu
Add OpenRISC exception support. Signed-off-by: Jia Liu --- target-openrisc/Makefile.objs |4 ++-- target-openrisc/excp.c| 27 +++ target-openrisc/excp.h| 28 target-openrisc/excp_helper.c | 27

Re: [Qemu-devel] [PATCH v3 7/7] qcow2: always operate caches in writeback mode

2012-06-10 Thread Paolo Bonzini
> Maybe we should add flushes in the right places in > higher level functions like bdrv_snapshot_create(). Yes, that would be better. Paolo

[Qemu-devel] [PATCH v4 13/16] target-or32: Add gdb stub support

2012-06-10 Thread Jia Liu
Add OpenRISC gdb stub support. Signed-off-by: Jia Liu --- gdbstub.c | 64 + 1 file changed, 64 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index 08cf864..5d37dd9 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1155,6 +1155,68 @@ stat

[Qemu-devel] [PATCH v4 11/16] target-or32: Add a IIS dummy board

2012-06-10 Thread Jia Liu
Add a OpenRISC ISS dummy board. Signed-off-by: Jia Liu --- hw/openrisc/Makefile.objs |2 +- hw/openrisc_sim.c | 145 + 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 hw/openrisc_sim.c diff --git a/hw/openrisc/Makefi

[Qemu-devel] [PATCH 1/3] qxl: add fb_size_mb and fb_size

2012-06-10 Thread Alon Levy
In preperation for supporting a larger framebuffer for multiple monitors on a single card, add a property to qxl fb_size_mb, and corresponding byte sized fb_size, and use instead of VGA_RAM_SIZE. Signed-off-by: Alon Levy --- hw/qxl.c | 31 --- hw/qxl.h |2 ++ 2

[Qemu-devel] [PATCH v4 06/16] target-or32: Add int instruction helpers

2012-06-10 Thread Jia Liu
Add OpenRISC int instruction helpers. Signed-off-by: Jia Liu --- target-openrisc/Makefile.objs |2 +- target-openrisc/helper.h |8 +++ target-openrisc/int_helper.c | 155 + 3 files changed, 164 insertions(+), 1 deletion(-) create mode 10064

[Qemu-devel] [PATCH v4 04/16] target-or32: Add interrupt support

2012-06-10 Thread Jia Liu
Add OpenRISC interrupt support. Signed-off-by: Jia Liu --- cpu-exec.c | 17 + target-openrisc/Makefile.objs |2 +- target-openrisc/cpu.h |9 ++- target-openrisc/helper.h| 25 +++ target-openrisc/intrpt.c

[Qemu-devel] [PATCH v4 03/16] target-or32: Add MMU support

2012-06-10 Thread Jia Liu
Add OpenRISC MMU support. Signed-off-by: Jia Liu --- target-openrisc/cpu.h| 75 +++- target-openrisc/mmu.c| 199 +- target-openrisc/mmu_helper.c | 20 + 3 files changed, 292 insertions(+), 2 deletions(-) diff --git a/t

[Qemu-devel] [PATCH v4 02/16] target-or32: Add target machine

2012-06-10 Thread Jia Liu
Add OpenRISC target machine. Signed-off-by: Jia Liu --- target-openrisc/cpu.h | 67 - target-openrisc/machine.c | 22 ++- 2 files changed, 87 insertions(+), 2 deletions(-) diff --git a/target-openrisc/cpu.h b/target-openrisc/cpu.h

[Qemu-devel] [PATCH v4 01/16] target-or32: Add target stubs and cpu support

2012-06-10 Thread Jia Liu
Add OpenRISC target stubs and basic cpu support. Signed-off-by: Jia Liu --- arch_init.c |2 + arch_init.h |1 + configure| 14 +- cpu-exec.c |2 + default-configs/or32-softmmu.mak |6 + elf.

[Qemu-devel] [PATCH v4 00/16] QEMU OpenRISC support

2012-06-10 Thread Jia Liu
This is the OpenCores OpenRISC 1200 support for QEMU. Full implementation of the system-model and linux-user-model support. OpenRISC 1200 is a OpenCores open source CPU, its architecture manual can be found at http://opencores.org/svnget,or1k?file=/trunk/docs/openrisc_arch.pdf A OpenRISC Linux ke

Re: [Qemu-devel] [PATCH v4 06/16] net: Remove vlan qdev property

2012-06-10 Thread Paolo Bonzini
Il 09/06/2012 05:04, Zhi Yong Wu ha scritto: This commit looks suspicious because it removes a user-visible qdev property but we're trying to preserve backward compatibility. This command-line will break: x86_64-softmmu/qemu-system-x86_64 -net user,vlan=1 -device vir

[Qemu-devel] [PATCH 3/3] qxl: reset current_async on qxl_soft_reset

2012-06-10 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qxl.c |1 + 1 file changed, 1 insertion(+) diff --git a/hw/qxl.c b/hw/qxl.c index 6596856..b18a59d 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -988,6 +988,7 @@ static void qxl_soft_reset(PCIQXLDevice *d) trace_qxl_soft_reset(d->id); qxl_check_state(d);

[Qemu-devel] [PATCH 2/3] qxl: refuse to create primary larger then fb size

2012-06-10 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qxl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/qxl.c b/hw/qxl.c index a9b4fd1..6596856 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1204,6 +1204,16 @@ static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm, { QXLDevSurface

[Qemu-devel] [PATCH 0/3] qxl fb size and async fix

2012-06-10 Thread Alon Levy
Hi Gerd, Some additional patches to go on top of "hw/qxl: ignore guest from guestbug until reset". Tree (with previous patchset, without qxl info) available at git://people.freedesktop.org/~alon/qemu to-q/qxl/fb_async_fix.v1 First two add a fb_size_mb property and use that to allow lar

Re: [Qemu-devel] [PATCH] Fix some more license versions (GPL2+ instead of GPL2)

2012-06-10 Thread Wen Congyang
At 06/11/2012 01:49 PM, Stefan Weil Wrote: > Cc: Wen Congyang > Signed-off-by: Stefan Weil Signed-off-by: Wen Congyang > --- > > Wen Congyang, would you please add your Signed-off-by? Thanks for doing this. Wen Congyang > > Thanks, > Stefan W. > > memory_mapping-stub.c |

Re: [Qemu-devel] [RFC] QOMification of AXI stream

2012-06-10 Thread Paolo Bonzini
> > Ive had a brief look at the refactorings on qom-next, I notice that > > busses are now just children of the parent object TYPE_BUS. > > Essentially for point-to-point links this means that link itself > > has a QOM object. So for finer clarification, for new busses should or > > should I not ha

Re: [Qemu-devel] [PATCH] Makefile.user: Define CONFIG_USER_ONLY for libuser/

2012-06-10 Thread Paolo Bonzini
- Messaggio originale - > Da: "Andreas Färber" > A: qemu-devel@nongnu.org > Cc: qemu-triv...@nongnu.org, pbonz...@redhat.com, "Andreas Färber" > > Inviato: Sabato, 9 giugno 2012 13:56:42 > Oggetto: [PATCH] Makefile.user: Define CONFIG_USER_ONLY for libuser/ > > In *-*-user/ build dirs

[Qemu-devel] [PATCH] Fix some more license versions (GPL2+ instead of GPL2)

2012-06-10 Thread Stefan Weil
Cc: Wen Congyang Signed-off-by: Stefan Weil --- Wen Congyang, would you please add your Signed-off-by? Thanks, Stefan W. memory_mapping-stub.c |4 ++-- memory_mapping.c |4 ++-- memory_mapping.h |4 ++-- target-i386/arch_dump.c

Re: [Qemu-devel] [PATCH] dump: Fix license version (GPL2+ instead of GPL2)

2012-06-10 Thread Wen Congyang
At 06/11/2012 01:34 PM, Stefan Weil Wrote: > Cc: Wen Congyang > Signed-off-by: Stefan Weil Signed-off-by: Wen Congyang > --- > > Wen Congyang, would you please add your Signed-off-by? OK. Do we need to change the license in memory_mapping*.[ch] and target_i386/arch_dump.c, target-i386/arch_

[Qemu-devel] [PATCH] dump: Fix license version (GPL2+ instead of GPL2)

2012-06-10 Thread Stefan Weil
Cc: Wen Congyang Signed-off-by: Stefan Weil --- Wen Congyang, would you please add your Signed-off-by? Thanks, Stefan W. dump-stub.c |4 ++-- dump.c |4 ++-- dump.h |4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dump-stub.c b/dump-stub.c index 16

Re: [Qemu-devel] [PATCH 1.1 1/2] kvm/apic: correct short memset

2012-06-10 Thread Jan Kiszka
On 2012-06-10 22:29, Stefan Weil wrote: > Am 23.05.2012 12:33, schrieb Jan Kiszka: >> On 2012-05-22 17:30, Stefan Weil wrote: >>> Am 10.05.2012 19:28, schrieb Jan Kiszka: On 2012-05-10 13:19, Jim Meyering wrote: > From: Jim Meyering > > kvm_put_apic_state's attempt to clear *k

[Qemu-devel] [PATCH 3/4] atapi: implement READ DISC INFORMATION

2012-06-10 Thread Paolo Bonzini
This command is not necessary for CD-ROM and DVD-ROM, but some versions of udev trip on its absence. Cc: Kevin Wolf Cc: Markus Armbruster Signed-off-by: Paolo Bonzini --- Kevin, ok to merge these ATAPI changes via the SCSI tree? hw/ide/atapi.c | 31 +++ 1

[Qemu-devel] [PATCH 2/4] scsi: add a qdev property for the disk's WWN

2012-06-10 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 2bd8907..8882f69 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -68,6 +68,7 @@ struct SCSIDiskState bool media_chang

[Qemu-devel] [PATCH 4/4] scsi-disk: implement READ DISC INFORMATION

2012-06-10 Thread Paolo Bonzini
This command is not necessary for CD-ROM and DVD-ROM, but some versions of udev trip on its absence. Cc: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/scsi-defs.h |1 + hw/scsi-disk.c | 40 2 files changed, 41 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH 1/4] scsi: simplify and fix handling of the VPD page length field

2012-06-10 Thread Paolo Bonzini
The last four bytes of the thin provisioning page were cut out. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 045c764..2bd8907 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-d

[Qemu-devel] [PATCH 0/4] Small SCSI command improvements

2012-06-10 Thread Paolo Bonzini
These includes implementation of a new MMC command, and adding the WWN property also to SCSI disks. Paolo Bonzini (4): scsi: simplify handling of the VPD page length field scsi: add a qdev property for the disk's WWN atapi: implement READ DISC INFORMATION scsi-disk: implement READ DISC INF

Re: [Qemu-devel] [RFC] Proposal: PCI/PCIe: inbound BAR0 emulation for PCI controller (Root Complex)

2012-06-10 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, June 09, 2012 12:27 AM > To: Bhushan Bharat-R65777 > Cc: qemu-devel@nongnu.org; b...@kernel.crashing.org; Wood Scott-B07421; Yoder > Stuart-B08248 > Subject: Re: [RFC] Proposal: PCI/PCIe: inbound BAR0 emulation for PCI > co

Re: [Qemu-devel] [PATCH] w32: Fix broken build (missing include file)

2012-06-10 Thread Paolo Bonzini
Il 11/06/2012 03:57, Wen Congyang ha scritto: >> dump.* use GPL2 instead of GPL2+. Please fix that! Wen, do you have permissions to release your new files under GPLv2 or later? Paolo

Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target

2012-06-10 Thread Paolo Bonzini
Il 10/06/2012 20:07, Blue Swirl ha scritto: > > > check-unit-y = tests/check-qdict$(EXESUF) > > > +GCOV_FILES = $(SRC_PATH)/qdict.c > > > > Ouch, ugly. Why is it needed? > > Gcov needs to know both the source file and the object. Probably it > can't get this information from the object or .gc{da

Re: [Qemu-devel] [RFC 0/7] Fix migration with lots of memory

2012-06-10 Thread Chegu Vinod
Hello, I did pick up these patches a while back and did run some migration tests while running simple workloads in the guest. Below are some results. FYI... Vinod Config Details: Guest 10vcps, 60GB (running on a host that is 6cores(12threads) and 64GB). The hosts are identical X86_64 Bla

Re: [Qemu-devel] Fwd: buildbot failure in qemu on fedora-mingw32

2012-06-10 Thread Wen Congyang
At 06/07/2012 09:51 PM, Stefan Weil Wrote: > Am 07.06.2012 13:54, schrieb Anthony Liguori: >> Luiz/Wen Congyang: ^ >> >> Regards, >> >> Anthony Liguori >> /home/buildbot/slave-spunk/fedora-mingw32/build/dump.c:17:24: fatal > > It looks like sys/procfs.h is not needed at all. > I just sent a patch

[Qemu-devel] [PATCH 01/27] nseries: Rename n800_s::cpu to mpu

2012-06-10 Thread Andreas Färber
omap_mpu_state_s::env was renamed to cpu while changing its type. With n800_s::cpu of type omap_mpu_state_s* this leads to s->cpu->cpu. Rename the field to "mpu" to avoid this ugliness. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/nseries.c | 72 +-

[Qemu-devel] [PATCH 02/27] omap_sx1: Rename omap_mpu_state_s variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/omap_sx1.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/omap_sx1.c b/hw/omap_sx1.c index c7618c6..b64e1eb 100644 --- a/hw/omap_sx1.c +++ b/hw/omap_sx1

Re: [Qemu-devel] [PATCH] w32: Fix broken build (missing include file)

2012-06-10 Thread Wen Congyang
At 06/07/2012 09:45 PM, Stefan Weil Wrote: > dump.c was recently added to the code. It unconditionally > includes sys/procfs which is not available with MinGW (w32, w64). > > It looks like this file is not needed at all (tested on Linux), > so I removed it completely. > > Some other include state

Re: [Qemu-devel] vio-net driver

2012-06-10 Thread Charles . Tsai-蔡清海-研究發展部
Hi Brian, Do you have any finding for VirtIO Net driver problem? The latest Ubuntu release(v 12.04) still comes with Qemu 0.14.1. Did you find any debug report for VirtIO Net driver on qemu 0.14.1? If we need to upgrade qemu, is there any installation package available over the web? Last time, my

[Qemu-devel] [PATCH 20/27] xilinx_zynq: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_load_kernel(). Signed-off-by: Andreas Färber Acked-by: Peter A.G. Crosthwaite --- hw/xilinx_zynq.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..68349e2 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xil

Re: [Qemu-devel] [PATCH v3 08/29] dump: change cpu_get_note_size to return ssize_t

2012-06-10 Thread Wen Congyang
Hi, Paolo Thank you for doing this. At 06/07/2012 03:39 PM, Paolo Bonzini Wrote: > So that it can use the same prototype in both cases. Check for failure. > > Cc: Wen Congyang > Signed-off-by: Paolo Bonzini > --- > cpu-all.h |4 ++-- > dump.c |9 +++

[Qemu-devel] [PATCH 15/27] vexpress: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_pic_init_cpu(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/vexpress.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/vexpress.c b/hw/vexpress.c index 18d87ac..e957f43 100644 --- a/hw/vexpress.c +++ b/hw/vexpress.c @@ -

[Qemu-devel] [PATCH 13/27] arm_boot: Pass ARMCPU to arm_boot_info::secondary_cpu_reset_hook()

2012-06-10 Thread Andreas Färber
Adapt highbank accordingly. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/arm-misc.h |2 +- hw/arm_boot.c |6 -- hw/highbank.c |4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 320033d..bbd6fd3 100644 --- a

[Qemu-devel] [PATCH 08/27] strongarm: Use cpu_arm_init() to store ARMCPU in StrongARMState

2012-06-10 Thread Andreas Färber
Adapt collie accordingly. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/collie.c|2 +- hw/strongarm.c |6 +++--- hw/strongarm.h |2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/collie.c b/hw/collie.c index 42f4310..e6f8dbf 100644 --- a/hw/c

[Qemu-devel] [PATCH 23/27] xen_machine_pv: Use cpu_x86_init() to obtain X86CPU

2012-06-10 Thread Andreas Färber
Needed for moving halted field to CPUState. Signed-off-by: Andreas Färber Tested-by: Stefano Stabellini --- hw/xen_machine_pv.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c index 7eee770..4b72aa7 100644 --- a/hw/xen_machin

[Qemu-devel] [PATCH 10/27] musicpal: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_load_kernel(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/musicpal.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/musicpal.c b/hw/musicpal.c index c9f845a..b7fed39 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -1513,7

[Qemu-devel] [PATCH 07/27] z2: Rename PXA2xxState variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/z2.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/z2.c b/hw/z2.c index 9dd83ff..db25cdc 100644 --- a/hw/z2.c +++ b/hw/z2.c @@ -3

[Qemu-devel] [PATCH 16/27] exynos4210: Use cpu_arm_init() to store ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_pic_init_cpu(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell Acked-by: Igor Mitsyanko --- hw/exynos4210.c |6 +++--- hw/exynos4210.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/exynos4210.c b/hw/exynos4210.c index ae53837..7dc3787 10

[Qemu-devel] [PATCH 12/27] arm_boot: Pass ARMCPU to arm_boot_info::write_secondary_boot()

2012-06-10 Thread Andreas Färber
Adapt exynos4210 and highbank accordingly. The parameter itself is unused. Signed-off-by: Andreas Färber Acked-by: Peter Maydell Acked-by: Igor Mitsyanko (for exynos) --- hw/arm-misc.h |2 +- hw/arm_boot.c |6 +++--- hw/exynos4210.c |2 +- hw/exynos4210.h |2 +- hw/highbank

[Qemu-devel] [PATCH 22/27] arm_pic: Pass ARMCPU to arm_pic_init_cpu()

2012-06-10 Thread Andreas Färber
Pass it through to arm_pic_cpu_handler(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell Acked-by: Igor Mitsyanko (for exynos) --- hw/arm-misc.h |2 +- hw/arm_pic.c |8 +--- hw/armv7m.c |2 +- hw/exynos4210.c |3 ++- hw/highbank.c |5 ++--- h

[Qemu-devel] [PATCH 06/27] tosa: Rename PXA2xxState variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/tosa.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/tosa.c b/hw/tosa.c index d1ede8d..8bae80d 100644 --- a/hw/tosa.c +++ b/hw/tosa.c @@ -212,1

[Qemu-devel] [PATCH 27/27] target-s390x: Pass S390CPU to s390_cpu_restart()

2012-06-10 Thread Andreas Färber
Needed for qemu_cpu_kick(). Signed-off-by: Andreas Färber --- target-s390x/kvm.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 2153e38..5800fd6 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -292,8 +292,10

[Qemu-devel] [PATCH 14/27] realview: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_pic_init_cpu(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/realview.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/realview.c b/hw/realview.c index ecf4701..583993c 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -50,7 +

[Qemu-devel] [PATCH 05/27] spitz: Rename PXA2xxState variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/spitz.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index 9042d44..d320633 100644 --- a/hw/spitz.c +++ b/hw/

[Qemu-devel] [PATCH 09/27] integratorcp: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_load_kernel(). Add missing braces. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/integratorcp.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 9bdb9e6..46fd09d 100644 --- a/hw/integ

[Qemu-devel] [PULL] QOM CPUState, part 3a: cleanups & preparations

2012-06-10 Thread Andreas Färber
Hello Anthony/Blue, Please pull the next batch of QOM CPUState refactorings, largely cherry-picked from qom-next queue. The first seven patches clean up some ARM naming issues introduced by part 3. The rest prepare ARM, Xen and target-s390 for moving fields into CPUState. Alex has kindly agreed

[Qemu-devel] [PATCH 19/27] pxa2xx_gpio: Store ARMCPU in PXA2xxGPIOInfo

2012-06-10 Thread Andreas Färber
Prepares for moving halted field into CPUState. Add missing braces. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/pxa2xx_gpio.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/pxa2xx_gpio.c b/hw/pxa2xx_gpio.c index 09a408b..3c90c9c 100644 ---

[Qemu-devel] [PATCH 03/27] palm: Rename omap_mpu_state_s variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/palm.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/palm.c b/hw/palm.c index 6d81829..1375b19 100644 --- a/hw/palm.c +++ b/hw/palm.c @@ -196,7 +

[Qemu-devel] [PATCH 21/27] arm_boot: Pass ARMCPU to arm_load_kernel()

2012-06-10 Thread Andreas Färber
In particular this simplifies the &s->mpu->cpu->env expression again. first_cpu and ->next_cpu are expected to be QOM'ified later. Signed-off-by: Andreas Färber Acked-by: Igor Mitsyanko (for exynos) Acked-by: Peter Maydell --- hw/arm-misc.h |2 +- hw/arm_boot.c |4 ++-- hw

[Qemu-devel] [PATCH 25/27] s390-virtio: Use cpu_s390x_init() to obtain S390CPU

2012-06-10 Thread Andreas Färber
Needed to store S390CPU in ipi_states[]. Signed-off-by: Andreas Färber --- hw/s390-virtio.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index c0e19fd..49b3495 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -209,9 +209,1

[Qemu-devel] [PATCH 18/27] pxa2xx_pic: Store ARMCPU in PXA2xxPICState

2012-06-10 Thread Andreas Färber
Prepares for moving halted field to CPUState. Add missing braces. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/pxa2xx_pic.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/hw/pxa2xx_pic.c b/hw/pxa2xx_pic.c index 255cc3f..c5

[Qemu-devel] [PATCH 26/27] s390-virtio: Let s390_cpu_addr2state() return S390CPU

2012-06-10 Thread Andreas Färber
Convert ipi_states to S390CPU**. Needed for s390_cpu_restart() in handle_sigp(). Signed-off-by: Andreas Färber --- hw/s390-virtio-bus.c |6 -- hw/s390-virtio.c |8 target-s390x/cpu.h |2 +- target-s390x/kvm.c |6 -- 4 files changed, 13 insertions(+), 9 d

[Qemu-devel] [PATCH 04/27] mainstone: Rename PXA2xxState variable

2012-06-10 Thread Andreas Färber
Avoid cpu->cpu by using "mpu" as variable name. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/mainstone.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c index 00a8adc..17c68f6 100644 --- a/hw/mainstone.c +++

Re: [Qemu-devel] [patch V9 0/5] i.MX31: Add initial support

2012-06-10 Thread Andreas Färber
Am 07.06.2012 05:31, schrieb peter.ch...@nicta.com.au: > Changes since V8: Recovered my stuff-up from backup --- changes that > were in V7 are back in! > Andreas's comments addressed > (except adding MAINTAINER field) Why? Are you unwilling to maintain the code you contribute, or do y

[Qemu-devel] [PATCH 11/27] versatilepb: Use cpu_arm_init() to obtain ARMCPU

2012-06-10 Thread Andreas Färber
Needed for arm_load_kernel(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/versatilepb.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/versatilepb.c b/hw/versatilepb.c index 7c79c54..d567af9 100644 --- a/hw/versatilepb.c +++ b/hw/versati

[Qemu-devel] [PATCH 24/27] target-s390x: Let cpu_s390x_init() return S390CPU

2012-06-10 Thread Andreas Färber
Let cpu_init() return CPUS390XState for backwards compatibility. Signed-off-by: Andreas Färber --- target-s390x/cpu.c|2 +- target-s390x/cpu.h|8 target-s390x/helper.c |4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/target-s390x/cpu.c b/target

[Qemu-devel] [PATCH 17/27] pxa2xx: Pass ARMCPU to pxa2xx_pic_init()

2012-06-10 Thread Andreas Färber
Cleans up after storing ARMCPU in PXA2xxState. Prepares for storing ARMCPU in PXA2xxPICState. Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/pxa.h|2 +- hw/pxa2xx.c |4 ++-- hw/pxa2xx_pic.c |3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --gi

Re: [Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread Peter Maydell
On 10 June 2012 18:52, BRULE Herman <1011...@bugs.launchpad.net> wrote: > Because it stop on: > Program received signal SIG38, Real-time event 38. > [Switching to Thread 0x71125700 (LWP 32348)] > tcg_qemu_tb_exec (cpustate=, tb_ptr=0x400016b3 "\025\b") at > /var/tmp-disk/portage/app-emulation/

Re: [Qemu-devel] [PATCH stable-0.15 00/36] Preparing 0.15.2

2012-06-10 Thread Andreas Färber
Am 28.03.2012 19:06, schrieb Stefan Weil: > Am 28.03.2012 14:52, schrieb Andreas Färber: >> As announced last year, SUSE is shipping a patched qemu-kvm 0.15.1 >> with our >> recently released SLES 11 SP2. We are therefore very interested in >> cutting >> 0.15.2 releases for QEMU and later on qemu-k

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread BRULE Herman
I have found the bug, gentoo "qemu-kvm" is not "qemu" package, and with qemu packages all work. Now I don't know where repport the bug... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1011142 Title:

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread BRULE Herman
Just basic support, that's mean: no crash, and minimal system in console boot (all device emulated by QEMU is already supported). For me the crash, and mainly this cpu seam be supported by QEMU, just have the instruction bugged. -- You received this bug notification because you are a member of qe

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread Stefan Weil
The missing emulation of Raspberry PI hardware is not a QEMU bug. Anybody is free to add this emulation or to support others to do the job. It won't be easy because the RPi hardware is only partially documented, and the RPi system uses closed source drivers for video. If nobody objects, I suggest

Re: [Qemu-devel] buildbot failure in qemu on default_openbsd_current

2012-06-10 Thread Blue Swirl
On Sun, Jun 10, 2012 at 4:01 PM, Paolo Bonzini wrote: > Il 09/06/2012 02:31, q...@buildbot.b1-systems.de ha scritto: >> The Buildbot has detected a new failure on builder default_openbsd_current >> while building qemu. >> Full details are available at: >>  http://buildbot.b1-systems.de/qemu/build

Re: [Qemu-devel] [PATCH 2/2] cadence_gem: avoid stack-writing buffer-overrun

2012-06-10 Thread Stefan Weil
Am 14.05.2012 06:57, schrieb Peter Crosthwaite: ACK and Thanks Jim, Reviewed-by: Peter A.G. Crosthwaite On Fri, May 11, 2012 at 2:19 AM, Jim Meyering wrote: From: Jim Meyering Use sizeof(rxbuf)-size (not sizeof(rxbuf-size)) as the number of bytes to clear. The latter would always clear

Re: [Qemu-devel] [PATCH v3 0/3] target-xtensa: AREG0 conversion

2012-06-10 Thread Blue Swirl
Thanks, applied all. On Sun, Jun 10, 2012 at 7:33 AM, Max Filippov wrote: > Changes in v3: > - add Peter's patch to this series > - rebase to the current master > - actually remove HELPER_CFLAGS from target-xtensa/Makefile.objs > > Max Filippov (2): >  target-xtensa: add attributes to helper func

Re: [Qemu-devel] [PATCH 1.1 1/2] kvm/apic: correct short memset

2012-06-10 Thread Stefan Weil
Am 23.05.2012 12:33, schrieb Jan Kiszka: On 2012-05-22 17:30, Stefan Weil wrote: Am 10.05.2012 19:28, schrieb Jan Kiszka: On 2012-05-10 13:19, Jim Meyering wrote: From: Jim Meyering kvm_put_apic_state's attempt to clear *kapic before setting its bits cleared sizeof(void*) bytes (no more than

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread BRULE Herman
Then the correct gdb command provide: #0 tcg_qemu_tb_exec (cpustate=, tb_ptr=0x0) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c:444 #1 0x7f6ced51393d in cpu_arm_exec (env=0x7f6cee66c3d0) at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread Stefan Weil
Obviously you compiled QEMU using the experimental TCI (TCG interpreter). That's not wrong (for debugging some kinds of crashes it is even useful), but it's slow. You also called gdb with qemu-system-x86_64, but the core was from qemu- system-arm. Which kernel did you use? zImage or kernel-raspto

Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target

2012-06-10 Thread Blue Swirl
On Sun, Jun 10, 2012 at 4:08 PM, Andreas Färber wrote: > Am 10.06.2012 15:04, schrieb Blue Swirl: >> Add support for compiling for GCOV test coverage, enabled >> with '--enable-gcov' during configure. >> >> After tests, test coverage can be reported with 'make gcov'. >> >> Signed-off-by: Blue Swir

Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target

2012-06-10 Thread Blue Swirl
On Sun, Jun 10, 2012 at 4:04 PM, Paolo Bonzini wrote: > Il 10/06/2012 15:04, Blue Swirl ha scritto: >> @@ -2851,10 +2859,14 @@ fi >>  # End of CC checks >>  # After here, no more $cc or $ld runs >> >> -if test "$debug" = "no" ; then >> +if test "$gcov" = "yes" ; then >> +  CFLAGS="-fprofile-arcs -

[Qemu-devel] [Bug 1011142] Re: Arm emulation do a crash

2012-06-10 Thread BRULE Herman
Because it stop on: Program received signal SIG38, Real-time event 38. [Switching to Thread 0x71125700 (LWP 32348)] tcg_qemu_tb_exec (cpustate=, tb_ptr=0x400016b3 "\025\b") at /var/tmp-disk/portage/app-emulation/qemu-kvm-1.0.1-r1/work/qemu-kvm-1.0.1/tci.c:442 442 /var/tmp-disk/portage/app

Re: [Qemu-devel] [PATCH 13/13] qdev-properties: Add pci-devaddr property

2012-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2012 at 11:29:10AM -0600, Alex Williamson wrote: > On Sun, 2012-06-10 at 19:22 +0300, Michael S. Tsirkin wrote: > > On Sun, Jun 10, 2012 at 09:58:17AM -0600, Alex Williamson wrote: > > > On Sun, 2012-06-10 at 18:37 +0300, Michael S. Tsirkin wrote: > > > > On Sun, Jun 10, 2012 at 09:

Re: [Qemu-devel] [RFC PATCH] msix: Support specifying offsets, BARs, and capability location

2012-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2012 at 11:02:48AM -0600, Alex Williamson wrote: > msix_init has very little configurability as to how it lays out > MSI/X for a device. It claims to resize BARs, but doesn't > actually do this anymore. This patch allows MSI/X to be fully > specified, which is necessary both for e

Re: [Qemu-devel] [PATCH qom-next 1/7] qdev: Push state up to Object

2012-06-10 Thread Andreas Färber
Am 10.06.2012 17:49, schrieb Paolo Bonzini: > Il 08/06/2012 03:19, Anthony Liguori ha scritto: >>> >>> +typedef enum ObjectState { >>> +OBJECT_STATE_INITIALIZED = 1, >>> +OBJECT_STATE_REALIZED, >>> +} ObjectState; >> >> I think using a bool would be better since it reduces the temptation to

Re: [Qemu-devel] [PATCH v2 1/2] pci_host: Turn into SysBus-derived QOM type

2012-06-10 Thread Andreas Färber
Am 10.06.2012 19:33, schrieb Anthony Liguori: > On 06/10/2012 10:57 AM, Andreas Färber wrote: >> From: Andreas Färber >> >> Allows us to access PCIHostState QOM-style with PCI_HOST() macro. >> >> Update PReP Raven PCI to derive from this type. >> >> Signed-off-by: Anthony Liguori >> Signed-off-by:

Re: [Qemu-devel] [PATCH qom-next 1/7] qdev: Push state up to Object

2012-06-10 Thread Anthony Liguori
On 06/10/2012 10:49 AM, Paolo Bonzini wrote: Il 08/06/2012 03:19, Anthony Liguori ha scritto: +typedef enum ObjectState { +OBJECT_STATE_INITIALIZED = 1, +OBJECT_STATE_REALIZED, +} ObjectState; I think using a bool would be better since it reduces the temptation to add additional state

Re: [Qemu-devel] [PATCH v2 1/2] pci_host: Turn into SysBus-derived QOM type

2012-06-10 Thread Anthony Liguori
On 06/10/2012 10:57 AM, Andreas Färber wrote: From: Andreas Färber Allows us to access PCIHostState QOM-style with PCI_HOST() macro. Update PReP Raven PCI to derive from this type. Signed-off-by: Anthony Liguori Signed-off-by: Wanpeng Li Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguo

Re: [Qemu-devel] [PATCH 13/13] qdev-properties: Add pci-devaddr property

2012-06-10 Thread Alex Williamson
On Sun, 2012-06-10 at 19:22 +0300, Michael S. Tsirkin wrote: > On Sun, Jun 10, 2012 at 09:58:17AM -0600, Alex Williamson wrote: > > On Sun, 2012-06-10 at 18:37 +0300, Michael S. Tsirkin wrote: > > > On Sun, Jun 10, 2012 at 09:15:10AM -0600, Alex Williamson wrote: > > > > On Sun, 2012-06-10 at 17:54

Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash

2012-06-10 Thread Dunrong Huang
2012/6/10 BRULE Herman <1011...@bugs.launchpad.net>: > I can't debug it with gdb, it crash after the kernel boot (the qemu > application crash). > I'm under gentoo: I am under gentoo too, why cant you use debug qemu? There is another way to debug qemu: Open a terminal, set you core file size to

Re: [Qemu-devel] [RFC PATCH] msix: Support specifying offsets, BARs, and capability location

2012-06-10 Thread Jan Kiszka
On 2012-06-10 19:02, Alex Williamson wrote: > msix_init has very little configurability as to how it lays out > MSI/X for a device. It claims to resize BARs, but doesn't > actually do this anymore. This patch allows MSI/X to be fully > specified, which is necessary both for emulated devices tryin

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2012 at 07:50:07PM +0300, Michael S. Tsirkin wrote: > On Sun, Jun 10, 2012 at 06:30:59PM +0200, Jan Kiszka wrote: > > Caching the host bridge generically means changing all chipsets and, > > well, also testing that they still work afterward. As explained before, > > I'd really like

[Qemu-devel] [RFC PATCH] msix: Support specifying offsets, BARs, and capability location

2012-06-10 Thread Alex Williamson
msix_init has very little configurability as to how it lays out MSI/X for a device. It claims to resize BARs, but doesn't actually do this anymore. This patch allows MSI/X to be fully specified, which is necessary both for emulated devices trying to match the physical layout of a hardware device

Re: [Qemu-devel] [Bug 1011142] [NEW] Arm emulation do a crash

2012-06-10 Thread Andreas Färber
Am 10.06.2012 14:19, schrieb BRULE Herman: > Hello, I have try multiple image for the raspberry pi, with this cli: > /usr/bin/qemu-system-arm -kernel kernel-rasptoo -M versatilepb -cpu arm1176 > -hda hdd.img -m 256 -append "root=/dev/sda2 loglevel=7 debug" -serial stdio > -no-kvm Does the qemu-s

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2012 at 06:30:59PM +0200, Jan Kiszka wrote: > Caching the host bridge generically means changing all chipsets and, > well, also testing that they still work afterward. As explained before, > I'd really like to avoid doing this in a single step. Surely it is not hard to find a way t

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-10 Thread Jan Kiszka
On 2012-06-10 17:55, Michael S. Tsirkin wrote: >>> So if you expect me to merge this work, then either Jan does (1), or >>> gives up and does (2), or I find some time and do (1), or I fail to do >>> (1) and get convinced that we need to do (3). Or someone else gets >>> involved. >> >> I still have

Re: [Qemu-devel] [PATCH 13/13] qdev-properties: Add pci-devaddr property

2012-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2012 at 09:58:17AM -0600, Alex Williamson wrote: > On Sun, 2012-06-10 at 18:37 +0300, Michael S. Tsirkin wrote: > > On Sun, Jun 10, 2012 at 09:15:10AM -0600, Alex Williamson wrote: > > > On Sun, 2012-06-10 at 17:54 +0300, Michael S. Tsirkin wrote: > > > > On Sun, Jun 10, 2012 at 08:

Re: [Qemu-devel] CoW image commit+shrink(= make_empty) support

2012-06-10 Thread Paolo Bonzini
Il 08/06/2012 19:57, Kevin Wolf ha scritto: >> > >> > I agree, doing it like mirroring for new writes on the top layer makes >> > sense, as long as you are willing to violate the (optional) speed >> > parameter. I wouldn't think violating the speed parameter in that case >> > would be an issue, a

Re: [Qemu-devel] [PATCH 1/2] libcacard: build fixes

2012-06-10 Thread Andreas Färber
Am 10.06.2012 15:04, schrieb Blue Swirl: > Link trace objects to fix these errors: > LINK vscclient > oslib-posix.o: In function `trace_qemu_vfree': > /src/qemu/obj-amd64/./trace.h:39: undefined reference to `trace1' > oslib-posix.o: In function `trace_qemu_memalign': > /src/qemu/obj-amd64/./tra

Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target

2012-06-10 Thread Andreas Färber
Am 10.06.2012 15:04, schrieb Blue Swirl: > Add support for compiling for GCOV test coverage, enabled > with '--enable-gcov' during configure. > > After tests, test coverage can be reported with 'make gcov'. > > Signed-off-by: Blue Swirl > --- > configure | 19 ++- > tests

Re: [Qemu-devel] CoW image commit+shrink(= make_empty) support

2012-06-10 Thread Paolo Bonzini
Il 08/06/2012 15:19, Jeff Cody ha scritto: >> > >> > This means copying allocated blocks from snap1.qcow2 and writing them >> > into vm001.img. Once this process is complete it is safe to delete >> > snap1.qcow2 since all data is now in vm001.img. > Yes, this is the same as what we are wanting to

Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target

2012-06-10 Thread Paolo Bonzini
Il 10/06/2012 15:04, Blue Swirl ha scritto: > @@ -2851,10 +2859,14 @@ fi > # End of CC checks > # After here, no more $cc or $ld runs > > -if test "$debug" = "no" ; then > +if test "$gcov" = "yes" ; then > + CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS" > + LDFLAGS="-fprofile-arcs -ftest

  1   2   >