Re: [Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-11 Thread Richard Henderson
On 09/11/2011 09:31 PM, Blue Swirl wrote: > Field 'offset' is always zero, maybe that is not interesting. Will it > become one day? It's not always zero, but only used by certain devices. r~

Re: [Qemu-devel] [PATCH 00/15] Sparc AREG0 conversion

2011-09-11 Thread Paolo Bonzini
On 09/11/2011 03:29 PM, Blue Swirl wrote: After this patch set, only load and store op helpers remain in op_helper.c. I have some patches for those but they need more thought. Have you benchmarked it? Paolo

Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Paolo Bonzini
On 09/11/2011 08:47 PM, Stefan Weil wrote: Well, Redhat has a large interest in QEMU, so I assume that Fedora is better prepared for cross compilations than most other distributions. Why are the two related? :) Fedora's cross compilation machinery is indeed used by Red Hat for some virt-relat

Re: [Qemu-devel] [PATCH 0/2] improve qemu-img conversion performance

2011-09-11 Thread Yehuda Sadeh Weinraub
On Sun, Sep 11, 2011 at 8:14 PM, Sage Weil wrote: > On Fri, 9 Sep 2011, Kevin Wolf wrote: >> Am 08.09.2011 18:36, schrieb Sage Weil: >> > On Thu, 8 Sep 2011, Kevin Wolf wrote: >> >> Am 08.09.2011 01:06, schrieb Yehuda Sadeh: >> >>> The following set of patches improve the qemu-img conversion proce

Re: [Qemu-devel] [PATCH 0/2] improve qemu-img conversion performance

2011-09-11 Thread Sage Weil
On Fri, 9 Sep 2011, Kevin Wolf wrote: > Am 08.09.2011 18:36, schrieb Sage Weil: > > On Thu, 8 Sep 2011, Kevin Wolf wrote: > >> Am 08.09.2011 01:06, schrieb Yehuda Sadeh: > >>> The following set of patches improve the qemu-img conversion process > >>> performance. When using a higher latency backend

[Qemu-devel] Re-playable trace!

2011-09-11 Thread shbi shb
Hi, Is it possible to get a re-playable trace (memory snapshot) in Qemu? Do you have any idea for adding this functionality to Qemu? I need to get a trace of execution in the guest OS, do some modification on the trace and run it again. My problem is that two execution trace of a program may not

Re: [Qemu-devel] [PATCH] qemu-doc: Remove URL which is no longer available

2011-09-11 Thread Andreas Färber
Am 11.09.2011 um 22:39 schrieb Alexander Graf: Am 10.09.2011 um 23:09 schrieb Stefan Weil : http://perso.magic.fr/l_indien/ was removed several years ago. There is obviously no mirror or any other replacement for it. I would prefer to see the sources in a public git repo and to have ppc_ro

Re: [Qemu-devel] [PATCH] qemu-doc: Remove URL which is no longer available

2011-09-11 Thread Alexander Graf
Am 10.09.2011 um 23:09 schrieb Stefan Weil : > http://perso.magic.fr/l_indien/ was removed several years ago. > There is obviously no mirror or any other replacement for it. I would prefer to see the sources in a public git repo and to have ppc_rom.bin rebuilt from that. IIUC Andreas is already

Re: [Qemu-devel] AHCI Port Interrupt Enable register cleaning on soft reset

2011-09-11 Thread Alexander Graf
Am 11.09.2011 um 16:43 schrieb Alexander Motin : > Hi. > > I've found that FreeBSD AHCI driver doesn't work with AHCI hardware > emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I > see, it clears port's Interrupt Enable register each time when reset of > any level happens.

[Qemu-devel] [PATCH] memory: simple memory tree printer

2011-09-11 Thread Blue Swirl
Add a monitor command 'info mtree' to show the memory hierarchy. Signed-off-by: Blue Swirl --- Example output: qemu-system-i386 -monitor stdio QEMU 0.15.50 monitor - type 'help' for more information (qemu) info mtree memory system addr off size 7fff -

Re: [Qemu-devel] About hotplug multifunction

2011-09-11 Thread Michael S. Tsirkin
On Sun, Sep 11, 2011 at 12:01:49PM -0300, Marcelo Tosatti wrote: > On Sun, Sep 11, 2011 at 12:23:57PM +0300, Michael S. Tsirkin wrote: > > On Fri, Sep 09, 2011 at 03:34:26PM -0300, Marcelo Tosatti wrote: > > > > > something I noted when readin our acpi code: > > > > > we currently pass eject reques

Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Stefan Weil
Am 11.09.2011 20:25, schrieb Paolo Bonzini: On 09/11/2011 05:55 PM, Stefan Weil wrote: This script can be used for cross compilations. I use it on Debian / Ubuntu to provide a cross pkg-config for MinGW (32 and 64 bit), ARM, MIPS and PowerPC. I think the lack of such script is a bug in your di

[Qemu-devel] [PATCH v2] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Stefan Weil
This script can be used for cross compilations. I use it on Debian / Ubuntu to provide a cross pkg-config for MinGW (32 and 64 bit), ARM, MIPS and PowerPC. v2: Improvements as suggested by Peter Maydell. Thanks for the review. Signed-off-by: Stefan Weil --- scripts/cross-pkg-config | 28 +

Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Paolo Bonzini
On 09/11/2011 05:55 PM, Stefan Weil wrote: This script can be used for cross compilations. I use it on Debian / Ubuntu to provide a cross pkg-config for MinGW (32 and 64 bit), ARM, MIPS and PowerPC. I think the lack of such script is a bug in your distro. Fedora provides /usr/bin/i686-pc-ming

Re: [Qemu-devel] [PATCH v5 00/32] target-xtensa: new target architecture

2011-09-11 Thread Max Filippov
> > This series adds support for Tensilica Xtensa target. > > Port status: Linux for DC232B works in the qemu. > >Not implemented xtensa options: MAC16, > >floating point coprocessor, cache option, debug option. > > > > v4 -> v5 changes: > > - implement boolean option; > > - fix v4 stylist

Re: [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Peter Maydell
On 11 September 2011 16:55, Stefan Weil wrote: > --- /dev/null > +++ b/scripts/cross-pkg-config > @@ -0,0 +1,22 @@ > +#!/bin/sh Missing "-e" > + > +# This script provides a cross pkg-config for QEMU cross compilations. > +# It will use the standard pkg-config with special options for the > +# cr

[Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-11 Thread Stefan Weil
For new C code (and maybe also for existing code), a code formatter like Artistic Style is helpful because it can fix tabs, indentation and other style issues. This option file tries to set astyle options which match QEMU's coding conventions. The quality of astyle's code formatting depends on th

Re: [Qemu-devel] [PATCH V8 03/14] Add persistent state handling to TPM TIS frontend driver

2011-09-11 Thread Stefan Berger
On 09/09/2011 05:13 PM, Paul Moore wrote: On Wednesday, August 31, 2011 10:35:54 AM Stefan Berger wrote: Index: qemu-git/hw/tpm_tis.c === --- qemu-git.orig/hw/tpm_tis.c +++ qemu-git/hw/tpm_tis.c @@ -6,6 +6,8 @@ * Author: Stefan B

[Qemu-devel] [PATCH 4/4] ESP: convert to trace framework

2011-09-11 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/esp.c | 70 - trace-events | 31 + 2 files changed, 61 insertions(+), 40 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index ca41f80..697c2c5 100644 --- a/hw/esp.c +++ b/hw/es

[Qemu-devel] [PATCH 3/4] Sparc: convert win_helper to trace framework

2011-09-11 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/win_helper.c | 30 -- trace-events |8 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/target-sparc/win_helper.c b/target-sparc/win_helper.c index f42d996..a68c649 100644 --- a/targ

[Qemu-devel] [PATCH 2/4] Sparc: convert int_helper to trace framework

2011-09-11 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/int_helper.c | 41 +++-- trace-events |7 +++ 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/target-sparc/int_helper.c b/target-sparc/int_helper.c index 3361eed..76a3fdb 100644

[Qemu-devel] [PATCH 1/4] Sparc: convert mmu_helper to trace framework

2011-09-11 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/mmu_helper.c | 64 ++--- trace-events | 10 +++ 2 files changed, 30 insertions(+), 44 deletions(-) diff --git a/target-sparc/mmu_helper.c b/target-sparc/mmu_helper.c index 5743081..8cdc224 100

[Qemu-devel] [PATCH 0/4] Trace conversion

2011-09-11 Thread Blue Swirl
This patch set depends on the previous Sparc set. Now that some op helpers are regular code, the DPRINTFs can be converted to traceponts. Convert also ESP while in the mood. Blue Swirl (4): Sparc: convert mmu_helper to trace framework Sparc: convert int_helper to trace framework Sparc: con

[Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations

2011-09-11 Thread Stefan Weil
This script can be used for cross compilations. I use it on Debian / Ubuntu to provide a cross pkg-config for MinGW (32 and 64 bit), ARM, MIPS and PowerPC. Signed-off-by: Stefan Weil --- scripts/cross-pkg-config | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) cr

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-11 Thread Stefan Hajnoczi
On Sun, Sep 11, 2011 at 4:17 PM, bala suru wrote: > Hi, > I'm not checking through the Qenu command line . I'm checking from the VM > itself . > > How to check for the  Qemu Command ..? Please keep qemu-devel@nongnu.org CCed so others can contribute to the discussion. With "QEMU command-line" I

Re: [Qemu-devel] About hotplug multifunction

2011-09-11 Thread Marcelo Tosatti
On Sun, Sep 11, 2011 at 12:23:57PM +0300, Michael S. Tsirkin wrote: > On Fri, Sep 09, 2011 at 03:34:26PM -0300, Marcelo Tosatti wrote: > > > > something I noted when readin our acpi code: > > > > we currently pass eject request for function 0 only: > > > >Name (_ADR, nr##) > > >

[Qemu-devel] AHCI Port Interrupt Enable register cleaning on soft reset

2011-09-11 Thread Alexander Motin
Hi. I've found that FreeBSD AHCI driver doesn't work with AHCI hardware emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I see, it clears port's Interrupt Enable register each time when reset of any level happens. Is is reasonable for the global controller reset. It is probabl

[Qemu-devel] [PATCH 11/15] Sparc: avoid AREG0 for CWP and PSTATE helpers

2011-09-11 Thread Blue Swirl
Make CWP and PSTATE helpers take a parameter for CPUState instead of relying on global env. Move the functions to helper.c, remove wrapper functions. Signed-off-by: Blue Swirl --- Makefile.target |2 +- target-sparc/helper.h | 32 +++--- target-sparc/translate.c | 34 -

[Qemu-devel] [PATCH 13/15] Sparc: avoid AREG0 for division op helpers

2011-09-11 Thread Blue Swirl
Make [su]div{,cc} helpers take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Signed-off-by: Blue Swirl --- target-sparc/helper.c| 76 ++ target-sparc/helper.h|8 ++-- target-sparc/op_helper.c |

[Qemu-devel] [PATCH 06/15] Sparc: split FPU and VIS op helpers

2011-09-11 Thread Blue Swirl
Move FPU op helpers to fop_helper.c. Move VIS op helpers to vis_helper.c, compile it only for Sparc64. Signed-off-by: Blue Swirl --- Makefile.target |5 +- target-sparc/fop_helper.c | 394 target-sparc/op_helper.c | 743 --

[Qemu-devel] [PATCH 08/15] Sparc: split lazy condition code handling op helpers

2011-09-11 Thread Blue Swirl
Move lazy condition code handling op helpers to cc_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |4 +- target-sparc/cc_helper.c | 486 ++ target-sparc/op_helper.c | 464 --- 3 files chan

[Qemu-devel] [PATCH 12/15] Sparc: avoid AREG0 for softint op helpers and Leon cache control

2011-09-11 Thread Blue Swirl
Make softint op helpers and Leon cache irq manager take a parameter for CPUState instead of relying on global env. Move the functions to int_helper.c. Signed-off-by: Blue Swirl --- target-sparc/cpu.h| 31 --- target-sparc/helper.h |6 +- target-sparc/int_helper.c |

[Qemu-devel] [PATCH 10/15] Sparc: split CWP and PSTATE op helpers

2011-09-11 Thread Blue Swirl
Move CWP and PSTATE op helpers to win_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |4 +- target-sparc/cpu.h|4 +- target-sparc/op_helper.c | 489 +-- target-sparc/win_helper.c | 518 +

[Qemu-devel] [PATCH 09/15] Sparc: avoid AREG0 for lazy condition code helpers

2011-09-11 Thread Blue Swirl
Make lazy condition code helpers take a parameter for CPUState instead of relying on global env. Signed-off-by: Blue Swirl --- Makefile.target |2 +- target-sparc/cc_helper.c | 73 ++--- target-sparc/helper.h|4 +- target-sparc/op_he

[Qemu-devel] [PATCH 03/15] Sparc: move trivial functions from op_helper.c

2011-09-11 Thread Blue Swirl
These functions don't need access to CPUState or already pass it, so relocating them from op_helper.c to helper.c and int_helper.c is trivial. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 41 +++ target-sparc/int_helper.c |7 ++ target-s

Re: [Qemu-devel] qemu virtIO blocking operation - question

2011-09-11 Thread Stefan Hajnoczi
On Fri, Sep 09, 2011 at 07:45:17PM -0500, Sinha, Ani wrote: > So I am writing a virtIO driver for a device that supports blocking calls > like poll() etc. Now the front end paravirtualized driver mirrors the request > to the backend "host" qemu process that then does the actual call on the host

Re: [Qemu-devel] Why qemu write/rw speed is so low?

2011-09-11 Thread Christoph Hellwig
On Fri, Sep 09, 2011 at 04:04:07PM +0200, Kevin Wolf wrote: > > need to read in the existing 4 KB, modify the 512 bytes in place, and > > write out the 4 KB block again. This is read-modify-write. In this > > worst-case scenario a 512 byte write turns into a 4 KB read followed > > by a 4 KB write

[Qemu-devel] [PATCH 14/15] Sparc: fix coding style in helper.c

2011-09-11 Thread Blue Swirl
Before the next patch, fix coding style of the areas affected. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 95 +++-- 1 files changed, 52 insertions(+), 43 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 5f8cf3

[Qemu-devel] [PATCH 04/15] Sparc: avoid AREG0 for raise_exception and helper_debug

2011-09-11 Thread Blue Swirl
Make raise_exception() and helper_debug() take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Signed-off-by: Blue Swirl --- target-sparc/helper.c| 12 ++ target-sparc/helper.h|4 +- target-sparc/op_helper.c | 100

[Qemu-devel] [PATCH 01/15] Sparc: fix coding style

2011-09-11 Thread Blue Swirl
Before the next patch, fix coding style of the areas affected. Signed-off-by: Blue Swirl --- target-sparc/helper.c | 73 +++- 1 files changed, 41 insertions(+), 32 deletions(-) diff --git a/target-sparc/helper.c b/target-sparc/helper.c index c80531a

[Qemu-devel] [PATCH 00/15] Sparc AREG0 conversion

2011-09-11 Thread Blue Swirl
After this patch set, only load and store op helpers remain in op_helper.c. I have some patches for those but they need more thought. I was too lazy to attach the patches. Instead, the patch set can be found in: git://repo.or.cz/qemu/blueswirl.git http://repo.or.cz/r/qemu/blueswirl.git Blue Swirl

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-11 Thread Alexander Graf
Am 11.09.2011 um 12:41 schrieb Avi Kivity : > On 09/08/2011 07:54 PM, Alexander Graf wrote: >> PS: Please test your patches. This one could have been found with an >> invocation >> as simple as "qemu-system-ppc". We boot into the OpenBIOS prompt by >> default, >> so you wouldn't even ha

Re: [Qemu-devel] [PATCH] PPC: Fix via-cuda memory registration

2011-09-11 Thread Avi Kivity
On 09/08/2011 07:54 PM, Alexander Graf wrote: PS: Please test your patches. This one could have been found with an invocation as simple as "qemu-system-ppc". We boot into the OpenBIOS prompt by default, so you wouldn't even have required a guest image or kernel. Sorry about that.

Re: [Qemu-devel] unable to access the serial port on the Vm

2011-09-11 Thread Stefan Hajnoczi
On Thu, Sep 08, 2011 at 10:12:06AM -0700, bala suru wrote: > Hi, > I'm running one VM on the Qemu hypervisor. > I'm tried too access the /dev/ttyS0 from the VM, but I cant access that ,. > it shows input out error . > > i.e when I do $cat /dev/ttyS0 -> it gives input output error . > what may be

Re: [Qemu-devel] About hotplug multifunction

2011-09-11 Thread Michael S. Tsirkin
On Fri, Sep 09, 2011 at 03:34:26PM -0300, Marcelo Tosatti wrote: > > > something I noted when readin our acpi code: > > > we currently pass eject request for function 0 only: > > >Name (_ADR, nr##) > > > We either need a device per function there (acpi 1.0), > > > send eject req

Re: [Qemu-devel] About hotplug multifunction

2011-09-11 Thread Michael S. Tsirkin
On Sat, Sep 10, 2011 at 02:43:11AM +0900, Isaku Yamahata wrote: > pci/pcie hot plug needs clean up for multifunction hotplug in long term. > Only single function device case works. Multifunction case is broken somwehat. > Especially the current acpi based hotplug should be replaced by > the standar

Re: [Qemu-devel] [PATCH v2] Fix X86 CPU topology in KVM mode

2011-09-11 Thread Jan Kiszka
On 2011-09-10 16:37, Bharata B Rao wrote: > On Fri, Sep 9, 2011 at 10:44 PM, Anthony Liguori > wrote: >> >> This breaks the build: >> >> CCi386-linux-user/helper.o >> /home/anthony/git/qemu/target-i386/helper.c: In function ‘cpu_x86_init’: >> /home/anthony/git/qemu/target-i386/helper.c:1260: