Re: [Qemu-devel] [PATCH 0/7] Fix packing for MinGW with -mms-bitfields

2011-08-29 Thread Gerd Hoffmann
Hi, If a structure is only used internally by QEMU (not used in network, disk or guest interfaces), changes in padding don't matter. [PATCH 5/7] usb: Fix packing for w32: needs packing (usb interface) Patch looks good (and is needed as the structs are part of the guest interface). chee

Re: [Qemu-devel] [PATCH] pflash_cfi01/pflash_cfi02: convert to memory API

2011-08-29 Thread Avi Kivity
On 08/29/2011 09:15 AM, Avi Kivity wrote: On 08/29/2011 09:00 AM, Edgar E. Iglesias wrote: > > It does bite, as I saw with gdb. You can even see that from the > qemu error - it complains about unimplemented command 0xf0, that > comes from pflash_write() later on. I wasn't clear enough maybe

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-29 Thread cedric.vincent
On Fri, Aug 26, 2011 at 07:37:51PM +0200, Blue Swirl wrote: > On Fri, Aug 26, 2011 at 2:28 PM, wrote: > > On Fri, Aug 26, 2011 at 04:19:26PM +0200, Peter Maydell wrote: > >> Yes; we've discussed this before in this thread: > >> http://lists.nongnu.org/archive/html/qemu-devel/2011-08/msg01623.html

Re: [Qemu-devel] [PATCH] m68k: Add uc5282 machine

2011-08-29 Thread Avi Kivity
On 07/20/2011 08:10 PM, Joel Sherrill wrote: From: Till Straumann Add m68k machine support for Arcturus Networks Inc. uC5282 board. Also include a fix for the FEC ethernet controller. +static void mcf5208_resetc_init(target_phys_addr_t offset) +{ +int iomemtype; + +iomemtype = cpu_re

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-29 Thread Paolo Bonzini
On 08/29/2011 09:24 AM, cedric.vinc...@st.com wrote: > > Since you seem to have a nice test case close at hand, could you > please test the fix proposed by Paolo? I suppose you are talking about this one: http://lists.nongnu.org/archive/html/qemu-devel/2011-08/msg01655.html This patch c

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-29 Thread cedric.vincent
Hi Paolo, On Mon, Aug 29, 2011 at 09:46:37AM +0200, Paolo Bonzini wrote: > On 08/29/2011 09:24 AM, cedric.vinc...@st.com wrote: > >> > > >> > Since you seem to have a nice test case close at hand, could you > >> > please test the fix proposed by Paolo? > > I suppose you are talking about this on

Re: [Qemu-devel] Regression in QEMU user-mode (Was: "tcg: Reload local variables after return from longjmp")

2011-08-29 Thread Paolo Bonzini
On 08/29/2011 09:48 AM, cedric.vinc...@st.com wrote: Hi Paolo, On Mon, Aug 29, 2011 at 09:46:37AM +0200, Paolo Bonzini wrote: On 08/29/2011 09:24 AM, cedric.vinc...@st.com wrote: Since you seem to have a nice test case close at hand, could you please test the fix proposed by Paolo? I sup

Re: [Qemu-devel] [PATCH 2/7] block/vvfat: Fix packing for w32

2011-08-29 Thread Kevin Wolf
Am 28.08.2011 22:43, schrieb Stefan Weil: > Use QEMU_PACKED to eliminate the effects of compiler option > -mms-bitfields. > > Cc: Kevin Wolf > Signed-off-by: Stefan Weil Acked-by: Kevin Wolf

Re: [Qemu-devel] [PATCH] pflash_cfi01/pflash_cfi02: convert to memory API

2011-08-29 Thread Edgar E. Iglesias
On Mon, Aug 29, 2011 at 10:21:03AM +0300, Avi Kivity wrote: > On 08/29/2011 09:15 AM, Avi Kivity wrote: > > On 08/29/2011 09:00 AM, Edgar E. Iglesias wrote: > >> > > >> > It does bite, as I saw with gdb. You can even see that from the > >> > qemu error - it complains about unimplemented command

Re: [Qemu-devel] [PATCH] pflash_cfi01/pflash_cfi02: convert to memory API

2011-08-29 Thread Avi Kivity
On 08/29/2011 10:30 AM, Edgar E. Iglesias wrote: > > Forgot the branch: > > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git fix-pflash That works Thanks for all the testing and help. I'll post the fixes for merging soon. -- I have a truly marvellous patch that fixes the bug which

Re: [Qemu-devel] [PATCH 0/7] Fix packing for MinGW with -mms-bitfields

2011-08-29 Thread TeLeMan
On Mon, Aug 29, 2011 at 13:01, Stefan Weil wrote: > Am 28.08.2011 23:43, schrieb Blue Swirl: >> >> On Sun, Aug 28, 2011 at 8:43 PM, Stefan Weil wrote: >>> >>> These patches fix the packing of structures which were affected by >>> the new compiler attribute -mms-bitfields (which is needed for glib

[Qemu-devel] OSX under QEMU (with a bit of tianocore, and ahci)

2011-08-29 Thread Nathan Coulson
I was curious about using qemu to run osx. From what I gathered, this is not supported under Qemu at this time, but I was curious how far along it was. I tried a few variations, to see if I could get the DVD to boot Standard QEmu w/ Bios: qemu-system-x86_64 \ -device ahci,id=ahci \ -drive i

Re: [Qemu-devel] [PATCH 3/5] Migration thread mutex

2011-08-29 Thread Stefan Hajnoczi
On Sat, Aug 27, 2011 at 7:09 PM, Umesh Deshpande wrote: > This patch implements migrate_ram mutex, which protects the RAMBlock list > traversal in the migration thread during the transfer of a ram from their > addition/removal from the iothread. > > Note: Combination of iothread mutex and migratio

Re: [Qemu-devel] [PULL] Memory API fixes - rom/device

2011-08-29 Thread Avi Kivity
On 08/28/2011 06:52 PM, Avi Kivity wrote: Anthony, please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/core to receive fixes for the rom/device API - initialize ->ops and a new ->opaque. Avi Kivity (2): memory: fix memory_region_init_rom_device() not initializi

Re: [Qemu-devel] [PATCH 5/5] Separate migration thread

2011-08-29 Thread Stefan Hajnoczi
On Sat, Aug 27, 2011 at 7:09 PM, Umesh Deshpande wrote: > This patch creates a separate thread for the guest migration on the source > side. > All exits (on completion/error) from the migration thread are handled by a > bottom handler, which is called from the iothread. > > Signed-off-by: Umesh D

Re: [Qemu-devel] [PATCH 0/7] Fix packing for MinGW with -mms-bitfields

2011-08-29 Thread Alexander Graf
Am 29.08.2011 um 10:34 schrieb TeLeMan : > On Mon, Aug 29, 2011 at 13:01, Stefan Weil wrote: >> Am 28.08.2011 23:43, schrieb Blue Swirl: >>> >>> On Sun, Aug 28, 2011 at 8:43 PM, Stefan Weil wrote: These patches fix the packing of structures which were affected by the new com

[Qemu-devel] [PATCH] memory: fix rom_device I/O mode

2011-08-29 Thread Avi Kivity
When adding a rom_device in I/O mode, we incorrectly masked off the low bits, resulting in a pure RAM map. Fix my masking off the high bits and IO_MEM_ROMD, yielding a pure I/O map. Signed-off-by: Avi Kivity --- memory.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/

Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/pci-stub: fix comment typo

2011-08-29 Thread Stefan Hajnoczi
On Fri, Aug 26, 2011 at 10:06:01PM +0300, Alon Levy wrote: > Signed-off-by: Alon Levy > --- > hw/pci-stub.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks, applied to the trivial patches tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches Fixed

[Qemu-devel] qemu-kvm 0.15.0 boot order not working

2011-08-29 Thread Peter Lieven
Hi, when I specify something like qemu -boot order=dc -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes or qemu -boot order=n -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes with qemu-kvm 0.15.0 it will always directly boot from the hardrive and not from cdrom or network. is

Re: [Qemu-devel] [PATCH 7/7] slirp: Fix packing for w32

2011-08-29 Thread Jan Kiszka
On 2011-08-28 22:43, Stefan Weil wrote: > Use QEMU_PACKED to eliminate the effects of compiler option > -mms-bitfields. > > Cc: Jan Kiszka > Signed-off-by: Stefan Weil > --- > slirp/slirp.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/slirp/slirp.h b/slirp/sli

Re: [Qemu-devel] [PATCH 0/5] Separate thread for VM migration

2011-08-29 Thread Paolo Bonzini
On 08/27/2011 08:09 PM, Umesh Deshpande wrote: Following patch series deals with VCPU and iothread starvation during the migration of a guest. Currently the iothread is responsible for performing the guest migration. It holds qemu_mutex during the migration and doesn't allow VCPU to enter the qem

Re: [Qemu-devel] HPET configuration in Seabios

2011-08-29 Thread Jan Kiszka
On 2011-08-29 07:32, Avi Kivity wrote: > On 08/29/2011 01:14 AM, Kevin O'Connor wrote: >> On Sun, Aug 28, 2011 at 10:42:49PM +0200, Jan Kiszka wrote: >> > On 2011-08-28 20:54, Alexander Graf wrote: >> > > >> > > On 28.08.2011, at 02:42, Avi Kivity wrote: >> > > >> > >> On 08/26/2011 08:32 AM

Re: [Qemu-devel] [PATCH V4 1/7] block: add block conversion api

2011-08-29 Thread Kevin Wolf
Am 23.08.2011 06:27, schrieb Devin Nakamura: > add functions to block driver interface to support inplace image conversion > > Signed-off-by: Devin Nakamura > --- > block.h |3 ++ > block_int.h | 82 > +++ > 2 files changed, 85 i

Re: [Qemu-devel] [PATCH V4 2/7] block: make bdrv_open_common more ready to be called by bdrv_open_conversion_target

2011-08-29 Thread Kevin Wolf
Am 23.08.2011 06:27, schrieb Devin Nakamura: > Signed-off-by: Devin Nakamura > --- > block.c | 18 -- > 1 files changed, 12 insertions(+), 6 deletions(-) > > diff --git a/block.c b/block.c > index a8a013a..ac5a103 100644 > --- a/block.c > +++ b/block.c > @@ -441,14 +441,17 @@ s

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fix spelling in comments and debug messages (recieve -> receive)

2011-08-29 Thread Stefan Hajnoczi
On Sun, Aug 28, 2011 at 09:45:40PM +0200, Stefan Weil wrote: > Signed-off-by: Stefan Weil > --- > docs/qapi-code-gen.txt |2 +- > libcacard/vscclient.c |2 +- > qemu-ga.c |2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) Thanks, applied to the trivial patches tr

Re: [Qemu-devel] [PATCH V4 0/7] Block Conversion

2011-08-29 Thread Kevin Wolf
Am 23.08.2011 06:27, schrieb Devin Nakamura: > This patch series introduces the api to support block conversion. > > Devin Nakamura (7): > block: add block conversion api > block: make bdrv_open_common more ready to be called by > bdrv_open_conversion_target > block: add bdrv_get_convers

Re: [Qemu-devel] HPET configuration in Seabios

2011-08-29 Thread Avi Kivity
On 08/29/2011 01:25 PM, Jan Kiszka wrote: > > Can't seabios just poke at the hpet itself and see if it exists or not? > Would be hard for the BIOS to guess the locations of the blocks unless we define the addresses used by QEMU as something like base + hpet_no * block_size in all cases. Curr

Re: [Qemu-devel] HPET configuration in Seabios

2011-08-29 Thread Jan Kiszka
On 2011-08-29 13:00, Avi Kivity wrote: > On 08/29/2011 01:25 PM, Jan Kiszka wrote: >>> >>> Can't seabios just poke at the hpet itself and see if it exists or not? >>> >> >> Would be hard for the BIOS to guess the locations of the blocks unless >> we define the addresses used by QEMU as something l

Re: [Qemu-devel] HPET configuration in Seabios

2011-08-29 Thread Avi Kivity
On 08/29/2011 02:05 PM, Jan Kiszka wrote: On 2011-08-29 13:00, Avi Kivity wrote: > On 08/29/2011 01:25 PM, Jan Kiszka wrote: >>> >>> Can't seabios just poke at the hpet itself and see if it exists or not? >>> >> >> Would be hard for the BIOS to guess the locations of the blocks unless >> we

Re: [Qemu-devel] HPET configuration in Seabios

2011-08-29 Thread Jan Kiszka
On 2011-08-29 13:05, Jan Kiszka wrote: > On 2011-08-29 13:00, Avi Kivity wrote: >> On 08/29/2011 01:25 PM, Jan Kiszka wrote: Can't seabios just poke at the hpet itself and see if it exists or not? >>> >>> Would be hard for the BIOS to guess the locations of the blocks unless >>> we

Re: [Qemu-devel] qemu-kvm 0.15.0 boot order not working

2011-08-29 Thread Ottavio
On 29 August 2011 11:12, Peter Lieven wrote: > Hi, > > when I specify something like > > qemu -boot order=dc -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes > > or > > qemu -boot order=n -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes > > with qemu-kvm 0.15.0 > > it will always dir

Re: [Qemu-devel] [Qemu-trivial] [PATCH] sh4: Fix potential crash in debug code

2011-08-29 Thread Stefan Hajnoczi
On Wed, Jul 20, 2011 at 08:56:35PM +0200, Stefan Weil wrote: > cppcheck reports this error: > > qemu/hw/sh_intc.c:390: error: Possible null pointer dereference: > s - otherwise it is redundant to check if s is null at line 385 > > If s were NULL, the printf() statement would crash. > Setting bra

Re: [Qemu-devel] qemu-kvm 0.15.0 boot order not working

2011-08-29 Thread Peter Lieven
On 29.08.2011 13:21, Ottavio wrote: On 29 August 2011 11:12, Peter Lieven wrote: Hi, when I specify something like qemu -boot order=dc -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes or qemu -boot order=n -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes with qemu-kvm 0.15.0

Re: [Qemu-devel] [PATCH] qemu-img: Require larger zero areas for sparse handling

2011-08-29 Thread Stefan Hajnoczi
On Fri, Aug 26, 2011 at 5:04 PM, Kevin Wolf wrote: > @@ -571,6 +573,48 @@ static int is_allocated_sectors(const uint8_t *buf, int > n, int *pnum) >  } > >  /* > + * Like is_allocated_sectors, but if the buffer starts with a used sector, > + * up to 'min' consecutive sectors containing zeros are i

Re: [Qemu-devel] qemu-kvm 0.15.0 boot order not working

2011-08-29 Thread Michael Tokarev
On 29.08.2011 15:42, Peter Lieven wrote: > On 29.08.2011 13:21, Ottavio wrote: >> On 29 August 2011 11:12, Peter Lieven wrote: >>> Hi, >>> >>> when I specify something like >>> >>> qemu -boot order=dc -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes >>> >>> or >>> >>> qemu -boot order=n -cd

Re: [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough

2011-08-29 Thread Stefan Hajnoczi
On Fri, Aug 26, 2011 at 8:06 PM, Blue Swirl wrote: > Let guests inject tracepoint data via fw_cfg device. > > Signed-off-by: Blue Swirl > --- > The patch is used like this: > ../configure --with-guest-trace-file=/src/openbios-devel/trace-events > make > sparc64-softmmu/qemu-system-sparc64 -trace

Re: [Qemu-devel] qemu-kvm 0.15.0 boot order not working

2011-08-29 Thread Peter Lieven
On 29.08.2011 14:14, Michael Tokarev wrote: On 29.08.2011 15:42, Peter Lieven wrote: On 29.08.2011 13:21, Ottavio wrote: On 29 August 2011 11:12, Peter Lieven wrote: Hi, when I specify something like qemu -boot order=dc -cdrom image.iso -drive file=img.raw,if=virtio,boot=yes or qemu -boo

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-29 Thread Stefan Hajnoczi
On Sun, Aug 28, 2011 at 10:08 PM, Blue Swirl wrote: > On Sun, Aug 28, 2011 at 6:13 PM, Lluís wrote: >> Blue Swirl writes: >> >>> On Sat, Aug 27, 2011 at 5:56 PM, Lluís wrote: >> I sent a patch that should fix it for everybody linking with the tracing >> objects: >> >> http://list

[Qemu-devel] [PATCH v2] qemu-img: Require larger zero areas for sparse handling

2011-08-29 Thread Kevin Wolf
By default, require 4k of consecutive zero bytes for qemu-img to make the output file sparse by not issuing a write request for the zeroed parts. Add an -S option to allow users to tune this setting. This helps to avoid situations where a lot of zero sectors and data sectors are mixed and qemu-img

Re: [Qemu-devel] Physical address debugging

2011-08-29 Thread Lluís
Zeus Gómez Marmolejo writes: > So, for you that you know very well the QEMU code, and suppose that I > want to do a quick modification to stop on an address write and print > the backtrace. How I could do it?? I want a one line modification to > the code (with the address hardcoded) to stop the m

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-29 Thread Lluís
Blue Swirl writes: >>> Using the sort function looks hackish to me. Maybe the linkage should >>> be controlled by configure instead? >> >> What do you mean? Moving the logic for selecting the object files to >> link with on each top-level target out into the configure? > Add CONFIG_QEMU_TIMER, c

Re: [Qemu-devel] Physical address debugging

2011-08-29 Thread Avi Kivity
On 08/26/2011 08:34 PM, Blue Swirl wrote: > Indeed, it isn't. It's impossible with KVM (due to lacking hardware > support) but would be feasible with TCG if you extend (or ad-hoc hack) > QEMU code accordingly. Why impossible? The existing watchpoints replace original physical memory with io_m

Re: [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough

2011-08-29 Thread Lluís
Stefan Hajnoczi writes: > The ability to trace from the guest can be handy, so I think we should > have this feature. Please add documentation on how to hook it up > (e.g. how people would use this for other firmware/guest code and/or > other architectures). > Guest and QEMU need to agree on eve

Re: [Qemu-devel] [PATCH 3/5] Migration thread mutex

2011-08-29 Thread Umesh Deshpande
On 08/29/2011 05:04 AM, Stefan Hajnoczi wrote: On Sat, Aug 27, 2011 at 7:09 PM, Umesh Deshpande wrote: This patch implements migrate_ram mutex, which protects the RAMBlock list traversal in the migration thread during the transfer of a ram from their addition/removal from the iothread. Note: C

Re: [Qemu-devel] [PATCH 5/5] Separate migration thread

2011-08-29 Thread Umesh Deshpande
On 08/29/2011 05:09 AM, Stefan Hajnoczi wrote: On Sat, Aug 27, 2011 at 7:09 PM, Umesh Deshpande wrote: This patch creates a separate thread for the guest migration on the source side. All exits (on completion/error) from the migration thread are handled by a bottom handler, which is called from

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-29 Thread Lucas Meneghel Rodrigues
On 08/26/2011 06:22 PM, Anthony Liguori wrote: On 08/26/2011 03:04 PM, Lucas Meneghel Rodrigues wrote: Add a test device which supports the kvmctl ioports, for running the KVM test suite. This is a straight port from the latest version of the test device present on qemu-kvm, using the APIs curre

Re: [Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-29 Thread Michael Roth
On 08/26/2011 12:52 PM, Jan Kiszka wrote: On 2011-08-26 19:43, Luiz Capitulino wrote: On Fri, 26 Aug 2011 18:48:52 +0200 Jan Kiszka wrote: Hi all, current master has some qregressions: # ./check-qdict Running suite(s): QDict test-suite 93%: Checks: 16, Failures: 1, Errors: 0 check-qdict.c:2

[Qemu-devel] [PULL 00/30] Block patches

2011-08-29 Thread Kevin Wolf
The following changes since commit b861b7419c49ad53e786062b4fbf6da53468f130: xilinx: removed microbalze_pic_init from xilinx.h (2011-08-22 23:29:37 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Aneesh Kumar K.V (1): coroutine: Add CoRwlock s

[Qemu-devel] [PATCH 02/30] block: parse cache mode flags in a single place

2011-08-29 Thread Kevin Wolf
From: Stefan Hajnoczi This patch introduces bdrv_parse_cache_flags() which sets open flags given a cache mode. Previously this was duplicated in blockdev.c and qemu-img.c. Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block.c| 25 + block.h|

[Qemu-devel] [PATCH 05/30] qemu-img: Use qemu_blockalign

2011-08-29 Thread Kevin Wolf
Now that you can use cache=none for the output file in qemu-img, we should properly align our buffers so that raw-posix doesn't have to use its (smaller) bounce buffer. Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- qemu-img.c | 12 ++-- 1 files changed, 6 insertions(+), 6

[Qemu-devel] [PATCH 21/30] qcow2: remove common from QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 22da050..fdb4140 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -377,7 +377,7

[Qemu-devel] [PATCH 20/30] qcow2: remove cluster_offset from QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 3068a58..22da050 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @

[Qemu-devel] [PATCH 25/30] sheepdog: use coroutines

2011-08-29 Thread Kevin Wolf
From: MORITA Kazutaka This makes the sheepdog block driver support bdrv_co_readv/writev instead of bdrv_aio_readv/writev. With this patch, Sheepdog network I/O becomes fully asynchronous. The block driver yields back when send/recv returns EAGAIN, and is resumed when the sheepdog network connec

Re: [Qemu-devel] [PULL 0/1]: Monitor queue

2011-08-29 Thread Anthony Liguori
On 08/25/2011 11:41 AM, Luiz Capitulino wrote: Anthony, The following patches have been sent to the list and look good to me. I've also tested them. Pulled. Thanks. Regards, Anthony Liguori The changes (since 56a7a874e962e28522857fbf72eaefb1a07e2001) are available in the following reposi

Re: [Qemu-devel] [PULL] pci, virtio, net, migration

2011-08-29 Thread Anthony Liguori
On 08/26/2011 05:06 AM, Michael S. Tsirkin wrote: The following changes since commit e8906f3529a452276375ab8e7b8598751bc33b01: PPC: E500: Set ESR values (2011-08-23 22:24:40 +0200) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at: git://git.kernel.org

[Qemu-devel] [PATCH] Rename qemu -> qemu-system-i386

2011-08-29 Thread Anthony Liguori
This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0. Signed-off-by: Anthony Liguori --- Makefile|5 ++--- Makefile.target |4 2 files changed, 2 insertions(+), 7 deletions(-) diff --gi

[Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Fabien Chouteau
This patch converts the memory mapped interface of serial.c to the new memory API. Signed-off-by: Fabien Chouteau --- hw/mips_jazz.c | 12 +++-- hw/mips_malta.c |7 ++- hw/musicpal.c| 17 --- hw/omap_uart.c | 11 +++-- hw/pc.h

[Qemu-devel] [PATCH 30/30] qemu-img: Require larger zero areas for sparse handling

2011-08-29 Thread Kevin Wolf
By default, require 4k of consecutive zero bytes for qemu-img to make the output file sparse by not issuing a write request for the zeroed parts. Add an -S option to allow users to tune this setting. This helps to avoid situations where a lot of zero sectors and data sectors are mixed and qemu-img

[Qemu-devel] [PATCH 23/30] qcow2: Removed QCowAIOCB entirely

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 207 ++--- 1 files changed, 80 insertions(+), 127 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 52a7769..37dab65 100644 --- a

Re: [Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Avi Kivity
On 08/29/2011 06:15 PM, Fabien Chouteau wrote: This patch converts the memory mapped interface of serial.c to the new memory API. There has already been done by Richard, it's in the memory/queue branch of git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git. Please base patches off git://

[Qemu-devel] [PATCH 22/30] qcow2: reindent and use while before the big jump

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio prepare to remove read/write callbacks Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 272 - 1 files changed, 135 insertions(+), 137 deletions(-) diff --git a/block/qcow2.c b/block/qc

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-29 Thread Sasha Levin
On Thu, 2011-08-25 at 16:29 +0300, Sasha Levin wrote: > Hello, > > I am looking to implement an ivshmem device for KVM tools, the purpose > is to provide same functionality as QEMU and interoperability with QEMU. [snip] > 1. File handles and guest IDs are passed between the server and the > peer

[Qemu-devel] [PATCH 17/30] qcow2: Removed unused AIOCB fields

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index f4e3c06..9f7566f 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -385,11 +385

[Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Avi Kivity
Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, but otherwise there are no changes. Avi Kivity (22): mips_fulong2e: convert to m

[Qemu-devel] [PATCH 28/30] block: explicit I/O accounting

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Decouple the I/O accounting from bdrv_aio_readv/writev/flush and make the hardware models call directly into the accounting helpers. This means: - we do not count internal requests from image formats in addition to guest originating I/O - we do not double count I/O o

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Anthony Liguori
On 08/29/2011 10:34 AM, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, but otherwise there are no changes. This has bee

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Avi Kivity
On 08/29/2011 06:42 PM, Anthony Liguori wrote: On 08/29/2011 10:34 AM, Avi Kivity wrote: Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch to receive a fixed version of the latest memory API conversion batch. The pflash_cfi patch has been reworked extensively, bu

[Qemu-devel] [PATCH 11/30] posix-aio-compat: fix latency issues

2011-08-29 Thread Kevin Wolf
From: Avi Kivity In certain circumstances, posix-aio-compat can incur a lot of latency: - threads are created by vcpu threads, so if vcpu affinity is set, aio threads inherit vcpu affinity. This can cause many aio threads to compete for one cpu. - we can create up to max_threads (64) aio

[Qemu-devel] [PATCH 01/30] coroutine: Add CoRwlock support

2011-08-29 Thread Kevin Wolf
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V Signed-off-by: Kevin Wolf --- qemu-coroutine-lock.c | 44 qemu-coroutine.h | 32 2 files changed, 76 insertions(+), 0 deletions(-) diff --git a/qemu-

[Qemu-devel] [PATCH 19/30] qcow2: remove l2meta from QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index cc5f409..3068a58 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -385,7

[Qemu-devel] [PATCH 13/30] qcow: QCowAIOCB field cleanup

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio remove unused field from this structure and put some of them in qcow_aio_read_cb and qcow_aio_write_cb Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 137 +++-- 1 files changed, 65 inserti

[Qemu-devel] [PATCH] Probe HPET existence

2011-08-29 Thread Jan Kiszka
QEMU does not provide a HPET block if it was configured with -no-hpet, other machines SeaBIOS runs on may lack a HPET as well. Perform basic checks the ID register for a reasonable vendor ID and a clock period within the valid range, do not build the HPET table if that fails. Signed-off-by: Jan Ki

Re: [Qemu-devel] [PATCH] Memory API conversion for serial.c (Memory mapped interface)

2011-08-29 Thread Fabien Chouteau
On 29/08/2011 17:23, Avi Kivity wrote: > On 08/29/2011 06:15 PM, Fabien Chouteau wrote: >> This patch converts the memory mapped interface of serial.c to the new memory >> API. >> > > There has already been done by Richard, it's in the memory/queue branch of > git://git.kernel.org/pub/scm/virt/kv

Re: [Qemu-devel] [PULL] Memory API fixes - rom/device

2011-08-29 Thread Anthony Liguori
On 08/28/2011 10:52 AM, Avi Kivity wrote: Anthony, please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/core to receive fixes for the rom/device API - initialize ->ops and a new ->opaque. Pulled. Thanks. Regards, Anthony Liguori Avi Kivity (2): memory: fix memory_r

[Qemu-devel] [PATCH 03/30] block: add cache=directsync parameter to -drive

2011-08-29 Thread Kevin Wolf
From: Stefan Hajnoczi This patch adds -drive cache=directsync for O_DIRECT | O_SYNC host file I/O with no disk write cache presented to the guest. This mode is useful when guests may not be sending flushes when appropriate and therefore leave data at risk in case of power failure. When cache=dir

[Qemu-devel] [PATCH 04/30] qcow2: Fix DEBUG_* compilation

2011-08-29 Thread Kevin Wolf
From: Philipp Hahn By introducing BlockDriverState compiling qcow2 with DEBUG_ALLOC and DEBUG_EXT defined got broken. Define a BdrvCheckResult structure locally which is now needed as the second argument. Also fix qcow2_read_extensions() needing BDRVQcowState. Signed-off-by: Philipp Hahn Signe

[Qemu-devel] [PATCH 10/30] block: include flush requests in info blockstats

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block.c | 18 +- block_int.h |1 + qmp-commands.hx |6 ++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 4186a2f..0f256f5 10

[Qemu-devel] [PATCH 07/30] qcow: initialize coroutine mutex

2011-08-29 Thread Kevin Wolf
From: Scott Wood commit 52b8eb60132b27ad53476490e9d7579003390cfa added a mutex, but never initialized it. This caused a segfault. Reported-by: Alexander Graf Signed-off-by: Scott Wood Signed-off-by: Kevin Wolf --- block/qcow.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) dif

[Qemu-devel] [PATCH 14/30] qcow: move some blocks of code to avoid useless variable initialization

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 53 ++--- 1 files changed, 26 insertions(+), 27 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 7727604..8c559e2 100644 --- a/block/q

[Qemu-devel] [PATCH 18/30] qcow2: removed cur_nr_sectors field in QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c | 98 + 1 files changed, 43 insertions(+), 55 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 9f7566f..cc5f409 100644 --- a/

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Jan Kiszka
On 2011-08-29 17:34, Avi Kivity wrote: > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch > > to receive a fixed version of the latest memory API conversion batch. > The pflash_cfi patch has been reworked extensively, but otherwise there > are no changes. T

[Qemu-devel] [PATCH] Memory API conversion for mpic (openpic.c)

2011-08-29 Thread Fabien Chouteau
This patch converts mpic to the new memory API. Signed-off-by: Fabien Chouteau --- hw/openpic.c | 208 +++- hw/openpic.h |8 +- hw/ppce500_mpc8544ds.c |3 +- 3 files changed, 105 insertions(+), 114 deletions(-) diff --git

[Qemu-devel] [PATCH 15/30] qcow: Remove QCowAIOCB

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Embed qcow_aio_read_cb into qcow_co_readv and qcow_aio_write_cb into qcow_co_writev Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 291 - 1 files changed, 123 insertions(+), 168 deleti

Re: [Qemu-devel] [PULL][v2] Memory API conversions, batch 5

2011-08-29 Thread Jan Kiszka
On 2011-08-29 18:17, Jan Kiszka wrote: > On 2011-08-29 17:34, Avi Kivity wrote: >> Please pull from >> >> git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/batch >> >> to receive a fixed version of the latest memory API conversion batch. >> The pflash_cfi patch has been reworked extensiv

Re: [Qemu-devel] [PULL] sh_pci fix

2011-08-29 Thread Anthony Liguori
On 08/28/2011 10:37 AM, Avi Kivity wrote: Anthony, please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent to receive a fix for boundless recursion in the sh target, due to a bug in the memory API conversion. Pulled. Thanks. Regards, Anthony Liguori Avi Kivity

[Qemu-devel] [PATCH 06/30] qcow2: fix typo in documentation for qcow2_get_cluster_offset()

2011-08-29 Thread Kevin Wolf
From: Devin Nakamura Documentation states the num is measured in clusters, but its actually measured in sectors Signed-off-by: Devin Nakamura Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b

[Qemu-devel] [PATCH 12/30] qcow/qcow2: Allocate QCowAIOCB structure using stack

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio instead of calling qemi_aio_get use stack Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 52 block/qcow2.c | 38 +++--- 2 files changed, 27 insertions(+

[Qemu-devel] [PATCH 27/30] qcow2: remove unused qcow2_create_refcount_update function

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 18 -- block/qcow2.h |2 -- 2 files changed, 0 insertions(+), 20 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index fbf28da..

[Qemu-devel] [PATCH 08/30] qemu-img: print error codes when convert fails

2011-08-29 Thread Kevin Wolf
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-img.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 2fee782..0561d77 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -870,7 +870,8 @@ static

[Qemu-devel] [PATCH 09/30] block/curl: Handle failed reads gracefully.

2011-08-29 Thread Kevin Wolf
From: Nicholas Thomas Current behaviour if a read fails is for the acb to not get finished. This causes an infinite loop in bdrv_read_em (block.c). The read failure never gets reported to the guest and if the error condition clears, the process never recovers. With this patch, when curl reports

[Qemu-devel] [PATCH 24/30] qcow2: remove memory leak

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 37dab65..b725d68 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -496,6 +496,7 @@ fai

[Qemu-devel] [PATCH 29/30] block: latency accounting

2011-08-29 Thread Kevin Wolf
From: Christoph Hellwig Account the total latency for read/write/flush requests. This allows management tools to average it based on a snapshot of the nr ops counters and allow checking for SLAs or provide statistics. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- block.c

[Qemu-devel] [PATCH 16/30] qcow: remove old #undefined code

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow.c | 63 -- 1 files changed, 0 insertions(+), 63 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 4495afe..c8bfecc 100644 --- a/blo

[Qemu-devel] [PATCH 26/30] qcow2: use always stderr for debugging

2011-08-29 Thread Kevin Wolf
From: Frediano Ziglio let all DEBUG_ALLOC2 printf goes to stderr Signed-off-by: Frediano Ziglio Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |2 +- block/qcow2-refcount.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow

[Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-08-29 Thread Yoder Stuart-B08248
Alex Graf, Scott Wood, and I met last week to try to flesh out some details as to how vfio could work for non-PCI devices, like we have in embedded systems. This most likely will require a different kernel driver than vfio-- for now we are calling it "dtio" (for device tree I/O) as there is no wa

Re: [Qemu-devel] [PATCH] Fix qjson test of solidus encoding

2011-08-29 Thread Luiz Capitulino
On Mon, 29 Aug 2011 09:19:30 -0500 Michael Roth wrote: > On 08/26/2011 12:52 PM, Jan Kiszka wrote: > > On 2011-08-26 19:43, Luiz Capitulino wrote: > >> On Fri, 26 Aug 2011 18:48:52 +0200 > >> Jan Kiszka wrote: > >> > >>> Hi all, > >>> > >>> current master has some qregressions: > >>> > >>> # ./c

[Qemu-devel] [Bug 393430] Re: kvm: use PulseAudio instead of ALSA

2011-08-29 Thread Serge Hallyn
Can someone post a good test case, and expected and actual results at this point? Maybe an upstart job running kvm --audio-help | grep ^Name so that no user is logged in yet (per comment #14)? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscri

[Qemu-devel] [PATCH] qemu-ga: Fix linux build with trace backend

2011-08-29 Thread Stefan Weil
Builds with configure --enable-trace-backend=simple failed on linux because qemu-ga then uses simpletrace.c which needs get_clock which needs use_rt_clock which was unresolved. Adding qemu-timer-common.o fixes this. It adds a little overhead (about 150 byte). Cc: Michael Roth Cc: Anthony Liguori

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-08-29 Thread Anthony Liguori
On 08/22/2011 08:35 AM, Jan Kiszka wrote: On 2011-08-22 15:24, Anthony Liguori wrote: Enabling the I/O thread by default seems like an important part of declaring 1.0. Besides allowing true SMP support with KVM, the I/O thread means that the TCG VCPU doesn't have to multiplex itself with the I/

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-29 Thread Cam Macdonell
On Mon, Aug 29, 2011 at 9:25 AM, Sasha Levin wrote: > On Thu, 2011-08-25 at 16:29 +0300, Sasha Levin wrote: >> Hello, >> >> I am looking to implement an ivshmem device for KVM tools, the purpose >> is to provide same functionality as QEMU and interoperability with QEMU. > > [snip] > >> 1. File han

  1   2   >