[Qemu-devel] [Bug 661696] Re: incomplete emulation of fstenv under TCG

2013-07-01 Thread Morten Shearman Kirkegaard
Thanks for the links Nikita. I'll see if I can add the missing features (fpop, fpdp) to the patch. Since I don't depend on those features, it will be relatively low priority for me, and I will probably not get to it before late August. // MOKI -- You received this bug notification because you

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-07-01 Thread Stefan Hajnoczi
On Sun, Jun 30, 2013 at 08:49:28PM +0400, Michael Tokarev wrote: 30.06.2013 19:51, Peter Maydell wrote: On 30 June 2013 16:36, Michael Tokarev m...@tls.msk.ru wrote: I don't understand. I for one like to see a plugins system used in qemu, and except of the build system everything else is

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD

2013-07-01 Thread Stefan Hajnoczi
On Fri, Jun 28, 2013 at 05:37:54PM +0200, Paolo Bonzini wrote: Il 28/06/2013 17:35, Ed Maste ha scritto: On 28 June 2013 11:11, Paolo Bonzini pbonz...@redhat.com wrote: And of course if bsd-user supported 1:1 mapping between guest and host threads on FreeBSD, cpu_single_env would have to be

Re: [Qemu-devel] [PATCH 4/4] qapi: Rename ChardevBackend member memory to ringbuf

2013-07-01 Thread Markus Armbruster
Amos Kong ak...@redhat.com writes: On Fri, Jun 28, 2013 at 07:19:39PM +0200, Markus Armbruster wrote: Eric Blake ebl...@redhat.com writes: On 06/27/2013 08:22 AM, Markus Armbruster wrote: Commit 1da48c6 called the new member memory after commit 3949e59 standardized ringbuf. Rename for

Re: [Qemu-devel] [PATCH for mst/pci] output nc-name in NIC_RX_FILTER_CHANGED event

2013-07-01 Thread Markus Armbruster
Amos Kong ak...@redhat.com writes: On Wed, Jun 26, 2013 at 12:07:53PM +0200, Markus Armbruster wrote: Amos Kong ak...@redhat.com writes: On Mon, Jun 24, 2013 at 02:34:59PM +0800, Amos Kong wrote: netclient 'name' entry in event is useful for management to know which device is changed.

Re: [Qemu-devel] [PATCH v4 07/10] qemu-ga: Add Windows VSS requester to quiesce applications and filesystems

2013-07-01 Thread Laszlo Ersek
On 06/30/13 03:21, Tomoki Sekiyama wrote: On 6/28/13 14:01 , Laszlo Ersek ler...@redhat.com wrote: On 06/06/13 17:06, Tomoki Sekiyama wrote: +static t_CreateVssBackupComponents _CreateVssBackupComponents; +static t_VssFreeSnapshotProperties _VssFreeSnapshotProperties; Unless there's a

Re: [Qemu-devel] [PATCH] block: add the optional file entry to query-block

2013-07-01 Thread Kevin Wolf
Am 28.06.2013 um 21:32 hat Eric Blake geschrieben: On 06/28/2013 08:32 AM, Federico Simoncelli wrote: This patch adds the optional file entry to the query-block output. The value is a json-object representing the information about the underlying file or device (when present).

Re: [Qemu-devel] [PATCH v2 00/11] Memory patches, part 4: region ownership

2013-07-01 Thread Jan Kiszka
On 2013-06-28 18:58, Paolo Bonzini wrote: This series, split out of the previous attempt to set owners for memory regions, adds reference counting operations to memory regions and uses them. As requested by Peter, I'm adding an argument for the owner to all memory region creation functions.

Re: [Qemu-devel] PVFS2 Block Driver Support

2013-07-01 Thread Stefan Hajnoczi
On Thu, Jun 27, 2013 at 10:40:23PM +0100, Alex Bligh wrote: --On 27 June 2013 16:53:40 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: I realized I should give a bit more info to help you get started. tests/qemu-iotests/check is the script to run tests. There are currently around 55 tests

Re: [Qemu-devel] [PATCH v2 00/11] Memory patches, part 4: region ownership

2013-07-01 Thread Jan Kiszka
On 2013-07-01 10:43, Jan Kiszka wrote: On 2013-06-28 18:58, Paolo Bonzini wrote: This series, split out of the previous attempt to set owners for memory regions, adds reference counting operations to memory regions and uses them. As requested by Peter, I'm adding an argument for the owner to

Re: [Qemu-devel] [PATCH 4/4] qapi: Rename ChardevBackend member memory to ringbuf

2013-07-01 Thread Amos Kong
On Mon, Jul 01, 2013 at 10:10:40AM +0200, Markus Armbruster wrote: Amos Kong ak...@redhat.com writes: On Fri, Jun 28, 2013 at 07:19:39PM +0200, Markus Armbruster wrote: Eric Blake ebl...@redhat.com writes: On 06/27/2013 08:22 AM, Markus Armbruster wrote: Commit 1da48c6 called the

[Qemu-devel] [PULL] virtio-ccw build fix

2013-07-01 Thread Cornelia Huck
The following changes since commit ffeec223b55ea696567ed544016824199cd7c7bc: Merge remote-tracking branch 'mjt/trivial-patches' into staging (2013-06-28 15:48:35 -0500) are available in the git repository at: git://github.com/cohuck/qemu virtio-ccw-upstr for you to fetch changes up to

[Qemu-devel] [PULL] virtio-ccw: fix build breakage on windows

2013-07-01 Thread Cornelia Huck
event_notifier_get_fd() is not available on windows hosts. Fix this by moving the calls to event_notifier_get_fd() to the kvm code. Reported-by: Stefan Weil s...@weilnetz.de Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com ---

Re: [Qemu-devel] How does 'make test' work?

2013-07-01 Thread Laszlo Ersek
On 06/29/13 19:51, Alex Bligh wrote: How is one meant to make the tests? make test fails with: make[1]: Entering directory `/home/amb/qemu/git/qemu/tests/tcg' cc -m32 -I/home/amb/qemu/git/qemu/tcg -I/home/amb/qemu/git/qemu/tcg/i386 -I/home/amb/qemu/git/qemu/linux-headers

Re: [Qemu-devel] [PATCH RFC 01/15] cpu/a9mpcore: QOM casting cleanup

2013-07-01 Thread Peter Crosthwaite
On Mon, Jul 1, 2013 at 7:00 AM, Andreas Färber afaer...@suse.de wrote: From: Andreas Färber andreas.faer...@web.de Introduce type constant and cast macro and enforce its use by renaming A9MPPrivState::busdev field to parent_obj. Signed-off-by: Andreas Färber andreas.faer...@web.de

Re: [Qemu-devel] How does 'make test' work?

2013-07-01 Thread Peter Maydell
On 29 June 2013 18:51, Alex Bligh a...@alex.org.uk wrote: How is one meant to make the tests? make test fails with: make check is the target people actually run. It looks like Paolo's file rearrangement broke the test_path test (since it directly #includes other QEMU files) and nobody's noticed.

Re: [Qemu-devel] [PATCH RFC 04/15] misc/a9scu: QOM cleanups

2013-07-01 Thread Peter Crosthwaite
On Mon, Jul 1, 2013 at 7:00 AM, Andreas Färber afaer...@suse.de wrote: From: Andreas Färber andreas.faer...@web.de Rename A9SCUState::busdev field to parent_obj and turn realizefn into an instance_init function to allow early MMIO mapping. Signed-off-by: Andreas Färber andreas.faer...@web.de

Re: [Qemu-devel] [PATCH 4/4] qapi: Rename ChardevBackend member memory to ringbuf

2013-07-01 Thread Markus Armbruster
Amos Kong ak...@redhat.com writes: On Mon, Jul 01, 2013 at 10:10:40AM +0200, Markus Armbruster wrote: Amos Kong ak...@redhat.com writes: On Fri, Jun 28, 2013 at 07:19:39PM +0200, Markus Armbruster wrote: Eric Blake ebl...@redhat.com writes: On 06/27/2013 08:22 AM, Markus Armbruster

Re: [Qemu-devel] [PATCH RFC 06/15] timer/arm_mptimer: QOM cast cleanup

2013-07-01 Thread Peter Crosthwaite
On Mon, Jul 1, 2013 at 7:00 AM, Andreas Färber afaer...@suse.de wrote: From: Andreas Färber andreas.faer...@web.de Introduce type constant and cast macro and rename ARMMPTimerState::busdev to enforce its use. Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/timer/arm_mptimer.c

Re: [Qemu-devel] [PATCH RFC 07/15] timer/arm_mptimer: Convert to QOM realize

2013-07-01 Thread Peter Crosthwaite
Hi Andreas, On Mon, Jul 1, 2013 at 7:00 AM, Andreas Färber afaer...@suse.de wrote: From: Andreas Färber andreas.faer...@web.de Split the SysBusDevice initfn into instance_init and realizefn. Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/timer/arm_mptimer.c | 25

Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock

2013-07-01 Thread Hu Tao
On Sun, Jun 30, 2013 at 04:36:13PM +0200, Andreas Färber wrote: Am 25.06.2013 19:45, schrieb Eduardo Habkost: On Tue, Jun 25, 2013 at 10:20:08AM +0800, Hu Tao wrote: [...] Is TYPE_SYS_BUS_DEVICE guaranteed to never override -realize() itself? From DeviceClass documentation: * If a

[Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers

2013-07-01 Thread Stefan Hajnoczi
From: Paolo Bonzini pbonz...@redhat.com Fast TLS is not available on some platforms, but it is always nice to use it. This wrapper implementation falls back to pthread_get/setspecific on POSIX systems that lack __thread, but uses the dynamic linker's TLS support on Linux and Windows. The user

[Qemu-devel] [PATCH 1/2] exec: do not use qemu/tls.h

2013-07-01 Thread Stefan Hajnoczi
From: Paolo Bonzini pbonz...@redhat.com The next patch will change qemu/tls.h to support more platforms, but at some performance cost. Declare cpu_single_env directly instead of using the tls.h abstractions. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- exec.c | 10

[Qemu-devel] [PATCH 0/2] Fast Thread-Local Storage support

2013-07-01 Thread Stefan Hajnoczi
These patches by Paolo Bonzini pbonz...@redhat.com add thread-local storage support for POSIX and Windows platforms. Fast native TLS mechanisms are used when available and pthread_get/setspecific() is used as a fallback. My dataplane block layer RFC work relies on this and it has been discussed

Re: [Qemu-devel] [PATCH 08/30] rcu: add rcu library

2013-07-01 Thread Jan Kiszka
On 2013-06-28 20:26, Paolo Bonzini wrote: This includes a (mangled) copy of the urcu-qsbr code from liburcu. The main changes are: 1) removing dependencies on many other header files in liburcu; 2) removing for simplicity the tentative busy waiting in synchronize_rcu, which has limited

Re: [Qemu-devel] [PATCH 1/2] exec: do not use qemu/tls.h

2013-07-01 Thread Peter Maydell
On 1 July 2013 10:35, Stefan Hajnoczi stefa...@redhat.com wrote: From: Paolo Bonzini pbonz...@redhat.com The next patch will change qemu/tls.h to support more platforms, but at some performance cost. Declare cpu_single_env directly instead of using the tls.h abstractions. Signed-off-by:

Re: [Qemu-devel] [PATCH] semaphore: fix a hangup problem under load on NetBSD hosts.

2013-07-01 Thread Laszlo Ersek
On 06/29/13 12:22, Izumi Tsutsui wrote: Fix following bugs in fallback implementation of counting semaphores with mutex+condvar added in c166cb72f1676855816340666c3b618beef4b976: - waiting threads are not restarted properly if more than one threads are waiting unblock signals in

Re: [Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-07-01 Thread Andreas Färber
Am 01.07.2013 01:36, schrieb Alexander Graf: On 30.06.2013, at 10:21, Andreas Färber wrote: Am 24.06.2013 08:55, schrieb peter.crosthwa...@xilinx.com: From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct -

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-07-01 Thread Paolo Bonzini
Il 30/06/2013 17:23, Michael Tokarev ha scritto: Perhaps we can instead use something like common.o: $(patsubst %,../%, $(common-obj-y)) $(LD) -r -o $@ $^ and then link common.o into the QEMU target. Libtool can also be used to abstract ld -r. Making libtool mandatory wouldn't

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-07-01 Thread Michael Tokarev
01.07.2013 14:08, Paolo Bonzini wrote: Il 30/06/2013 17:23, Michael Tokarev ha scritto: Perhaps we can instead use something like common.o: $(patsubst %,../%, $(common-obj-y)) $(LD) -r -o $@ $^ and then link common.o into the QEMU target. Libtool can also be used to abstract ld -r.

Re: [Qemu-devel] [PATCH v2 08/30] ide/ich: QOM Upcast Sweep

2013-07-01 Thread Alexander Graf
On 01.07.2013, at 12:03, Andreas Färber wrote: Am 01.07.2013 01:36, schrieb Alexander Graf: On 30.06.2013, at 10:21, Andreas Färber wrote: Am 24.06.2013 08:55, schrieb peter.crosthwa...@xilinx.com: From: Peter Crosthwaite peter.crosthwa...@xilinx.com Define and use standard QOM cast

Re: [Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers

2013-07-01 Thread Peter Maydell
On 1 July 2013 10:35, Stefan Hajnoczi stefa...@redhat.com wrote: From: Paolo Bonzini pbonz...@redhat.com Fast TLS is not available on some platforms, but it is always nice to use it. This wrapper implementation falls back to pthread_get/setspecific on POSIX systems that lack __thread, but

Re: [Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers

2013-07-01 Thread Paolo Bonzini
Il 01/07/2013 11:54, Peter Maydell ha scritto: On 1 July 2013 10:35, Stefan Hajnoczi stefa...@redhat.com wrote: From: Paolo Bonzini pbonz...@redhat.com Fast TLS is not available on some platforms, but it is always nice to use it. This wrapper implementation falls back to

Re: [Qemu-devel] [PATCH 1/2] exec: do not use qemu/tls.h

2013-07-01 Thread Paolo Bonzini
Il 01/07/2013 11:51, Peter Maydell ha scritto: On 1 July 2013 10:35, Stefan Hajnoczi stefa...@redhat.com wrote: From: Paolo Bonzini pbonz...@redhat.com The next patch will change qemu/tls.h to support more platforms, but at some performance cost. Declare cpu_single_env directly instead of

Re: [Qemu-devel] [PATCH 05/30] exec: do not use qemu/tls.h

2013-07-01 Thread Paolo Bonzini
Il 29/06/2013 01:53, Ed Maste ha scritto: On 28 June 2013 14:26, Paolo Bonzini pbonz...@redhat.com wrote: +/* This is thread-local depending on __linux__ because: Is the comment perhaps unchanged from an earlier revision that used a different test? It seems odd to me to reference __linux__

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries

2013-07-01 Thread Paolo Bonzini
Il 01/07/2013 12:10, Michael Tokarev ha scritto: Perhaps we can instead use something like common.o: $(patsubst %,../%, $(common-obj-y)) $(LD) -r -o $@ $^ and then link common.o into the QEMU target. Libtool can also be used to abstract ld -r. Making libtool mandatory

[Qemu-devel] [PATCH v2 01/26] sysbus: document SysBusDeviceClass about @init

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- include/hw/sysbus.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h index 7c2e316..9614758 100644 --- a/include/hw/sysbus.h +++ b/include/hw/sysbus.h @@ -23,6 +23,16 @@ typedef struct

[Qemu-devel] [PATCH v2 05/26] i440fx: use type-safe cast instead of directly access of parent dev

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/pci-host/piix.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 801341a..e2437df 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -121,22 +121,24 @@ static

[Qemu-devel] [PATCH v2 08/26] fdc: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and avoid DO_UPCAST(), container_of(), and use DEVICE() to avoid accessing parent qdev directly. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/fdc.c | 37 - 1 file changed, 20 insertions(+), 17 deletions(-) diff --git

[Qemu-devel] [PATCH v2 00/26] use realizefn for SysBusDevice, part 1

2013-07-01 Thread Hu Tao
This series updates part of devices inheriting from SysbusDevice to use DeviceState::realize, and QOM'ify them. These devices are default to x86_64-softmmu. I'm planning to make patches in the same manner, that is, each series is for devices default to each target. After all devices are converted

[Qemu-devel] [PATCH v2 03/26] ohci: use realize for ohci

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/usb/hcd-ohci.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 912255d..ee824ee 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -1880,17 +1880,16 @@ typedef

[Qemu-devel] [PATCH v2 06/26] q35: use type-safe cast instead of directly access of parent dev

2013-07-01 Thread Hu Tao
And remove variables if possible. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/pci-host/q35.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 24df6b5..61b525f 100644 --- a/hw/pci-host/q35.c

[Qemu-devel] [PATCH v2 11/26] pflash_cfi01: use realize for pflash_cfi01

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/pflash_cfi01.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 7f7af06..06c045b 100644 --- a/hw/block/pflash_cfi01.c +++ b/hw/block/pflash_cfi01.c @@

[Qemu-devel] [PATCH v2 02/26] ohci: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and avoid DO_UPCAST(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/usb/hcd-ohci.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 5513924..912255d 100644 --- a/hw/usb/hcd-ohci.c

[Qemu-devel] [PATCH v2 17/26] fwcfg: use realize for fwcfg

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/nvram/fw_cfg.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index c8722c2..656ffcc 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -523,31 +523,37

[Qemu-devel] [PATCH v2 04/26] i440fx-pcihost: use realize for i440fx-pcihost

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/pci-host/piix.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index f9e68c3..801341a 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -197,21

[Qemu-devel] [PATCH v2 12/26] pflash-cfi02: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and replace FROM_SYSBUS(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/pflash_cfi02.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 5f25246..f1e76f0 100644 ---

[Qemu-devel] [PATCH v2 14/26] ahci: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and avoid DO_UPCAST(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/ide/ahci.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 3c86b3a..5dcd662 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@

[Qemu-devel] [PATCH v2 09/26] fdc: use realize for fdc.

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/fdc.c | 62 ++ 1 file changed, 41 insertions(+), 21 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index f8270cb..0fe0cf9 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@

[Qemu-devel] [PATCH v2 21/26] hpet: use realize for hpet

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/timer/hpet.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index af80e63..731fb92 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -683,7 +683,16 @@

[Qemu-devel] [PATCH v2 13/26] pflash_cfi02: use realize for pflash_cfi02

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/pflash_cfi02.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index f1e76f0..a31fd25 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@

[Qemu-devel] [PATCH v2 15/26] ahci: use realize for ahci

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/ide/ahci.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 5dcd662..d92239b 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1300,14 +1300,13 @@ static void

Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock

2013-07-01 Thread Andreas Färber
Am 01.07.2013 11:31, schrieb Hu Tao: On Sun, Jun 30, 2013 at 04:36:13PM +0200, Andreas Färber wrote: Am 25.06.2013 19:45, schrieb Eduardo Habkost: On Tue, Jun 25, 2013 at 10:20:08AM +0800, Hu Tao wrote: [...] Is TYPE_SYS_BUS_DEVICE guaranteed to never override -realize() itself? From

[Qemu-devel] [PATCH v2 19/26] scsi esp: use realize for scsi esp

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/scsi/esp.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index f7d6389..714d2fd 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi/esp.c @@ -668,23 +668,33 @@ static void

[Qemu-devel] [PATCH v2 16/26] fwcfg: QOM'ify some more

2013-07-01 Thread Hu Tao
Use type constant if possible and avoid DO_UPCAST(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/nvram/fw_cfg.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index 3c255ce..c8722c2 100644 --- a/hw/nvram/fw_cfg.c +++

[Qemu-devel] [PATCH v2 23/26] kvmclock: use realize for kvmclock

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/i386/kvm/clock.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index fcdcbca..4f6e6f9 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -90,12 +90,11 @@ static void

Re: [Qemu-devel] [PATCH 04/30] add a header file for atomic operations

2013-07-01 Thread Paolo Bonzini
Il 28/06/2013 22:41, Anthony Liguori ha scritto: Tiny copy/paste error here: s/qemu memory/memory/g. One thing I've been thinking about reviewing this code, what should we be doing in virtio.c? We have barriers but we're relying on st[u][wlb]_phys having atomic semantics. I think it's

[Qemu-devel] [PATCH v2 24/26] kvmvapic realize

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/i386/kvmvapic.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index f93629f..fa85096 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -698,19 +698,18 @@ static

[Qemu-devel] [PATCH v2 18/26] scsi esp: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and avoid DO_UPCAST(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/scsi/esp.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 0c81a50..f7d6389 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi/esp.c @@

[Qemu-devel] [PATCH v2 20/26] hpet: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant, avoid FROM_SYSBUS(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/timer/hpet.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 95dd01d..af80e63 100644 --- a/hw/timer/hpet.c +++

[Qemu-devel] [PATCH v2 22/26] kvmclock: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and avoid FROM_SYSBUS(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/i386/kvm/clock.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 87d4d0f..fcdcbca 100644 --- a/hw/i386/kvm/clock.c +++

[Qemu-devel] [PATCH v2 26/26] isa bus: remove isabus_bridge_init since it does nothing

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/isa/isa-bus.c | 8 1 file changed, 8 deletions(-) diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index 136d17e..6aea97b 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -192,18 +192,10 @@ static void isabus_dev_print(Monitor

Re: [Qemu-devel] [PATCH] Add delay option to blkdebug

2013-07-01 Thread Kevin Wolf
Am 29.06.2013 um 20:02 hat Alex Bligh geschrieben: Add a delay option to blkdebug, allowing operations to be delayed by a specifiable number of microseconds. Example configuration: [inject-error] event = read_aio delay = 20 Signed-off-by: Alex Bligh a...@alex.org.uk inject-error

[Qemu-devel] [PATCH v2 25/26] ioapic: use realize for ioapic

2013-07-01 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/intc/ioapic_common.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 5c5bb3c..5dc1f1e 100644 --- a/hw/intc/ioapic_common.c +++ b/hw/intc/ioapic_common.c @@

Re: [Qemu-devel] [PATCH 05/30] exec: do not use qemu/tls.h

2013-07-01 Thread Paolo Bonzini
Il 29/06/2013 12:55, Peter Maydell ha scritto: On 28 June 2013 19:26, Paolo Bonzini pbonz...@redhat.com wrote: The next patch will change qemu/tls.h to support more platforms, but at some performance cost. Declare cpu_single_env directly instead of using the tls.h abstractions.

Re: [Qemu-devel] [PATCH 1/2] exec: do not use qemu/tls.h

2013-07-01 Thread Andreas Färber
Am 01.07.2013 11:35, schrieb Stefan Hajnoczi: From: Paolo Bonzini pbonz...@redhat.com The next patch will change qemu/tls.h to support more platforms, but at some performance cost. Declare cpu_single_env directly instead of using the tls.h abstractions. Signed-off-by: Paolo Bonzini

Re: [Qemu-devel] [PATCH v2] spapr: Fix compiler warnings for some versions of gcc

2013-07-01 Thread Paolo Bonzini
Il 29/06/2013 15:47, Stefan Weil ha scritto: i686-w64-mingw32-gcc (GCC) 4.6.3 from Debian wheezy reports these warnings: hw/ppc/spapr_hcall.c:188:1: warning: control reaches end of non-void function [-Wreturn-type] hw/ppc/spapr_pci.c:454:1: warning: control reaches end of non-void

[Qemu-devel] [PATCH v2 07/26] q35: use realize for q35 host

2013-07-01 Thread Hu Tao
and split off memory region initialization into instance_init. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/pci-host/q35.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 61b525f..244e2f5 100644

[Qemu-devel] [PATCH v2 10/26] pflash-cfi01: QOM'ify some more

2013-07-01 Thread Hu Tao
Introduce type constant and replace FROM_SYSBUS(). Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/block/pflash_cfi01.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c index 63d7c99..7f7af06 100644 ---

Re: [Qemu-devel] [PATCH 05/30] exec: do not use qemu/tls.h

2013-07-01 Thread Peter Maydell
On 1 July 2013 11:45, Paolo Bonzini pbonz...@redhat.com wrote: Il 29/06/2013 12:55, Peter Maydell ha scritto: We should just be consistent and always make this be per-thread. If it's okay to make cpu_single_env accesses more expensive by a factor of 4 on TLS-deficient hosts (at least

Re: [Qemu-devel] [PATCH 04/30] add a header file for atomic operations

2013-07-01 Thread Peter Maydell
On 28 June 2013 21:41, Anthony Liguori anth...@codemonkey.ws wrote: One thing I've been thinking about reviewing this code, what should we be doing in virtio.c? We have barriers but we're relying on st[u][wlb]_phys having atomic semantics. I think it's okay in practice but if we're taking a

Re: [Qemu-devel] [PATCH] Add delay option to blkdebug

2013-07-01 Thread Alex Bligh
Kevin, --On 1 July 2013 12:23:53 +0200 Kevin Wolf kw...@redhat.com wrote: inject-error doesn't really describe this well. Shouldn't we rather introduce a new section [delay] or something like that? That's how I started off. Then I realised you might want to make the delay dependent on the

Re: [Qemu-devel] [PATCH 4/4] qapi: Rename ChardevBackend member memory to ringbuf

2013-07-01 Thread Amos Kong
On Mon, Jul 01, 2013 at 11:28:58AM +0200, Markus Armbruster wrote: Amos Kong ak...@redhat.com writes: On Mon, Jul 01, 2013 at 10:10:40AM +0200, Markus Armbruster wrote: Amos Kong ak...@redhat.com writes: On Fri, Jun 28, 2013 at 07:19:39PM +0200, Markus Armbruster wrote: Eric Blake

Re: [Qemu-devel] [PATCH 08/32] kvm/openpic: in-kernel mpic support

2013-07-01 Thread Andreas Färber
Am 01.07.2013 01:18, schrieb Andreas Färber: Am 01.07.2013 01:01, schrieb Alexander Graf: On 30.06.2013, at 08:13, Andreas Färber wrote: Am 30.06.2013 03:44, schrieb Alexander Graf: From: Scott Wood scottw...@freescale.com Enables support for the in-kernel MPIC that thas been merged into

[Qemu-devel] [PATCH] dataplane: sync virtio.c and vring.c virtqueue state

2013-07-01 Thread Stefan Hajnoczi
Load the virtio.c state into vring.c when we start dataplane mode and vice versa when stopping dataplane mode. This patch makes it possible to start and stop dataplane any time while the guest is running. This will eventually allow us to go back to QEMU main loop for bdrv_drain_all() and live

[Qemu-devel] [PATCH] block: fix bdrv_flush() ordering in bdrv_close()

2013-07-01 Thread Stefan Hajnoczi
Since 80ccf93b we flush the block device during close. The bdrv_drain_all() call should come before bdrv_flush() to ensure guest write requests have completed. Otherwise we may miss pending writes when flushing. However, there is still a slight change that cancelling a blockjob or doing

[Qemu-devel] [PATCH] target-arm: Avoid g_hash_table_get_keys()

2013-07-01 Thread Peter Maydell
g_hash_table_get_keys() was only introduced in glib 2.14, and we're still targeting a minimum version of 2.12. Rewrite the offending code (introduced in commit 721fae1) to use g_hash_table_foreach() to build the list of keys. Signed-off-by: Peter Maydell peter.mayd...@linaro.org ---

Re: [Qemu-devel] [PATCH] kvmclock: clock should count only if vm is running (v2)

2013-07-01 Thread Paolo Bonzini
Il 25/06/2013 14:18, Gleb Natapov ha scritto: On Tue, Jun 18, 2013 at 08:38:25PM -0300, Marcelo Tosatti wrote: v2: remove unnecessary runstate_is_running() usage (Paolo) -- kvmclock should not count while vm is paused, because: 1) if the vm is paused for long periods,

Re: [Qemu-devel] [RFC] Policy for supported hosts/platforms

2013-07-01 Thread Stefan Hajnoczi
On Thu, Jun 20, 2013 at 09:58:41AM -0400, Ed Maste wrote: On 5 June 2013 10:04, Anthony Liguori aligu...@us.ibm.com wrote: Hi, Below is the coverage we currently have in buildbot. It's not terribly complete but I suspect it does reflect what people are actually testing and care

Re: [Qemu-devel] [PATCH 30/30] exec: put address space dispatch under RCU critical section

2013-07-01 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 28/06/2013 21:38, Jan Kiszka ha scritto: At this point, do we still have unowned memory regions? Yes, for stuff that is registered by the boards or by non-qdevified devices. In either case, they cannot disappear so it's fine that you call

Re: [Qemu-devel] [PATCH v2 3/6] net: make netclient re-entrant with refcnt

2013-07-01 Thread Stefan Hajnoczi
On Thu, Jun 20, 2013 at 05:14:56PM +0800, liu ping fan wrote: On Tue, Jun 18, 2013 at 8:41 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jun 13, 2013 at 05:03:03PM +0800, Liu Ping Fan wrote: @@ -1109,6 +1146,7 @@ void net_cleanup(void) qemu_del_net_client(nc);

Re: [Qemu-devel] [PATCH] target-arm: Avoid g_hash_table_get_keys()

2013-07-01 Thread Laurent Desnogues
On Mon, Jul 1, 2013 at 1:40 PM, Peter Maydell peter.mayd...@linaro.org wrote: g_hash_table_get_keys() was only introduced in glib 2.14, and we're still targeting a minimum version of 2.12. Rewrite the offending code (introduced in commit 721fae1) to use g_hash_table_foreach() to build the

Re: [Qemu-devel] [PATCH] kvmclock: clock should count only if vm is running (v2)

2013-07-01 Thread Gleb Natapov
On Mon, Jul 01, 2013 at 01:44:42PM +0200, Paolo Bonzini wrote: Il 25/06/2013 14:18, Gleb Natapov ha scritto: On Tue, Jun 18, 2013 at 08:38:25PM -0300, Marcelo Tosatti wrote: v2: remove unnecessary runstate_is_running() usage (Paolo) -- kvmclock should not count while vm is

Re: [Qemu-devel] [PATCH v2 4/8] rdma: unpin support

2013-07-01 Thread Paolo Bonzini
Il 28/06/2013 21:59, mrhi...@linux.vnet.ibm.com ha scritto: +/* + * Perform a non-optimized memory unregistration after every transfer + * for demonsration purposes, only if pin-all is not requested. + * + * Potential optimizations: + * 1. Start a new thread to run this function continuously

Re: [Qemu-devel] [RFC] Policy for supported hosts/platforms

2013-07-01 Thread Ed Maste
On 1 July 2013 07:47, Stefan Hajnoczi stefa...@gmail.com wrote: Yes, Christian Berendt admins the buildmaster. How much time has passed since you emailed? June 7; perhaps the email was lost. I would like to start with a FreeBSD 9.x x86_64 instance, potentially adding i386 and FreeBSD

Re: [Qemu-devel] [PATCH v4 0/9] Make 'dump-guest-memory' dump in kdump-compressed format

2013-07-01 Thread Stefan Hajnoczi
On Fri, Jun 28, 2013 at 10:57:28AM +0800, Qiao Nuohan wrote: On 06/27/2013 04:54 PM, Stefan Hajnoczi wrote: The interesting question is how effective this approach is. If it's good enough then it would be a fairly simple modification to dump.c. I see, if excluding zero page in ELF can

Re: [Qemu-devel] [PATCH V1 1/2] Implement sync modes for drive-backup.

2013-07-01 Thread Paolo Bonzini
Il 28/06/2013 04:28, Ian Main ha scritto: This patch adds sync-modes to the drive-backup interface and implements the FULL, NONE and TOP modes of synchronization. FULL performs as before copying the entire contents of the drive while preserving the point-in-time using CoW. NONE only copies

[Qemu-devel] [PATCH v5 01/18] block: ensure bdrv_drain_all() works during bdrv_delete()

2013-07-01 Thread Stefan Hajnoczi
In bdrv_delete() make sure to call bdrv_make_anon() *after* bdrv_close() so that the device is still seen by bdrv_drain_all() when iterating bdrv_states. Cc: qemu-sta...@nongnu.org Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [PATCH v5 02/18] block: stop relying on io_flush() in bdrv_drain_all()

2013-07-01 Thread Stefan Hajnoczi
If a block driver has no file descriptors to monitor but there are still active requests, it can return 1 from .io_flush(). This is used to spin during synchronous I/O. Stop relying on .io_flush() and instead check QLIST_EMPTY(bs-tracked_requests) to decide whether there are active requests.

[Qemu-devel] [PATCH v5 05/18] tests: adjust test-thread-pool to new aio_poll() semantics

2013-07-01 Thread Stefan Hajnoczi
aio_poll(ctx, true) will soon block when fd handlers have been set. Previously aio_poll() would return early if all .io_flush() returned false. This means we need to check the equivalent of the .io_flush() condition *before* calling aio_poll(ctx, true) to avoid deadlock. Reviewed-by: Paolo

[Qemu-devel] [PATCH v5 00/18] aio: drop io_flush()

2013-07-01 Thread Stefan Hajnoczi
v5: * Split out bdrv_delete() drain fix [bonzini] * Fix commit message [bonzini] v4: * Ensure pending BHs are processed in bdrv_drain_all() [bonzini] v3: * I forgot about this series, time to push it again! * Rebase onto qemu.git/master * Drop now-unused AioFlushHandler typedef [bonzini]

[Qemu-devel] [PATCH v5 04/18] tests: adjust test-aio to new aio_poll() semantics

2013-07-01 Thread Stefan Hajnoczi
aio_poll(ctx, true) will soon block if any fd handlers have been set. Previously it would only block when .io_flush() returned true. This means that callers must check their wait condition *before* aio_poll() to avoid deadlock. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Stefan

[Qemu-devel] [PATCH v5 03/18] dataplane/virtio-blk: check exit conditions before aio_poll()

2013-07-01 Thread Stefan Hajnoczi
Check exit conditions before entering blocking aio_poll(). This is mainly for consistency since it's unlikely that we are stopping in the first event loop iteration. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/block/dataplane/virtio-blk.c | 4 ++-- 1 file changed, 2 insertions(+),

[Qemu-devel] [PATCH v5 17/18] tests: drop event_active_cb()

2013-07-01 Thread Stefan Hajnoczi
Drop the io_flush argument to aio_set_event_notifier(). Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- tests/test-aio.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/tests/test-aio.c

[Qemu-devel] [PATCH v5 15/18] dataplane/virtio-blk: drop flush_true() and flush_io()

2013-07-01 Thread Stefan Hajnoczi
.io_flush() is no longer called so drop flush_true() and flush_io(). Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/block/dataplane/virtio-blk.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c

[Qemu-devel] [PATCH v5 06/18] aio: stop using .io_flush()

2013-07-01 Thread Stefan Hajnoczi
Now that aio_poll() users check their termination condition themselves, it is no longer necessary to call .io_flush() handlers. The behavior of aio_poll() changes as follows: 1. .io_flush() is no longer invoked and file descriptors are *always* monitored. Previously returning 0 from .io_flush()

[Qemu-devel] [PATCH v5 09/18] block/iscsi: drop iscsi_process_flush()

2013-07-01 Thread Stefan Hajnoczi
.io_flush() is no longer called so drop iscsi_process_flush(). Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/iscsi.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index 0bbf0b1..23c46ed 100644 --- a/block/iscsi.c +++

[Qemu-devel] [PATCH v5 16/18] thread-pool: drop thread_pool_active()

2013-07-01 Thread Stefan Hajnoczi
.io_flush() is no longer called so drop thread_pool_active(). The block layer is the only thread-pool.c user and it already tracks in-flight requests, therefore we do not need thread_pool_active(). Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- thread-pool.c | 8 +--- 1 file

[Qemu-devel] [PATCH v5 07/18] block/curl: drop curl_aio_flush()

2013-07-01 Thread Stefan Hajnoczi
.io_flush() is no longer called so drop curl_aio_flush(). The acb[] array that the function checks is still used in other parts of block/curl.c. Therefore we cannot remove acb[], it is needed. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/curl.c | 22 +++--- 1

[Qemu-devel] [PATCH v5 11/18] block/nbd: drop nbd_have_request()

2013-07-01 Thread Stefan Hajnoczi
.io_flush() is no longer called so drop nbd_have_request(). We cannot drop in_flight since it is still used by other block/nbd.c code. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/nbd.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git

  1   2   3   >