Re: [Qemu-devel] [PATCH 19/24] convert libhw to nested Makefiles

2012-06-04 Thread Gerd Hoffmann
On 06/04/12 20:08, Andreas Färber wrote: > Am 03.06.2012 14:25, schrieb Paolo Bonzini: >> diff --git a/hw/usb/Makefile b/hw/usb/Makefile >> index 7dbc33b..9c7ddf5 100644 >> --- a/hw/usb/Makefile >> +++ b/hw/usb/Makefile >> @@ -1,3 +1,12 @@ >> +hw-obj-$(CONFIG_USB_UHCI) += hcd-uhci.o >> +hw-obj-$(CO

[Qemu-devel] [RFC PATCH 3/5] migration: moving migration completion code to a separated routine

2012-06-04 Thread Yonit Halperin
Preparation for asynchronous migration state change notifiers. In the following patch the migrate_end routine will be used as the completion callback of the "migration end" notifiers list. Signed-off-by: Yonit Halperin --- migration.c | 31 --- migration.h |1 +

[Qemu-devel] [RFC PATCH 4/5] migration: replace migration state change notifier with async notifiers

2012-06-04 Thread Yonit Halperin
The patch replaces the existing state change notifier list, with two explicit notifier lists for migration start and migration end. Unlike the previous notifier list, the current notifications take place before the actual status change, and also allow async handlers. Hence, it is possible to delay

Re: [Qemu-devel] [PATCH v4 1/3] fdc: floppy drive should be visible after start without media

2012-06-04 Thread Markus Armbruster
Marcelo Tosatti writes: > On Thu, May 24, 2012 at 11:02:28AM +0200, Pavel Hrdina wrote: >> If you start guest with floppy drive but without media inserted, guest >> still should see floppy drive pressent. >> >> Signed-off-by: Pavel Hrdina >> --- >> hw/pc.c |2 +- >> 1 files changed, 1 inse

Re: [Qemu-devel] qemu 1.1.0 says 1.1.50

2012-06-04 Thread Dunrong Huang
2012/6/5 MATSUDA, Daiki : > I tried qemu-1.1.0. But it says 1.1.50 and > $ echo VERSION > 1.1.50 > > Is it correct ? It's correct. Because v1.1 has released, v1.1.50 means it's a development branch for v1.2(next branch). If you want to try latest stable version, you should download it from http://w

[Qemu-devel] [RFC PATCH 5/5] spice: turn spice "migration end" handler to be async

2012-06-04 Thread Yonit Halperin
Instead of immediatly calling the notifier completion callback, the notification handler assigns a completion callback to spice's migration interface. Spice should call this callback when it completes handling the migration state change. Signed-off-by: Yonit Halperin --- ui/spice-core.c | 29 +

[Qemu-devel] qemu 1.1.0 says 1.1.50

2012-06-04 Thread MATSUDA, Daiki
I tried qemu-1.1.0. But it says 1.1.50 and $ echo VERSION 1.1.50 Is it correct ? Regards MATSUDA Daiki

[Qemu-devel] [RFC PATCH 2/5] migration: moving migration start code to a separated routine

2012-06-04 Thread Yonit Halperin
Preparation for asynchronous migration state change notifiers. In a following patch the migrate_start routine will be used as the completion callback of the "migration start" notifiers list. Signed-off-by: Yonit Halperin --- migration.c | 73 +---

[Qemu-devel] [RFC PATCH 1/5] notifiers: add support for async notifiers handlers

2012-06-04 Thread Yonit Halperin
This patch defines 2 subtypes of notifiers, sync and async. Both of them can be added to a notifiers list. The patch adds optional complete_cb to the notifiers list. complete_cb is called when all the async notifiers have completed. Signed-off-by: Yonit Halperin --- input.c |2 +- migra

[Qemu-devel] [RFC PATCH 0/5] asynchronous migration state change handlers

2012-06-04 Thread Yonit Halperin
Hi, I'm sending this patch series again. This time with an additional patch for setting a migrate_end notifier completion callback for spice migration interface. I've also added more detailed commit messages. This patch series introduces async handlers for notifiers, and integrates them with mig

Re: [Qemu-devel] Python problem using MinGW when build QEMU

2012-06-04 Thread Stefan Weil
Am 05.06.2012 01:42, schrieb Arturo CV: Hello, Am trying to build the QEMU following this steps: http://qemu.weilnetz.de/qemu-doc.html#compilation I got most of the libraries dependencies and followed this other guides that I found over the net: http://lassauge.free.fr/qemu/ http://www.gaia-g

[Qemu-devel] vio-net driver

2012-06-04 Thread Charles . Tsai-蔡清海-研究發展部
We recently ran an Ubuntu 11.10 VM which was installed with VirtIO NIC driver. The VirtIO net driver came from the Ubuntu's default package. The VM we installed was configured as a bridge mode. When we ran the Iperf test against the VM, the network interface of the VM was fairly unstable. Someti

[Qemu-devel] [PATCH 08/74] lm32_boards: Use cpu_lm32_init() to obtain LM32CPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/lm32_boards.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/lm32_boards.c b/hw/lm32_boards.c index 4dd4f0a..ffb273c 100644 --- a/hw/lm32_boards.c +++ b/hw/lm32_boards.c

[Qemu-devel] [PATCH 11/74] milkymist: Store LM32 in ResetInfo

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/milkymist.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/milkymist.c b/hw/milkymist.c index 59f37b4..2e7235b 100644

[Qemu-devel] [PATCH 74/74] Kill off cpu_state_reset()

2012-06-04 Thread Andreas Färber
In commit 1bba0dc932e8826a7d030df3767daf0bc339f9a2 cpu_reset() was renamed to cpu_state_reset(), to allow introducing a new cpu_reset() that would operate on QOM objects. All callers have been updated except for one in target-mips, so drop all implementations except for the one in target-mips and

[Qemu-devel] [PATCH 28/74] pc: Use cpu_x86_init() to obtain X86CPU

2012-06-04 Thread Andreas Färber
Needed for pc_cpu_reset(). Also change return type to X86CPU. Signed-off-by: Andreas Färber Reviewed-by: Igor Mammedov --- hw/pc.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index c790bcb..1133921 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -9

[Qemu-devel] [PATCH 04/74] armv7m: Use cpu_arm_init() to obtain ARMCPU

2012-06-04 Thread Andreas Färber
Needed for armv7m_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/armv7m.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 4aac076..4e5971c 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -160,6 +160,7 @@ qemu_

[Qemu-devel] [PATCH 60/74] virtex_ml507: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed to change ppc440_init_xilinx() return type. Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/virtex_ml507.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 4a133b5..3013016 100644 --- a/hw/virtex_ml507

[Qemu-devel] [PATCH 22/74] target-microblaze: Let cpu_mb_init() return MicroBlazeCPU

2012-06-04 Thread Andreas Färber
Since qemu_init_vcpu() is no-op for CONFIG_USER_ONLY drop the env variable that is now unused there. Turn cpu_init macro into a static inline function returning CPUMBState for backwards compatibility. Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- target-microblaze/cpu.h |

[Qemu-devel] [PATCH 51/74] ppc440_bamboo: Pass PowerPCCPU to main_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc440_bamboo.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index 1a4e66a..0dd4dab 100644 --- a/hw

[Qemu-devel] [PATCH 03/17] qapi: add visitor interfaces for arrays

2012-06-04 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qapi-visit-core.c | 25 + qapi/qapi-visit-core.h |8 scripts/qapi-visit.py | 26 ++ 3 files changed, 59 insertions(+), 0 deletions(-) diff --git a/qapi/qapi-visit-core.c b/qapi/qapi-visit-core

[Qemu-devel] [PATCH 53/74] ppc4xx_devs: Pass PowerPCCPU to ppc4xx_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc4xx_devs.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index 4cefd75..41163e6 100644 --- a/hw/ppc4xx

[Qemu-devel] [PATCH 50/74] ppc440_bamboo: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc440_bamboo.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c index f0a3ae4..1a4e66a 100644 --- a/hw/ppc440_bamboo.c +++ b/hw/ppc440

[Qemu-devel] [RFC] Use QEMU IDL for device serialization/vmstate

2012-06-04 Thread Michael Roth
These patches are based on qom-next, and can also be obtained from: git://github.com/mdroth/qemu.git qidl-rfc1 = Overview = The goal of these patches is to explore how we can leverage an IDL to improve device serialization/migration. Patches 1-7 introduce the QIDL compiler and QAPI modification

[Qemu-devel] [PATCH 23/74] petalogix_ml605: Use cpu_mb_init() to obtain MicroBlazeCPU

2012-06-04 Thread Andreas Färber
Needed for microblaze_load_kernel(). Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/petalogix_ml605_mmu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 31a4348..6819241 100644 --- a/hw/peta

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

2012-06-04 Thread Alexander Graf
On 05.06.2012, at 02:58, Anthony Liguori wrote: > On 06/05/2012 08:54 AM, Andreas Färber wrote: >> Am 05.06.2012 01:33, schrieb q...@buildbot.b1-systems.de: >>> The Buildbot has detected a new failure on builder default_ppc while >>> building qemu. >>> Full details are available at: >>> http://

[Qemu-devel] [PATCH 13/17] rtc: add _version() qidl annotations

2012-06-04 Thread Michael Roth
VMState relies on per-field versioning in some cases. We don't use this for serialization, but it is needed for proper generation of VMState field decriptions. Signed-off-by: Michael Roth --- hw/mc146818rtc_state.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/mc

[Qemu-devel] [PATCH 31/74] r2d: Use cpu_sh4_init() to obtain SuperHCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/r2d.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index c55de01..1bd8df6 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -224,6 +224,7 @@ static void r2d_init(ram_addr_t ram_size,

[Qemu-devel] [PATCH 16/74] xtensa_lx60: Pass XtensaCPU to lx60_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Max Filippov --- hw/xtensa_lx60.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index 31f8adc..b153bfd 100644 --- a/hw/xtensa_l

[Qemu-devel] [PATCH 45/74] mips_r4k: Store MIPSCPU in ResetData

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_r4k.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index f89957c..d685999 100644 --- a/hw/mips_r4k.c +++ b/hw

[Qemu-devel] [PATCH 68/74] sun4u: Let cpu_devinit() return SPARCCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/sun4u.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 92b616f..e63ba39 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -752,7 +752,7 @@ static TypeI

[Qemu-devel] [PATCH 40/74] mips_malta: Use cpu_mips_init() to obtain MIPSCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_malta.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 4752bb2..d81e8d5 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -788,6 +788,7 @@ void mips_

[Qemu-devel] [PATCH 15/17] Makefile: add qidl-generation of vmstate field descriptions

2012-06-04 Thread Michael Roth
This will rebuild the vmstate descriptions in $(SRC_DIR)/qidl-generated whenever we do a build where one of the annotated sources has been modified. As a result, changes will be reflected in the working tree so we can detect changes and commit them in cases where the changes are correct/expected.

[Qemu-devel] [PATCH 67/74] sun4u: Use cpu_sparc_init() to obtain SPARCCPU

2012-06-04 Thread Andreas Färber
This prepares using it in sun4uv_init(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/sun4u.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 517bdb8..92b616f 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -754,6 +754,7 @@

[Qemu-devel] [PATCH 66/74] sun4m: Pass SPARCCPU to {main, secondary}_cpu_reset()

2012-06-04 Thread Andreas Färber
We can now use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/sun4m.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index c5d2e40..a959261 100644 --- a/hw/sun4m.c +++ b/hw/sun4m

[Qemu-devel] [PATCH 10/74] milkymist: Use cpu_lm32_init() to obtain LM32CPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/milkymist.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/milkymist.c b/hw/milkymist.c index 8bb6a97..59f37b4 100644 --- a/hw/milkymist.c +++ b/hw/milkymist.c @@ -79,6 +79,

[Qemu-devel] [PATCH 14/74] xtensa_sim: Pass XtensaCPU to sim_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Max Filippov --- hw/xtensa_sim.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/xtensa_sim.c b/hw/xtensa_sim.c index dae08a1..1ce07fb 100644 --- a/hw/xtensa_

[Qemu-devel] [PATCH 09/74] lm32_boards: Store LM32CPU in ResetInfo

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Michael Walle --- hw/lm32_boards.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/lm32_boards.c b/hw/lm32_boards.c index ffb273c..b76d800

[Qemu-devel] [PATCH 24/74] petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU

2012-06-04 Thread Andreas Färber
Needed for microblaze_load_kernel(). Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/petalogix_s3adsp1800_mmu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c index 8b37336..7ff3cd5 10064

[Qemu-devel] [PATCH 02/17] qidl: add qc definitions

2012-06-04 Thread Michael Roth
Define away the annotations so we can still compile. Signed-off-by: Michael Roth --- qapi/qc.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 qapi/qc.h diff --git a/qapi/qc.h b/qapi/qc.h new file mode 100644 index 000..3b3a8b9 --- /dev/null +++ b/q

[Qemu-devel] [PATCH 55/74] ppc_newworld: Pass PowerPCCPU to ppc_core99_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_newworld.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 6f7f1b5..4e2a6e6 100644 --- a/hw/ppc

[Qemu-devel] [PATCH 43/74] mips_mipssim: Store MIPSCPU in ResetData

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_mipssim.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index 7c510da..eb03047 100644 --- a/hw/mips_mi

[Qemu-devel] [PATCH 09/17] rtc: add qc annotations

2012-06-04 Thread Michael Roth
Add our annotations according to QIDL documentation. Signed-off-by: Michael Roth --- hw/mc146818rtc_state.h | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/mc146818rtc_state.h b/hw/mc146818rtc_state.h index f819e15..9347ee6 100644 --- a/hw/mc14

[Qemu-devel] [PATCH 69/74] sun4u: Store SPARCCPU in ResetData

2012-06-04 Thread Andreas Färber
We can now use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/sun4u.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index e63ba39..137a7c6 100644 --- a/hw/sun4u.c

[Qemu-devel] [PATCH 17/17] rtc: use qidl-generated vmstate bindings

2012-06-04 Thread Michael Roth
Make use of the qidl-generated vmstate bindings Signed-off-by: Michael Roth --- hw/mc146818rtc.c | 21 ++--- 1 files changed, 2 insertions(+), 19 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 2dfc233..14a9b4d 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc14681

[Qemu-devel] [PATCH 03/74] omap: Use cpu_arm_init() to store ARMCPU in omap_mpu_state_s

2012-06-04 Thread Andreas Färber
Fix tab indentations of comments, add braces, use cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/nseries.c |6 +++--- hw/omap.h |2 +- hw/omap1.c| 20 +++- hw/omap2.c|8 hw/omap_sx1.c |2 +- hw/palm.c |2

[Qemu-devel] [PATCH 05/74] armv7m: Pass ARMCPU to armv7m_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/armv7m.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 4e5971c..418139a 100644 --- a/hw/armv7m.c +++ b/hw/armv

[Qemu-devel] [PATCH 54/74] ppc_newworld: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for ppc_core99_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_newworld.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 8796510..6f7f1b5 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_new

[Qemu-devel] [PATCH 07/74] target-lm32: Let cpu_lm32_init() return LM32CPU

2012-06-04 Thread Andreas Färber
Make the include paths for cpu-qom.h consistent to allow using LM32CPU in cpu.h. Turn cpu_init macro into a static inline function returning CPULM32State for backwards compatibility. Signed-off-by: Andreas Färber Acked-by: Michael Walle --- target-lm32/cpu.c|2 +- target-lm32/cpu.h

[Qemu-devel] [PATCH 73/74] linux-user: Use cpu_reset() after cpu_init() / cpu_copy()

2012-06-04 Thread Andreas Färber
Eliminates cpu_state_reset() usage. Signed-off-by: Andreas Färber --- linux-user/main.c|2 +- linux-user/syscall.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 191b750..49108b8 100644 --- a/linux-user/main.c +++ b/l

[Qemu-devel] [PATCH 58/74] ppc_prep: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for ppc_prep_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_prep.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index b1da114..0b880a5 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -455,6 +455

[Qemu-devel] [PATCH 21/74] cris-boot: Pass CRISCPU to main_cpu_reset().

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/cris-boot.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/cris-boot.c b/hw/cris-boot.c index 331b2d1..b21326f 100644 --- a/hw/cris-boo

[Qemu-devel] [PATCH 19/74] axis_dev88: Use cpu_cris_init() to obtain CRISCPU

2012-06-04 Thread Andreas Färber
Needed for cris_load_image(). Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/axis_dev88.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/axis_dev88.c b/hw/axis_dev88.c index 2304e35..636708c 100644 --- a/hw/axis_dev88.c +++ b/hw/axis_dev88.c @@

[Qemu-devel] [PATCH 27/74] target-i386: Let cpu_x86_init() return X86CPU

2012-06-04 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUX86State for backwards compatibility. Signed-off-by: Andreas Färber Reviewed-by: Igor Mammedov --- target-i386/cpu.h| 12 ++-- target-i386/helper.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff -

[Qemu-devel] [PATCH 38/74] mips_jazz: Use cpu_mips_init() to obtain MIPSCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Hervé Poussineau --- hw/mips_jazz.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index a6bc7ba..24959e0 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -112,

[Qemu-devel] [PATCH 65/74] sun4m: Use cpu_sparc_init() to obtain SPARCCPU

2012-06-04 Thread Andreas Färber
Needed for {main,secondary}_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/sun4m.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index 34088ad..c5d2e40 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -809,13 +809,15 @@

[Qemu-devel] [PATCH 30/74] target-sh4: Let cpu_sh4_init() return SuperHCPU

2012-06-04 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUSH4State for backwards compatibility. Signed-off-by: Andreas Färber --- target-sh4/cpu.h | 12 ++-- target-sh4/translate.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/target-sh4/cpu.h

[Qemu-devel] [PATCH 06/17] qapi: qapi-visit.py, add gen support for existing types

2012-06-04 Thread Michael Roth
For qidl-annotated devices, we generate visitors for existing types, rather than defined the types via qapi. Modify qapi-visit.py so that we can pass it a header containing the type definition rather that having it expect a generated one. Signed-off-by: Michael Roth --- scripts/qapi-visit.py |

[Qemu-devel] [PATCH 64/74] target-sparc: Let cpu_sparc_init() return SPARCCPU

2012-06-04 Thread Andreas Färber
Make include paths for cpu-qom.h consistent, so that SPARCCPU can be used in cpu.h. Turn cpu_init macro into a static inline function returning CPUSPARCState for backwards compatibility. Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- target-sparc/cpu.c |4 ++-- target-sparc/cpu.h |

[Qemu-devel] [PATCH 35/74] target-mips: Let cpu_mips_init() return MIPSCPU

2012-06-04 Thread Andreas Färber
Turn cpu_init macro into a static inline function returning CPUMIPSState for backwards compatibility. Signed-off-by: Andreas Färber --- target-mips/cpu.h | 12 ++-- target-mips/translate.c |4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/target-mips/cp

[Qemu-devel] [PATCH 70/74] leon3: Use cpu_sparc_init() to obtain SPARCCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Blue Swirl --- hw/leon3.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/leon3.c b/hw/leon3.c index 0a5ff16..8ffef83 100644 --- a/hw/leon3.c +++ b/hw/leon3.c @@ -101,6 +101,7 @@ static void le

[Qemu-devel] [PATCH 08/17] rtc: move RTCState declaration to header

2012-06-04 Thread Michael Roth
We need these definitions in a header file since the generated visitors need to know the struct definitions to do their job. This also reduces the amount of code we need to feed into the QIDL compiler once we annotate it. Signed-off-by: Michael Roth --- hw/mc146818rtc.c | 27 +---

[Qemu-devel] [PATCH 12/74] target-xtensa: Let cpu_xtensa_init() return XtensaCPU

2012-06-04 Thread Andreas Färber
Make the include paths for cpu-qom.h consistent to allow using XtensaCPU in cpu.h. Turn cpu_init macro into a static inline function returning CPUXtensaState for backwards compatibility. Signed-off-by: Andreas Färber Acked-by: Max Filippov --- target-xtensa/cpu.c|2 +- target-xtensa/cp

[Qemu-devel] [PATCH 01/17] qidl: add QEMU IDL processor

2012-06-04 Thread Michael Roth
This is an import of Anthony's qidl compiler, with some changes squashed in to add support for doing the visitor generation via QEMU's qapi code generators rather than directly. Documentation has been imported as well, as is also viewable at: https://github.com/aliguori/qidl/blob/master/qc.md Th

[Qemu-devel] [PATCH 29/74] pc: Pass X86CPU to pc_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Reviewed-by: Igor Mammedov --- hw/pc.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 1133921..8368701 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -926,9

[Qemu-devel] [PATCH 36/74] mips_fulong2e: Use cpu_mips_cpu() to obtain MIPSCPU

2012-06-04 Thread Andreas Färber
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/mips_fulong2e.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 1a8df10..08d3aa0 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -272,17 +272,

Re: [Qemu-devel] [RFC PATCH] PCI: Introduce INTx check & mask API

2012-06-04 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 03:44 +0200, Alexander Graf wrote: > Wouldn't the "no LSI" setting be a flag to the vfio configuration? So > when you set up the device group, you say "this group can only do > MSI". That way the interface would be sysfs and QEMU wouldn't have > anything to do with it :) Sure

Re: [Qemu-devel] [PATCH v4 1/3] fdc: floppy drive should be visible after start without media

2012-06-04 Thread Marcelo Tosatti
On Thu, May 24, 2012 at 11:02:28AM +0200, Pavel Hrdina wrote: > If you start guest with floppy drive but without media inserted, guest > still should see floppy drive pressent. > > Signed-off-by: Pavel Hrdina > --- > hw/pc.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff

Re: [Qemu-devel] [PATCH V4 0/5] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller

2012-06-04 Thread John Williams
Hi Paul, On Tue, Jun 5, 2012 at 11:34 AM, Paul Brook wrote: >> Patch 1 Enhances SSI bus support to properly support multiple attached >> devices. An api is provided for SSI/SPI masters to select a particular >> device attached to the bus. >> >> Patch 2 is a device model for the m25p80 style SPI f

[Qemu-devel] [PATCH 15/74] xtensa_lx60: Use cpu_xtensa_init() to obtain XtensaCPU

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Max Filippov --- hw/xtensa_lx60.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index afdef49..31f8adc 100644 --- a/hw/xtens

[Qemu-devel] buildbot failure in qemu on block_x86_64_debian_6_0

2012-06-04 Thread qemu
The Buildbot has detected a new failure on builder block_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_x86_64_debian_6_0/builds/296 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Buil

[Qemu-devel] [PATCH 04/17] qapi: QmpOutputVisitor, implement array handling

2012-06-04 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-output-visitor.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/qapi/qmp-output-visitor.c b/qapi/qmp-output-visitor.c index 2bce9d5..78e8ff4 100644 --- a/qapi/qmp-output-visitor.c +++ b/qapi/qmp-output-visito

[Qemu-devel] [PATCH 16/17] qidl: add qidl-generated vmstate fields for rtc

2012-06-04 Thread Michael Roth
Initial check-in of the qidl-generated vmstate fields for rtc. Signed-off-by: Michael Roth --- qidl-generated/mc146818rtc_vmstate.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 qidl-generated/mc146818rtc_vmstate.h diff --git a/qidl-generated

[Qemu-devel] [PATCH 37/74] mips_fulong2e: Pass MIPSCPU to main_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mips_fulong2e.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 08d3aa0..38e4b86 100644 --- a/hw/mips_fulong2e.c +++ b/hw/

[Qemu-devel] [PATCH 52/74] ppc4xx_devs: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for ppc4xx_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc4xx_devs.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index 00e36f4..4cefd75 100644 --- a/hw/ppc4xx_devs.c +++ b/hw/ppc4xx_devs.c @

[Qemu-devel] [PATCH 12/17] rtc: add a QOM property for accessing device state

2012-06-04 Thread Michael Roth
This will eventually be used to serialize device state for the purposes of migration/savevm, and is also useful for introspection/testing. Signed-off-by: Michael Roth --- hw/mc146818rtc.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/m

[Qemu-devel] [PATCH 11/17] qapi: add qidl-generated qapi schema for rtc

2012-06-04 Thread Michael Roth
Signed-off-by: Michael Roth --- qidl-generated/mc146818rtc.json |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 qidl-generated/mc146818rtc.json diff --git a/qidl-generated/mc146818rtc.json b/qidl-generated/mc146818rtc.json new file mode 100644 index 000..3be6f

[Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0

2012-06-04 Thread qemu
The Buildbot has detected a new failure on builder block_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_i386_debian_6_0/builds/296 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Re

[Qemu-devel] [PATCH 48/74] spapr: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for spapr_cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/spapr.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/spapr.c b/hw/spapr.c index cca20f9..2672330 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -518,6 +518,7 @@ static

[Qemu-devel] [PATCH 25/74] microblaze_boot: Pass MicroBlazeCPU to microblaze_load_kernel()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Also pass it through to its reset callbacks, while at it. Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- hw/microblaze_boot.c | 16 hw/microblaze_boot.h |4 ++

Re: [Qemu-devel] [PATCH v4] target-microblaze: lwx/swx: first implementation

2012-06-04 Thread Peter Crosthwaite
Thanks Stefan, Fix is up on the mailing list. I went for the simple solution of just always initing the tcg variables with tcg_temp_*new. May be a minor performance penalty but noting noticeable. Regards, Peter On Tue, Jun 5, 2012 at 6:26 AM, Stefan Weil wrote: > Hi Peter, > > this patch (which

[Qemu-devel] [PATCH 62/74] virtex_ml507: Pass PowerPCCPU to main_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to call cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/virtex_ml507.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 0e223bd..cace86b 100644 --- a/hw/v

[Qemu-devel] [PATCH 05/17] qapi: qapi-visit.py, support arrays and complex qapi definitions

2012-06-04 Thread Michael Roth
Add support for arrays in the code generators. Complex field descriptions can now be used to provide additional information to the visitor generators, such as the max size of an array, or the field within a struct to use to determine how many elements are present in the array to avoid serializing

[Qemu-devel] [PATCH 32/74] r2d: Store SuperHCPU in ResetData

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber --- hw/r2d.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index 1bd8df6..0f16e81 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -192,16 +1

[Qemu-devel] [PATCH 07/17] qapi: add open-coded visitors for QEMUTimer/struct tm types

2012-06-04 Thread Michael Roth
These are common types that don't lend themselves to script-generated visitors and require special handling. These will be useful for device state serialization. Signed-off-by: Michael Roth --- qapi/misc-qapi-visit.c | 35 +++ qapi/qc.h |7 +

[Qemu-devel] [PATCH] target-microblaze: fix swx build breakage

2012-06-04 Thread Peter A. G. Crosthwaite
The lazy initialisation of r_check was throwing an error on --enable-debug. Removed the lazy initialisation of r_check and swx_addr. Signed-off-by: Peter A. G. Crosthwaite --- target-microblaze/translate.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target-

[Qemu-devel] buildbot failure in qemu on block_openbsd_current

2012-06-04 Thread qemu
The Buildbot has detected a new failure on builder block_openbsd_current while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_current/builds/246 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: brad_openbsd_cur

Re: [Qemu-devel] [PULL 00/20 1.2] kvm updates

2012-06-04 Thread Andreas Färber
Am 05.06.2012 03:58, schrieb Anthony Liguori: > Is build bot running against uq/master? If it's not, maybe we should > add it to build bot to catch this sort of thing. That's a question for Stefan and Daniel to answer. Regards, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg

[Qemu-devel] [PATCH 59/74] ppc_prep: Pass PowerPCCPU to ppc_prep_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_prep.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 0b880a5..be2b268 100644 --- a/hw/ppc_prep.c +++

[Qemu-devel] [PATCH 49/74] spapr: Pass PowerPCCPU to spapr_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/spapr.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/spapr.c b/hw/spapr.c index 2672330..d0bddbc 100644 --- a/hw/spapr.c +++ b/hw/spapr.c

[Qemu-devel] [PATCH 46/74] target-ppc: Let cpu_ppc_init() return PowerPCCPU

2012-06-04 Thread Andreas Färber
Adapt e500 mpc8544ds machine accordingly. Turn cpu_init() into a static inline function returning CPUPPCState for backwards compatibility. Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |7 +-- target-ppc/cpu.h | 12 ++-- target-ppc/he

[Qemu-devel] [PATCH 39/74] mips_jazz: Pass MIPSCPU to main_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Hervé Poussineau --- hw/mips_jazz.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index 24959e0..bf1b799 100644 --- a/hw/mips_jazz

[Qemu-devel] [PATCH 26/74] target-i386: Pass X86CPU to do_cpu_{init, sipi}()

2012-06-04 Thread Andreas Färber
Allows to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Reviewed-by: Igor Mammedov --- cpu-exec.c |4 ++-- target-i386/cpu.h|4 ++-- target-i386/helper.c | 13 - target-i386/kvm.c|6 -- 4 files changed, 16 insertions

[Qemu-devel] [PATCH 14/17] qidl: add qidl-based generation of vmstate field bindings

2012-06-04 Thread Michael Roth
Add support for generating VMState field bindings/descriptions based on QIDL annotations. Use a look-up table with hard-coded fields for cases where we can't rely infer it from QIDL. These hard-coded fields will be quite numerous, but the majority of fields should be coverable, and as such will all

[Qemu-devel] [PATCH 01/74] target-arm: Use cpu_reset() in cpu_arm_init()

2012-06-04 Thread Andreas Färber
Commit 3c30dd5a68e9fee6af67cfd0d14ed7520820f36a (target-arm: Move reset handling to arm_cpu_reset) QOM'ified CPU reset. Complete it by replacing cpu_state_reset() with cpu_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- target-arm/helper.c |2 +- 1 files changed, 1 insert

[Qemu-devel] [PATCH 06/74] arm_boot: Pass ARMCPU to do_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Peter Maydell --- hw/arm_boot.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 7447f5c..eb2d176 100644 --- a/hw/arm_boot.c ++

[Qemu-devel] [PATCH 57/74] ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_oldworld.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index ba8f3ad..f2c6908 100644 --- a/hw/ppc

[Qemu-devel] [PATCH 17/74] target-cris: Reindent cpu_cris_init()

2012-06-04 Thread Andreas Färber
Judging by TCG variable initialization it used 8-char tabs; use 4 spaces instead. Also remove trailing whitespace. Signed-off-by: Andreas Färber Acked-by: Edgar E. Iglesias --- target-cris/translate.c | 103 --- 1 files changed, 52 insertions(+), 51

[Qemu-devel] [PATCH 41/74] mips_malta: Pass MIPSCPU to main_cpu_reset()

2012-06-04 Thread Andreas Färber
Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber --- hw/mips_malta.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index d81e8d5..dfd7b6b 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.

[Qemu-devel] [PATCH 56/74] ppc_oldworld: Use cpu_ppc_init() to obtain PowerPCCPU

2012-06-04 Thread Andreas Färber
Needed for ppc_heathrow_reset(). Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- hw/ppc_oldworld.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index 7e73d37..ba8f3ad 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_o

  1   2   3   4   >