Re: [Qemu-devel] [PATCH 0/2] Lost VNC patches

2012-03-14 Thread Corentin Chary
On Wed, Mar 14, 2012 at 11:16 PM, Stefan Weil wrote: > Am 14.03.2012 22:46, schrieb Anthony Liguori: > >> On 03/14/2012 01:58 AM, Corentin Chary wrote: >>> >>> Hi Anthony, >>> >>> Please merge these two patchs from another age, they fix crash in the VNC >>> server (the iohandler one is only for th

Re: [Qemu-devel] Debug single program in QEMU

2012-03-14 Thread Mulyadi Santosa
On Thu, Mar 15, 2012 at 09:12, Yue Chen wrote: > Hi!~ > > Now I'd like to see what the micro-ops (intermediate operations generated by > TCG) of a single Linux or Windows program, any approach to do this under > QEMU? Thanks. are you referring to you Qemu system emulation or Qemu user mode? --

Re: [Qemu-devel] [V4 PATCH 2/5] net: announce self after vm start

2012-03-14 Thread Jason Wang
On 03/13/2012 10:23 PM, Michael S. Tsirkin wrote: On Tue, Mar 13, 2012 at 04:56:22PM +0800, Jason Wang wrote: This patch moves qemu_announce_self() to vm_start() and add a new parameters to control whether sending gratuitous packet is needed. There are several reasons to do this: - Gratuitous p

Re: [Qemu-devel] [V4 PATCH 2/5] net: announce self after vm start

2012-03-14 Thread Jason Wang
On 03/13/2012 05:18 PM, Paolo Bonzini wrote: Il 13/03/2012 09:56, Jason Wang ha scritto: This patch moves qemu_announce_self() to vm_start() and add a new parameters to control whether sending gratuitous packet is needed. There are several reasons to do this: - Gratuitous packet is also needed

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-14 Thread Craig Ringer
Correction, the bug is still present in qemu-git. It seems to be slightly harder to trigger, but that might just be luck too. Here's the crash in qemu master 217bfb445b54db618a30f3a39170bebd9fd9dbf2 . Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb63d36e0 (LWP 32412)

Re: [Qemu-devel] [PATCH 2/6] Redesign of pciinit.c (take 2)

2012-03-14 Thread Alexey Korolev
On 14/03/12 13:48, Kevin O'Connor wrote: > On Tue, Mar 13, 2012 at 05:45:19PM +1300, Alexey Korolev wrote: >> Added pci_region_entry structure and list operations to pciinit.c >> List is filled with entries during pci_check_devices. >> List is used just for printing space allocation if we were usin

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-14 Thread Craig Ringer
Thanks Jan. I was pulling git master as I saw your comment. When configured using the same command line and built with the same tools in the same environment, git master does not appear to crash the way 1.0.1 does. Given that there have been fixes in the area merged between 1.0.1 and master it seem

Re: [Qemu-devel] [RFC][PATCH 11/14 v9] introduce a new monitor command 'dump' to dump guest's memory

2012-03-14 Thread Wen Congyang
At 03/15/2012 01:18 AM, Luiz Capitulino Wrote: > On Wed, 14 Mar 2012 10:11:35 +0800 > Wen Congyang wrote: > > > You just dropped a few asynchronous bits and resent this as a synchronous > command, letting all the asynchronous infrastructure in. This is bad, as the > command is more complex th

[Qemu-devel] Debug single program in QEMU

2012-03-14 Thread Yue Chen
Hi!~ Now I'd like to see what the micro-ops (intermediate operations generated by TCG) of a single Linux or Windows program, any approach to do this under QEMU? Thanks.

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-14 Thread Jan Kiszka
Please re-test over git head. There were related fixes merged recently. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/938431 Title: Reproducible crash in slirp_remque (qemu 1.0.1) Status in QEMU:

[Qemu-devel] [Bug 938431] Re: Reproducible crash in slirp_remque (qemu 1.0.1)

2012-03-14 Thread Craig Ringer
Another crash site appears to be: #0 0xb760f0d0 in ifs_insque (ifm=0xba711478, ifmhead=0x0) at slirp/if.c:16 #1 0xb760f2dd in if_output (so=0xba60db70, ifm=0xba711478) at slirp/if.c:98 #2 0xb7610bb5 in ip_output (so=0xba60db70, m0=0xba711478) at slirp/ip_output.c:84 #3 0xb761959c in tcp_outp

Re: [Qemu-devel] [PATCH 3/7] target-unicore32: QOM'ify CPU

2012-03-14 Thread Guan Xuetao
On Wed, 2012-03-14 at 11:56 +0100, Andreas Färber wrote: > Am 14.03.2012 08:56, schrieb Guan Xuetao: > > On Wed, 2012-03-14 at 02:39 +0100, Andreas Färber wrote: > >> Embed CPUUniCore32State into UniCore32CPU. > >> > >> Contributed under GPLv2+. > >> > >> Signed-off-by: Andreas Färber > >> --- > >

Re: [Qemu-devel] [PATCH urgent] target-lm32/microblaze: Drop second CPU{LM32, MB}State typedef

2012-03-14 Thread Anthony Liguori
On 03/14/2012 07:19 PM, Andreas Färber wrote: Commit 9b9a970a23625de4ae6b7461906a9a0d98d3ca95 (target-lm32/microblaze: Typedef struct CPU{MB,LM32}State) introduced necessary typedefs for cpu_mmu_index() and mmu.h respectively. On some GCC versions this leads to "error: redefinition of typedef".

[Qemu-devel] buildbot failure in qemu on disable_kvm_i386_out_of_tree

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_i386_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_i386_out_of_tree/builds/401 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: y

Re: [Qemu-devel] [PULL] QOM CPUState v5

2012-03-14 Thread Anthony Liguori
On 03/14/2012 04:42 PM, Andreas Färber wrote: Hello Anthony, Please pull the second QOM CPU series, which frees the identifiers cpu_reset and CPUState and introduces TYPE_CPU. Cc: Anthony Liguori The following changes since commit 418ba9e5d6849ef2e8512d8853628ce4bf37937a: qom: Introduce ob

[Qemu-devel] buildbot failure in qemu on disable_kvm_x86_64_debian_6_0

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_6_0/builds/213 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build:

Re: [Qemu-devel] [RFC PATCH 06/17] block: use bdrv_{co, aio}_discard for write_zeroes operations

2012-03-14 Thread Richard Laager
On Wed, 2012-03-14 at 08:41 +0100, Paolo Bonzini wrote: > Il 13/03/2012 20:13, Richard Laager ha scritto: > >>> > > * For SCSI, report an unmap_granularity to the guest as follows: > >>> > > max(logical_block_size, discard_granularity) / > >>> > > logical_block_size > >> > > >> > This

[Qemu-devel] buildbot failure in qemu on disable_kvm_i386_debian_6_0

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder disable_kvm_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/disable_kvm_i386_debian_6_0/builds/214 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuz

[Qemu-devel] [PATCH urgent] target-lm32/microblaze: Drop second CPU{LM32, MB}State typedef

2012-03-14 Thread Andreas Färber
Commit 9b9a970a23625de4ae6b7461906a9a0d98d3ca95 (target-lm32/microblaze: Typedef struct CPU{MB,LM32}State) introduced necessary typedefs for cpu_mmu_index() and mmu.h respectively. On some GCC versions this leads to "error: redefinition of typedef". Drop the original typedef to hopefully fix the

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

2012-03-14 Thread Michael Roth
On Thu, Mar 15, 2012 at 01:01:04AM +0100, Andreas Färber wrote: > Am 15.03.2012 01:16, schrieb q...@buildbot.b1-systems.de: > > The Buildbot has detected a new failure on builder default_s390 while > > building qemu. > > Full details are available at: > > http://buildbot.b1-systems.de/qemu/builde

Re: [Qemu-devel] [PATCH v3 0/7] RTC: New logic to emulate RTC

2012-03-14 Thread Zhang, Yang Z
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Wednesday, March 14, 2012 4:54 PM > To: Zhang, Yang Z > Cc: qemu-devel@nongnu.org; Jan Kiszka; k...@vger.kernel.org; > aligu...@us.ibm.com; Marcelo Tosatti > Subject: Re: [PATCH v3 0/7] RTC: New logic to emulate

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

2012-03-14 Thread Andreas Färber
Am 15.03.2012 01:16, schrieb q...@buildbot.b1-systems.de: > The Buildbot has detected a new failure on builder default_s390 while > building qemu. > Full details are available at: > http://buildbot.b1-systems.de/qemu/builders/default_s390/builds/190 > > Buildbot URL: http://buildbot.b1-systems.d

[Qemu-devel] buildbot failure in qemu on default_i386_debian_6_0

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

[Qemu-devel] buildbot failure in qemu on default_mingw32

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/207 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason:

[Qemu-devel] [PATCH v5 27/43] m68k-semi: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUM68KState/g" m68k-semi.c Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- m68k-semi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m68k-semi.c b/m68k-semi.c index bab01ee..3bb30cd 100644 --- a/m68k-semi.c +++

[Qemu-devel] buildbot failure in qemu on default_i386_out_of_tree

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_i386_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_out_of_tree/builds/399 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Bu

[Qemu-devel] [PATCH v5 41/43] xtensa hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/xtensa_*.[hc]; do sed -i "s/CPUState/CPUXtensaState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/xtensa_lx60.c |4 ++-- hw/xtensa_pic.c | 16 hw/xtensa_sim.c |2 +- 3 files changed, 11 inser

[Qemu-devel] buildbot failure in qemu on default_x86_64_out_of_tree

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_out_of_tree/builds/398 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuk

[Qemu-devel] [PATCH v5 31/43] cris hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/cris-boot.[hc] hw/cris_pic_cpu.c hw/axis_dev88.c hw/etraxfs.h hw/etraxfs_ser.c; do sed -i "s/CPUState/CPUCRISState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/axis_dev88.c |2 +- hw/cris-boot.c|4 ++-- h

[Qemu-devel] [PATCH v5 08/43] hw/mc146818: Drop unneeded #includes

2012-03-14 Thread Andreas Färber
pc.h and apic.h are not needed; apic.h would drag in x86 CPUState and is now included directly for TARGET_I386. isa.h is already #included from mc146818rtc.h. Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- hw/mc146818rtc.c |2 -- 1 files changed, 0 insertions(+), 2 deletion

[Qemu-devel] buildbot failure in qemu on default_s390

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_s390 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_s390/builds/190 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: qemu-s390.opensuse.org Build Reas

[Qemu-devel] [PATCH v5 17/43] target-m68k: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUM68KState/g" target-m68k/*.[hc] sed -i "s/#define CPUM68KState/#define CPUState/" target-m68k/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-m68k/cpu.h | 16 +- target-m68k/helper.c| 78 ++

[Qemu-devel] buildbot failure in qemu on default_x86_64_rhel61

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_rhel61 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_rhel61/builds/207 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 B

[Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2012-03-14 Thread qemu
The Buildbot has detected a new failure on builder default_i386_rhel61 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/206 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61_32bit

[Qemu-devel] buildbot failure in qemu on default_x86_64_debian_6_0

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

[Qemu-devel] [PATCH v5 26/43] arm-semi: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUARMState/g" arm-semi.c Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- arm-semi.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arm-semi.c b/arm-semi.c index 873518a..8debd19 100644 --- a/arm-semi.c +++

[Qemu-devel] [PATCH v5 24/43] target-unicore32: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUUniCore32State/g" target-unicore32/*.[hc] sed -i "s/#define CPUUniCore32State/#define CPUState/" target-unicore32/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-unicore32/cpu.h | 24 target-unicore

[Qemu-devel] [PATCH v5 29/43] alpha hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/alpha_*.[hc]; do sed -i "s/CPUState/CPUAlphaState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/alpha_dp264.c |2 +- hw/alpha_sys.h |2 +- hw/alpha_typhoon.c | 14 +++--- 3 files changed, 9 insert

[Qemu-devel] [PATCH v2 2/5] vga_hw_screen_dump: add Error** param

2012-03-14 Thread Alon Levy
Signed-off-by: Alon Levy --- console.c |5 +++-- console.h |6 -- hw/blizzard.c |3 ++- hw/g364fb.c |4 +++- hw/omap_lcdc.c |4 +++- hw/qxl.c|6 -- hw/tcx.c| 13 + hw/vga.c|7 +-- hw/vmware_vga.c |

Re: [Qemu-devel] [PATCH 0/7] QOM'ify UniCore32 CPU

2012-03-14 Thread Anthony Liguori
On 03/14/2012 03:02 PM, Blue Swirl wrote: On Wed, Mar 14, 2012 at 01:39, Andreas Färber wrote: Hello, Based on qom-cpu v4 and object_class_get_list() v2, this series converts the UniCore32 CPU to QOM. Code-wise, target-unicore32 is pretty close to target-arm and faces a similar issue of CPU-de

[Qemu-devel] [PATCH v5 36/43] mips hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/mips_*.[hc]; do sed -i "s/CPUState/CPUMIPSState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/mips_cpudevs.h |4 ++-- hw/mips_fulong2e.c | 10 +- hw/mips_int.c |6 +++--- hw/mips_jazz.c |6

[Qemu-devel] [PATCH v5 04/43] monitor: Avoid CPUState in read/write functions

2012-03-14 Thread Andreas Färber
Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- gdbstub.c | 56 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index ef95ac2..b5ec362 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -533,7

[Qemu-devel] [PATCH v5 10/43] darwin-user: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Use CPU*State where applicable. Signed-off-by: Andreas Färber --- darwin-user/main.c | 14 +++--- darwin-user/signal.c |4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/darwin-user/main.c b/darwin-user/main.c index 13c1f05..f5cadc7 100644 --- a/darwin-user/m

[Qemu-devel] [PATCH v5 14/43] target-cris: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUCRISState/g" target-cris/*.[hc] sed -i "s/#define CPUCRISState/#define CPUState/" target-cris/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-cris/cpu.h | 12 +- target-cris/helper.c| 14 ++

[Qemu-devel] [PATCH v5 20/43] target-ppc: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUPPCState/g" target-ppc/*.[hc] sed -i "s/#define CPUPPCState/#define CPUState/" target-ppc/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-ppc/cpu.h| 38 ++-- target-ppc/helper.c | 80

[Qemu-devel] [PATCH v5 12/43] target-alpha: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUAlphaState/g" target-alpha/*.[hc] sed -i "s/#define CPUAlphaState/#define CPUState/" target-alpha/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-alpha/cpu.h | 24 ++-- target-alpha/helper.c| 1

[Qemu-devel] [PATCH v5 09/43] linux-user: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
In target-specific code use CPU*State. While at it, fix indentation on those lines. Signed-off-by: Andreas Färber --- linux-user/elfload.c | 24 +++--- linux-user/m68k/syscall.h |2 +- linux-user/main.c | 28 +++--- linux-user/signal.c | 201 +++--

[Qemu-devel] [PATCH v5 15/43] target-i386: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUX86State/g" target-i386/*.[hc] sed -i "s/#define CPUX86State/#define CPUState/" target-i386/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-i386/cpu.h | 34 +- target-i386/helper.c| 38 +- targ

[Qemu-devel] [PATCH v5 22/43] target-sh4: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUSH4State/g" target-sh4/*.[hc] sed -i "s/#define CPUSH4State/#define CPUState/" target-sh4/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-sh4/cpu.h | 10 +- target-sh4/helper.c| 28 ++--

[Qemu-devel] [PATCH v5 25/43] target-xtensa: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUXtensaState/g" target-xtensa/*.[hc] sed -i "s/#define CPUXtensaState/#define CPUState/" target-xtensa/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-xtensa/cpu.h | 44 ++-- t

[Qemu-devel] [PATCH v5 21/43] target-s390x: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUS390XState/g" target-s390x/*.[hc] sed -i "s/#define CPUS390XState/#define CPUState/" target-s390x/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-s390x/cpu.h | 46 +++--- target-s390x/helper.

[Qemu-devel] [PATCH v5 02/43] Rename cpu_reset() to cpu_state_reset()

2012-03-14 Thread Andreas Färber
Frees the identifier cpu_reset for QOM CPUs (manual rename). Don't hide the parameter type behind explicit casts, use static functions with strongly typed argument to indirect. Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- bsd-user/main.c |2 +- cpu-all.h

[Qemu-devel] [PATCH v5 33/43] lm32 hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/lm32_boards.c hw/milkymist.c; do sed -i "s/CPUState/CPULM32State/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/lm32_boards.c | 10 +- hw/milkymist.c |8 2 files changed, 9 insertions(+), 9 deleti

[Qemu-devel] [PATCH v5 16/43] target-lm32: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPULM32State/g" target-lm32/*.[hc] sed -i "s/#define CPULM32State/#define CPUState/" target-lm32/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-lm32/cpu.h | 28 ++-- target-lm32/helper.c|

[Qemu-devel] [PATCH v2 1/5] error: add error_set_file_open_failed

2012-03-14 Thread Alon Levy
Signed-off-by: Alon Levy --- cpus.c |4 ++-- error.c | 44 error.h |4 qerror.c | 36 qerror.h | 27 +++ qga

[Qemu-devel] [PATCH v2 5/5] blockdev: use error_set_file_open_failed

2012-03-14 Thread Alon Levy
This is a little trickier, since those calls chain in many fun ways and produce sometimes their own return values reusing existing errno values for similar meanings. In that respect error_set_file_open_failed specifically ignores EINVAL, ENOTSUP and ENOENT. The first two simply are not returned by

[Qemu-devel] [PATCH v2 3/5] qapi: convert screendump

2012-03-14 Thread Alon Levy
Signed-off-by: Alon Levy --- hmp-commands.hx |3 +-- hmp.c|8 hmp.h|1 + monitor.c|8 qapi-schema.json | 13 + qmp-commands.hx |5 + qmp.c|5 + 7 files changed, 29 insertions(+), 14 delet

[Qemu-devel] [PATCH v2 4/5] vga: ppm_save(): Return error on failure

2012-03-14 Thread Alon Levy
From: Luiz Capitulino This makes all devices using ppm_save() return an error appropriately when the screendump command fails. Based on a code by Anthony Liguori. Signed-off-by: Luiz Capitulino Signed-off-by: Alon Levy --- hw/blizzard.c |2 +- hw/qxl.c|2 +- hw/vga.c

[Qemu-devel] [PATCH v2 0/5] screendump qapi convertion

2012-03-14 Thread Alon Levy
The blockdev patch is more RFC'ish, and not actually related. It is just a natural candidate to reuse the error_set_file_open_failed introduced by the first patch for usage in ppm_save but also useful for other places that all call fopen. v2 changes: split screendump convertion to an addition "ad

[Qemu-devel] [PATCH v5 11/43] bsd-user: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Use CPU*State where applicable. Signed-off-by: Andreas Färber --- bsd-user/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index c3af395..78533d5 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -63,7 +63,7 @@ void gemu_lo

[Qemu-devel] [PATCH v5 34/43] m68k hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/an5206.c hw/dummy_m68k.c hw/mcf.h hw/mcf5206.c hw/mcf5208.c hw/mcf_intc.c; do sed -i "s/CPUState/CPUM68KState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/an5206.c |2 +- hw/dummy_m68k.c |2 +- hw/mcf.h

[Qemu-devel] [PATCH v5 18/43] target-microblaze: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUMBState/g" target-microblaze/*.[hc] sed -i "s/#define CPUMBState/#define CPUState/" target-microblaze/cpu.h Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- target-microblaze/cpu.h | 30 +++--- target-microblaze/h

[Qemu-devel] [PATCH v5 07/43] target-unicore32: Rename to CPUUniCore32State

2012-03-14 Thread Andreas Färber
This aids in refactoring CPUState by adopting the common naming scheme. Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- target-unicore32/cpu.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h b/target-unicore32/cpu.h index f72

[Qemu-devel] [PATCH v5 05/43] target-lm32/microblaze: Typedef struct CPU{MB, LM32}State

2012-03-14 Thread Andreas Färber
Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- target-lm32/cpu.h |1 + target-microblaze/cpu.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h index b6b6b4c..cc9b53b 100644 --- a/target-lm32/cpu.h +++ b/targ

Re: [Qemu-devel] [PATCH RFC v4 03/20] target-arm: Embed CPUARMState in QOM ARMCPU

2012-03-14 Thread Andreas Färber
Am 13.03.2012 14:18, schrieb Paolo Bonzini: > Il 10/03/2012 17:53, Andreas Färber ha scritto: >> /** >> * ARMCPU: >> + * @env: Legacy CPU state. >> * >> * An ARM CPU core. >> */ >> @@ -58,7 +60,17 @@ typedef struct ARMCPU { >> /*< private >*/ >> CPUState parent_obj; >> /*< p

[Qemu-devel] [PATCH v5 06/43] target-sparc: Typedef struct CPUSPARCState early

2012-03-14 Thread Andreas Färber
Will be needed for qemu_irq_ack callback. Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- target-sparc/cpu.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 38a7074..8098669 100644 --- a/target-sparc/cpu.

[Qemu-devel] [PATCH v5 32/43] i386 hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/apic.h hw/kvm/apic.c hw/kvmvapic.c hw/pc.c hw/vmport.c hw/xen_machine_pv.c; do sed -i "s/CPUState/CPUX86State/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/apic.h |2 +- hw/kvm/apic.c |2 +- hw/k

[Qemu-devel] [PATCH v5 03/43] monitor: Don't access registers through CPUState

2012-03-14 Thread Andreas Färber
Use CPUX86State etc. instead (hand-converted). Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- monitor.c | 488 ++-- 1 files changed, 244 insertions(+), 244 deletions(-) diff --git a/monitor.c b/monitor.c index cbdfbad..e3

Re: [Qemu-devel] [PATCH 0/2] Lost VNC patches

2012-03-14 Thread Stefan Weil
Am 14.03.2012 22:46, schrieb Anthony Liguori: On 03/14/2012 01:58 AM, Corentin Chary wrote: Hi Anthony, Please merge these two patchs from another age, they fix crash in the VNC server (the iohandler one is only for the threaded server). Applied. Thanks. Regards, Anthony Liguori The c

[Qemu-devel] [PATCH v5 43/43] qom: Introduce CPU class

2012-03-14 Thread Andreas Färber
Reintroduce CPUState as QOM object: It's abstract and derived directly from TYPE_OBJECT for compatibility with the user emulators. The identifier CPUState avoids conflicts between CPU() and the struct. Introduce $(qom-twice-y) to build it separately for system and for user emulators. Prepare a vi

[Qemu-devel] [RFC] qemu-iotest only for Linux?

2012-03-14 Thread Stefan Weil
Hi, What's the reason for "_supported_os Linux" in each test? Because of this statement, the tests only run on Linux today, although they could also run on BSD, w32 and other operating systems (maybe small fixes are needed). I don't think that adding every possible OS to each test would be a goo

[Qemu-devel] [PATCH v5 40/43] sparc hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/sun4m.c hw/sun4u.c hw/grlib.h hw/leon3.c; do sed -i "s/CPUState/CPUSPARCState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/grlib.h |2 +- hw/leon3.c |8 hw/sun4m.c | 12 ++-- hw/sun4u.c | 24

[Qemu-devel] [PATCH v5 35/43] microblaze hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/microblaze_*.[hc] hw/petalogix_ml605_mmu.c hw/petalogix_s3adsp1800_mmu.c; do sed -i "s/CPUState/CPUMBState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/microblaze_boot.c |8 hw/microblaze_boot.h

[Qemu-devel] [PATCH v5 28/43] xtensa-semi: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: sed -i "s/CPUState/CPUXtensaState/g" xtensa-semi.c Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- xtensa-semi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xtensa-semi.c b/xtensa-semi.c index ba0e828..5754b77 100644 --- a/xtensa-

Re: [Qemu-devel] [PATCH][v2] configure: change endianness test

2012-03-14 Thread Paul Brook
> Contrary to Paul's argument QEMU does not only support a fixed > set of known host architectures, but also unknown hosts (via TCI). > For those, there remains a small chance that they are big endian > and that they get the wrong endianness now. TCI is still experimental, > so I don't care too muc

Re: [Qemu-devel] [PATCH 0/2] Lost VNC patches

2012-03-14 Thread Anthony Liguori
On 03/14/2012 01:58 AM, Corentin Chary wrote: Hi Anthony, Please merge these two patchs from another age, they fix crash in the VNC server (the iohandler one is only for the threaded server). Applied. Thanks. Regards, Anthony Liguori Thanks, Corentin Chary (1): vnc: don't mess up wit

[Qemu-devel] [PATCH v5 30/43] arm hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/arm-misc.h hw/arm_boot.c hw/arm_pic.c hw/armv7m.c hw/exynos4210.h hw/highbank.c hw/integratorcp.c hw/musicpal.c hw/omap.h hw/pxa.h hw/pxa2xx_gpio.c hw/pxa2xx_pic.c hw/realview.c hw/strongarm.h hw/versatilepb.c hw/vexpress.c hw/xilinx_zynq.c ; do sed -i

[Qemu-devel] [PATCH v5 38/43] s390x hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/s390-*.[hc]; do sed -i "s/CPUState/CPUS390XState/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/s390-virtio-bus.c |6 +++--- hw/s390-virtio.c | 16 2 files changed, 11 insertions(+), 11 deletion

[Qemu-devel] [PATCH v5 39/43] sh4 hw/: Don't use CPUState

2012-03-14 Thread Andreas Färber
Scripted conversion: for file in hw/sh.h hw/shix.c hw/r2d.c; do sed -i "s/CPUState/CPUSH4State/g" $file done Signed-off-by: Andreas Färber Acked-by: Anthony Liguori --- hw/r2d.c |6 +++--- hw/sh.h |2 +- hw/shix.c |2 +- 3 files changed, 5 insertions(+), 5 deletions(-) d

[Qemu-devel] [PATCH v5 01/43] PPC: 405: Use proper CPU reset

2012-03-14 Thread Andreas Färber
From: Alexander Graf On ppc405ep there is a register that allows for software to reset the core, but not the whole system. Implement this reset using a reset interrupt. This gets rid of a bunch of #if 0'ed code. Reported-by: Andreas Färber Signed-off-by: Alexander Graf Signed-off-by: Andreas

[Qemu-devel] [PULL] QOM CPUState v5

2012-03-14 Thread Andreas Färber
Hello Anthony, Please pull the second QOM CPU series, which frees the identifiers cpu_reset and CPUState and introduces TYPE_CPU. Cc: Anthony Liguori The following changes since commit 418ba9e5d6849ef2e8512d8853628ce4bf37937a: qom: Introduce object_class_get_list() (2012-03-14 15:30:39 -0500

Re: [Qemu-devel] [PATCH][v2] configure: change endianness test

2012-03-14 Thread Stefan Weil
Am 14.03.2012 22:37, schrieb Peter Maydell: On 14 March 2012 21:24, Stefan Weil wrote: Contrary to Paul's argument QEMU does not only support a fixed set of known host architectures, but also unknown hosts (via TCI). For those, there remains a small chance that they are big endian and that they

Re: [Qemu-devel] [PATCH][v2] configure: change endianness test

2012-03-14 Thread Peter Maydell
On 14 March 2012 21:24, Stefan Weil wrote: > Contrary to Paul's argument QEMU does not only support a fixed > set of known host architectures, but also unknown hosts (via TCI). > For those, there remains a small chance that they are big endian > and that they get the wrong endianness now. TCI is s

Re: [Qemu-devel] [PATCH][v2] configure: change endianness test

2012-03-14 Thread Stefan Weil
Am 14.03.2012 21:37, schrieb Stuart Yoder: From: Stuart Yoder Remove the runtime check for endianness, and for platforms that can be bit or little endian do a compile time check. This resolves an issue encountered building QEMU under Yocto which was not setting --cross-prefix. Signed-off-by:

Re: [Qemu-devel] [PATCH 2/7] target-unicore32: Relicense to GPLv2+

2012-03-14 Thread Anthony Liguori
On 03/14/2012 04:09 PM, Stefan Weil wrote: Am 14.03.2012 02:39, schrieb Andreas Färber: Adopt the license text suggested by Guan Xue-tao for all files except helper.c, to which Anthony Liguori (IBM) contributed a g_malloc() call. Signed-off-by: Andreas Färber Signed-off-by: Guan Xuetao Signed

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_class_get_list()

2012-03-14 Thread Anthony Liguori
On 02/25/2012 04:07 PM, Andreas Färber wrote: This function allows to obtain a singly-linked list of classes, which can be sorted by the caller. Signed-off-by: Andreas Färber Cc: Anthony Liguori Applied. Thanks. Regards, Anthony Liguori --- v1 -> v2: * Instead of object_class_foreach

Re: [Qemu-devel] [PATCH V2 0/2] QOM: small object creation fix

2012-03-14 Thread Anthony Liguori
On 02/28/2012 05:57 AM, Igor Mitsyanko wrote: Eliminate impossibility of creating objects of types with @instance_size == 0. Applied all. Thanks. Regards, Anthony Liguori v1->v2: type's instance size now initialized during type initialization. type_class_init() renamed (in additi

Re: [Qemu-devel] [PATCH] kvmvapic: align start address as well as size

2012-03-14 Thread Anthony Liguori
On 03/06/2012 09:50 AM, Avi Kivity wrote: The kvmvapic code remaps a section of ROM as RAM to allow the guest to maintain state there. It is careful to align the section size to a page boundary, to avoid creating subpages, but neglects to do the same for the start address. These leads to an ass

Re: [Qemu-devel] [PATCH 2/7] target-unicore32: Relicense to GPLv2+

2012-03-14 Thread Stefan Weil
Am 14.03.2012 02:39, schrieb Andreas Färber: Adopt the license text suggested by Guan Xue-tao for all files except helper.c, to which Anthony Liguori (IBM) contributed a g_malloc() call. Signed-off-by: Andreas Färber Signed-off-by: Guan Xuetao Signed-off-by: Stefan Weil Signed-off-by: Blue Sw

[Qemu-devel] [PATCH][v2] configure: change endianness test

2012-03-14 Thread Stuart Yoder
From: Stuart Yoder Remove the runtime check for endianness, and for platforms that can be bit or little endian do a compile time check. This resolves an issue encountered building QEMU under Yocto which was not setting --cross-prefix. Signed-off-by: Stuart Yoder --- -v2: removed the dynamic r

Re: [Qemu-devel] [PATCH RFC v4 13/44] target-alpha: Don't overuse CPUState

2012-03-14 Thread Peter Maydell
On 14 March 2012 20:50, Andreas Färber wrote: > Peter's Acked-by was added manually, so if re-running the script due to > conflicts it would need to be re-added. Or you could just drop it, I don't pay that much attention :-) -- PMM

Re: [Qemu-devel] [PATCH RFC v4 13/44] target-alpha: Don't overuse CPUState

2012-03-14 Thread Andreas Färber
Am 13.03.2012 19:10, schrieb Anthony Liguori: > On 03/09/2012 08:27 PM, Andreas Färber wrote: >> Scripted conversion: >>sed -i "s/CPUState/CPUAlphaState/g" target-alpha/*.[hc] >>sed -i "s/#define CPUAlphaState/#define CPUState/" target-alpha/cpu.h > > Acked-by: Anthony Liguori > > For 13

Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: Fix call syntax for qemu-img

2012-03-14 Thread Stefan Weil
Am 14.03.2012 20:08, schrieb Eric Blake: On 03/14/2012 12:57 PM, Stefan Weil wrote: qemu-img requires first options, then file name, then size. GNU getopt also allows options at the end, but POSIX getopt doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX behaviour with GNU getopt, too.

Re: [Qemu-devel] [PATCH RFC v4 44/44] qom: Introduce CPU class

2012-03-14 Thread Anthony Liguori
On 03/14/2012 03:37 PM, Andreas Färber wrote: Am 14.03.2012 21:37, schrieb Igor Mitsyanko: On 13.03.2012 3:13 PM, Andreas Färber wrote: I never heard anyone wanting to generalize reset so far. I don't think it belongs into Object at least. Maybe DeviceState. Anthony? Paolo? We can have a sp

Re: [Qemu-devel] [PATCH v2 1/3] Add support for 64bit ARM system registers

2012-03-14 Thread Peter Maydell
On 14 March 2012 19:38, Michael Roth wrote: > On Wed, Mar 14, 2012 at 10:09:09PM +0300, Alexey Starikovskiy wrote: >> Do I need to do anything beside following or not? > > Not sure, ARM folks? > > My suggestion would be to lose the the catch-all -EINVAL error we > throw in machine.c:cpu_load() whe

Re: [Qemu-devel] [PATCH RFC v4 44/44] qom: Introduce CPU class

2012-03-14 Thread Andreas Färber
Am 14.03.2012 21:37, schrieb Igor Mitsyanko: > On 13.03.2012 3:13 PM, Andreas Färber wrote: > >> I never heard anyone wanting to generalize reset so far. I don't think >> it belongs into Object at least. Maybe DeviceState. Anthony? Paolo? >> > > We can have a special object for this, let's call i

Re: [Qemu-devel] [PATCH] kvmvapic: align start address as well as size

2012-03-14 Thread Anthony Liguori
On 03/06/2012 09:50 AM, Avi Kivity wrote: The kvmvapic code remaps a section of ROM as RAM to allow the guest to maintain state there. It is careful to align the section size to a page boundary, to avoid creating subpages, but neglects to do the same for the start address. These leads to an ass

[Qemu-devel] [Bug 918791] Re: qemu-kvm dies when using vmvga driver and unity in the guest

2012-03-14 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-kvm - 1.0+noroms-0ubuntu7 --- qemu-kvm (1.0+noroms-0ubuntu7) precise; urgency=low [ Dave Walker ] * debian/patches/expose_vmx_qemu64cpu.patch: Expose VMX cpuid feature to the default "qemu64" CPU type, supporting Intel compatible VMX nest

Re: [Qemu-devel] [Bug 948675] [NEW] QEMU is crashing when called with "-vga none"

2012-03-14 Thread Fabiano Fidêncio
Anthony, See http://thread.gmane.org/gmane.comp.emulators.qemu/139580 This patch (from Avi) fix the problem, at least, in my case. On Wed, Mar 14, 2012 at 4:59 PM, Anthony Liguori wrote: > On 03/06/2012 10:22 PM, fidencio wrote: >> >> Public bug reported: >> >> QEMU is crashing when called with

Re: [Qemu-devel] [PATCH 2/7] target-unicore32: Relicense to GPLv2+

2012-03-14 Thread Blue Swirl
On Wed, Mar 14, 2012 at 01:39, Andreas Färber wrote: > Adopt the license text suggested by Guan Xue-tao for all files except > helper.c, to which Anthony Liguori (IBM) contributed a g_malloc() call. > > Signed-off-by: Andreas Färber > Signed-off-by: Guan Xuetao > Signed-off-by: Stefan Weil > Si

  1   2   3   4   >