[Qemu-devel] [PATCH] usb-bus: use snprintf

2011-01-23 Thread Blue Swirl
Avoid this warning from OpenBSD linker: LINK i386-softmmu/qemu ../usb-bus.o(.text+0x27c): In function `usb_get_fw_dev_path': /src/qemu/hw/usb-bus.c:294: warning: sprintf() is often misused, please use snprintf() Signed-off-by: Blue Swirl --- hw/usb-bus.c | 12 +++- 1 files changed,

[Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Dushyant Bansal
Hi all, I have configured and built qemu with device tree support. qemu-version: 0.13.50 I have built kernel image (uImage) for bamboo using powerpc-440 toolchain. kernel-version: 2.6.37-rc6+ When I try to run this command, # qemu-system-ppcemb -nographic -m 128 -M bamboo -kernel uImage -appen

Re: [Qemu-devel] [PATCH 2/3] FVD: Added the simulated 'blksim' driver

2011-01-23 Thread Andreas Färber
Am 21.01.2011 um 23:19 schrieb Chunqiang Tang: diff --git a/block/blksim.c b/block/blksim.c new file mode 100644 index 000..a92ba11 --- /dev/null +++ b/block/blksim.c Some formal comments, since you're introducing a new file: @@ -0,0 +1,752 @@ +/* Headers usually start with a one-line

Re: [Qemu-devel] [PATCH 2/3] ppc405: Fix memory leak

2011-01-23 Thread Andreas Färber
Am 22.01.2011 um 13:02 schrieb Stefan Weil: Signed-off-by: Stefan Weil Acked-by: Andreas Färber --- hw/ppc405_boards.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index b1d2b94..912757b 100644 --- a/hw/ppc405_boards.c +++

Re: [Qemu-devel] Re: [PATCH] audio: consolidate audio_init()

2011-01-23 Thread Andreas Färber
Am 21.01.2011 um 23:27 schrieb malc: On Fri, 21 Jan 2011, Blue Swirl wrote: On Fri, Jan 21, 2011 at 10:53 AM, Isaku Yamahata > wrote: consolidate audio_init() and remove references to shoundhw. Cc: Blue Swirl Signed-off-by: Isaku Yamahata Don't see the point of first hunk. No objections o

[Qemu-devel] Re: [PATCH] pci/pcie: make pci_find_device() ARI aware.

2011-01-23 Thread Michael S. Tsirkin
On Sat, Jan 22, 2011 at 01:39:57AM +0900, Isaku Yamahata wrote: > On Fri, Jan 21, 2011 at 04:29:41PM +0200, Michael S. Tsirkin wrote: > > On Fri, Jan 21, 2011 at 07:44:16PM +0900, Isaku Yamahata wrote: > > > On Thu, Jan 20, 2011 at 04:15:48PM +0200, Michael S. Tsirkin wrote: > > > > On Thu, Jan 20,

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Rob Landley
On 01/23/2011 06:59 AM, Dushyant Bansal wrote: > Hi all, > > I have configured and built qemu with device tree support. > qemu-version: 0.13.50 > I have built kernel image (uImage) for bamboo using powerpc-440 toolchain. > kernel-version: 2.6.37-rc6+ > > When I try to run this command, > # qemu-

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Dushyant Bansal
On Monday 24 January 2011 12:12 AM, Rob Landley wrote: On 01/23/2011 06:59 AM, Dushyant Bansal wrote: Hi all, I have configured and built qemu with device tree support. qemu-version: 0.13.50 I have built kernel image (uImage) for bamboo using powerpc-440 toolchain. kernel-version: 2.6.37-rc

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Rob Landley
On 01/23/2011 01:01 PM, Dushyant Bansal wrote: > I am also using > "cross-compiler-powerpc-440fp" > from the aboriginal project > (http://www.landley.net/aboriginal/downloads/binaries/) to build the > kernel

[Qemu-devel] Playing with virtfs.

2011-01-23 Thread Rob Landley
Using yesterday's -git, following the instructions in http://wiki.qemu.org/Documentation/9psetup (which is missing a kernel symbol, you need to add CONFIG_VIRTIO_PCI to your kernel too), I managed to mount a read-only virtfs filesystem, adding this to the qemu-system-x86_64 command line: -virtfs l

[Qemu-devel] [PATCH] linux-user/FLAT: allow targets to override FLAT reloc processing

2011-01-23 Thread Mike Frysinger
This brings flatload.c more in line with the current Linux FLAT loader which allows targets to handle FLAT relocations in their own way. For the common behavior, the new functions get stubbed out. Signed-off-by: Mike Frysinger --- Makefile.target |2 +- linux-user/flatload.c|

[Qemu-devel] [PATCH v2] linux-user/elfload: add FDPIC support

2011-01-23 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- v2 - tweaked loadseg order - fixed pt_dynamic addresses - verified to actually work with FDPIC ELFs elf.h| 19 + linux-user/elfload.c | 71 ++ linux-user/qemu

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Andreas Färber
Am 23.01.2011 um 19:42 schrieb Rob Landley: On 01/23/2011 06:59 AM, Dushyant Bansal wrote: When I try to run this command, # qemu-system-ppcemb -nographic -m 128 -M bamboo -kernel uImage - append "" I get the following output and qemu just hangs there: Trying to read privileged spr 947 3b3

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Dushyant Bansal
Those are board emulations. Does it have a 440 _cpu_ emulation? ./qemu-system-ppc -cpu ? | grep 440 This is the output. PowerPC 440-Xilinx PVR 7ff21910 Is this right for my requirement? This is qemu version 0.13.50. And, it seems this support has been added recently. It is missing

Re: [Qemu-devel] [PATCH] linux-user/FLAT: allow targets to override FLAT reloc processing

2011-01-23 Thread Mike Frysinger
On Sun, Jan 23, 2011 at 14:51, Mike Frysinger wrote: > This brings flatload.c more in line with the current Linux FLAT loader > which allows targets to handle FLAT relocations in their own way.  For > the common behavior, the new functions get stubbed out. please ignore this for now (it's not work

[Qemu-devel] [PATCH] linux-user: add ppoll syscall support

2011-01-23 Thread Mike Frysinger
Some architectures (like Blackfin) only implement ppoll (and skip poll). So add support for it using existing poll code. Signed-off-by: Mike Frysinger --- linux-user/syscall.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Dushyant Bansal
On Monday 24 January 2011 01:22 AM, Andreas Färber wrote: Am 23.01.2011 um 19:42 schrieb Rob Landley: On 01/23/2011 06:59 AM, Dushyant Bansal wrote: When I try to run this command, # qemu-system-ppcemb -nographic -m 128 -M bamboo -kernel uImage -append "" I get the following output and qe

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Edgar E. Iglesias
On Mon, Jan 24, 2011 at 01:38:35AM +0530, Dushyant Bansal wrote: > On Monday 24 January 2011 01:22 AM, Andreas Färber wrote: > > Am 23.01.2011 um 19:42 schrieb Rob Landley: > > > >> On 01/23/2011 06:59 AM, Dushyant Bansal wrote: > >>> When I try to run this command, > >>> # qemu-system-ppcemb -nog

Re: [Qemu-devel] [PATCH] linux-user: add ppoll syscall support

2011-01-23 Thread Peter Maydell
On 23 January 2011 19:56, Mike Frysinger wrote: > Some architectures (like Blackfin) only implement ppoll (and skip poll). > So add support for it using existing poll code. This looks wrong -- ppoll() is supposed to be atomic, but your implementation isn't. Why can't we just implement this by cal

Re: [Qemu-devel] [PATCH] linux-user: add ppoll syscall support

2011-01-23 Thread Mike Frysinger
On Sun, Jan 23, 2011 at 16:25, Peter Maydell wrote: > On 23 January 2011 19:56, Mike Frysinger wrote: >> Some architectures (like Blackfin) only implement ppoll (and skip poll). >> So add support for it using existing poll code. > > This looks wrong -- ppoll() is supposed to be atomic, but > your i

Re: [Qemu-devel] TCG flow vs dyngen

2011-01-23 Thread Rob Landley
On 01/16/2011 10:01 AM, Raphaël Lefèvre wrote: > On Sun, Jan 16, 2011 at 11:21 PM, Stefano Bonifazi > wrote: > 2. "how can I check the number of target cpu cycles or target > instructions executed inside qemu-user (i.e. qemu-ppc)? > Is there any variable I can inspect for such informations?" at De

Re: [Qemu-devel] [PATCH] multiboot: Fix upper memory size in multiboot info

2011-01-23 Thread Aurelien Jarno
On Tue, Jan 04, 2011 at 02:03:30PM +0100, Kevin Wolf wrote: > The upper memory size field should exclude the first MB of RAM. > > Signed-off-by: Kevin Wolf > --- > hw/multiboot.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/multiboot.c b/hw/multiboot.c > ind

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Alexander Graf
On 23.01.2011, at 20:52, Andreas Färber wrote: > Am 23.01.2011 um 19:42 schrieb Rob Landley: > >> On 01/23/2011 06:59 AM, Dushyant Bansal wrote: >>> When I try to run this command, >>> # qemu-system-ppcemb -nographic -m 128 -M bamboo -kernel uImage -append "" >>> >>> I get the following outpu

Re: [Qemu-devel] Emulating powerpc 440EP with qemu-system-ppcemb

2011-01-23 Thread Rob Landley
On 01/23/2011 01:52 PM, Dushyant Bansal wrote: > >> Those are board emulations. Does it have a 440 _cpu_ emulation? >> >> ./qemu-system-ppc -cpu ? | grep 440 >> > This is the output. > PowerPC 440-Xilinx PVR 7ff21910 > > Is this right for my requirement? I have no idea? Sounds worth

Re: [Qemu-devel] TCG flow vs dyngen

2011-01-23 Thread Stefano Bonifazi
On 01/23/2011 10:50 PM, Rob Landley wrote: On 01/16/2011 10:01 AM, Raphaël Lefèvre wrote: On Sun, Jan 16, 2011 at 11:21 PM, Stefano Bonifazi wrote: 2. "how can I check the number of target cpu cycles or target instructions executed inside qemu-user (i.e. qemu-ppc)? Is there any variable I can

Re: [Qemu-devel] [PATCH] linux-user: add ppoll syscall support

2011-01-23 Thread Peter Maydell
On 23 January 2011 21:35, Mike Frysinger wrote: > On Sun, Jan 23, 2011 at 16:25, Peter Maydell wrote: >> This looks wrong -- ppoll() is supposed to be atomic, but >> your implementation isn't. Why can't we just implement this >> by calling the host ppoll? (might need a configure test, but >> that'

Re: [Qemu-devel] [PATCH] linux-user: add ppoll syscall support

2011-01-23 Thread Mike Frysinger
On Sun, Jan 23, 2011 at 17:35, Peter Maydell wrote: > On 23 January 2011 21:35, Mike Frysinger wrote: >> On Sun, Jan 23, 2011 at 16:25, Peter Maydell wrote: >>> This looks wrong -- ppoll() is supposed to be atomic, but >>> your implementation isn't. Why can't we just implement this >>> by calling t

Re: [Qemu-devel] [PATCH 2/3] FVD: Added the simulated 'blksim' driver

2011-01-23 Thread Anthony Liguori
On 01/21/2011 09:09 PM, Chunqiang Tang wrote: Coding style. In general, I like the idea of the simulator but the coding style is off quite a bit. Please be specific and I would be happy to take suggestions. The header issue should be easy to fix. Read CODING_STYLE and go

Re: [Qemu-devel] [PATCH 1/5] Fast Virtual Disk (FVD) Proposal Part 1

2011-01-23 Thread Anthony Liguori
On 01/21/2011 08:51 PM, Chunqiang Tang wrote: -void qemu_bh_schedule(QEMUBH *bh) -{ -bh->cb(bh->opaque); -} - -void qemu_bh_cancel(QEMUBH *bh) -{ -} - -void qemu_bh_delete(QEMUBH *bh) -{ -qemu_free(bh); -} - int qemu_set_fd_handler2(int fd, IOCanReadHandler

Re: [Qemu-devel] [RFC][PATCH 00/12] qcow2: Convert qcow2 to use coroutines for async I/O

2011-01-23 Thread Anthony Liguori
On 01/22/2011 03:29 AM, Stefan Hajnoczi wrote: This patch series prototypes making QCOW2 fully asynchronous to eliminate the timing jitter and poor performance that has been observed. QCOW2 has asynchronous I/O code paths for some of the read/write common cases but metadata access is always sync

[Qemu-devel] [PATCH v2] linux-user: add ppoll syscall support

2011-01-23 Thread Mike Frysinger
Some architectures (like Blackfin) only implement ppoll (and skip poll). So add support for it using existing poll code. Signed-off-by: Mike Frysinger --- v2 - call host ppoll() directly linux-user/syscall.c | 28 ++-- 1 files changed, 26 insertions(+), 2 delet

Re: [Qemu-devel] TCG flow vs dyngen

2011-01-23 Thread Rob Landley
On 01/23/2011 04:25 PM, Stefano Bonifazi wrote: > I am trying to shift in memory the target executable .. now the code is > "supposed" to be loaded by the elfloader at the exact start address set > at link time .. Ah, elf loading. That's a whole 'nother bag of worms. Oddly enough, I was deling w

Re: [Qemu-devel] [RFC][PATCH 11/12] qcow2: Convert qcow2 to use coroutines for async I/O

2011-01-23 Thread Anthony Liguori
On 01/22/2011 03:29 AM, Stefan Hajnoczi wrote: Converting qcow2 to use coroutines is fairly simple since most of qcow2 is synchronous. The synchronous I/O functions likes bdrv_pread() now transparently work when called from a coroutine, so all the synchronous code just works. The explicitly asy

Re: [Qemu-devel] [PATCH v2] linux-user: add ppoll syscall support

2011-01-23 Thread Peter Maydell
On 23 January 2011 23:32, Mike Frysinger wrote: > +                if (arg3) > +                    target_to_host_timespec(timeout_ts, arg3); > +                else > +                    timeout_ts = NULL; Coding style mandates braces here. Also, target_to_host_timespec() can return non-zero i

Re: [Qemu-devel] Re: [PATCH] audio: consolidate audio_init()

2011-01-23 Thread Isaku Yamahata
On Sun, Jan 23, 2011 at 04:50:34PM +0100, Andreas Färber wrote: > Am 21.01.2011 um 23:27 schrieb malc: > >> On Fri, 21 Jan 2011, Blue Swirl wrote: >> >>> On Fri, Jan 21, 2011 at 10:53 AM, Isaku Yamahata >>> wrote: consolidate audio_init() and remove references to shoundhw. Cc: Blue

[Qemu-devel] [Bug 706766] [NEW] [Qemu-kvm] qemu-img fail to create qcow image

2011-01-23 Thread xudong
Public bug reported: On qemu-kvm tree 6f32e3d09d990fd50008756fcb446b55e0c0af79, complier it. Then try to create a qcow image with a exist raw image, create fail. reproduce steps: 1) build qemu-kvm 2) ./qemu-img create -b ./ia32e_fc10.img -f qcow2 ./qcow.img 3) Fail to create qcow image, it show e

[Qemu-devel] [Bug 706766] Re: [Qemu-kvm] qemu-img fail to create qcow image

2011-01-23 Thread xudong
The latest qemu tree e10990c3f0c39e92ab5f74004b89a24fcc36fa14 also has this issue. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/706766 Title: [Qemu-kvm] qemu-img fail to create qcow image Status

[Qemu-devel] [PATCH v3] linux-user: add ppoll syscall support

2011-01-23 Thread Mike Frysinger
Some architectures (like Blackfin) only implement ppoll (and skip poll). So add support for it using existing poll code. Signed-off-by: Mike Frysinger --- v3 - call ppoll syscall directly so timespec updates get passed back - tweak style - use new sigsets linux-user/sysc

[Qemu-devel] qemu snapshot

2011-01-23 Thread chandra shekar
hi everyone i have 2 systems each installed with qemu and for each guest os is windows and host is ubuntu i tried to load snapshot of one guest os onto other it loads successfully but immediately it gives error as memory fault and shuts down can anyone help me with this,thanks -- chandra

[Qemu-devel] [PULL] virtio-serial: Fixes, flow control

2011-01-23 Thread Amit Shah
Hello, Please pull for fixes to the virtio-serial code: - Don't copy over guest buffer to host (prevents potential DoS scenarios, pointed out by Paul Brook) - Add support for flow control - A couple of trivial fixes to virtio-console code The patches were sent out to the list on 19 Jan 2011, su

[Qemu-devel] [Bug 706766] Re: [Qemu-kvm] qemu-img fail to create qcow image

2011-01-23 Thread Stefan Hajnoczi
** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/706766 Title: [Qemu-kvm] qemu-img fail to create qcow image Status in QEMU: Confirmed Bug descr

[Qemu-devel] Re: [RFC][PATCH v6 03/23] Make qemu timers available for tools

2011-01-23 Thread Jes Sorensen
On 01/21/11 18:26, Michael Roth wrote: > On 01/21/2011 10:30 AM, Jes Sorensen wrote: >> On 01/17/11 14:14, Michael Roth wrote: >>> diff --git a/qemu-ioh.c b/qemu-ioh.c >>> index cc71470..001e7a2 100644 >>> --- a/qemu-ioh.c >>> +++ b/qemu-ioh.c >>> @@ -22,7 +22,11 @@ >>>* THE SOFTWARE. >>>*/

[Qemu-devel] [PATCH] linux-user: fix sizeof handling for getsockopt

2011-01-23 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- linux-user/syscall.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 499c4d7..6116ab5 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1448,7 +1448,7 @@ static abi_long

[Qemu-devel] [PATCH] linux-user: decode MAP_{UNINITIALIZED, EXECUTABLE} in strace

2011-01-23 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- linux-user/strace.c |4 linux-user/syscall_defs.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index bf9a0d9..a8786bb 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @