Re: [Qemu-devel] [RFC Design Doc]Speed up live migration by skipping free pages

2016-03-23 Thread Li, Liang Z
> Hi, Liang > > This is a very clear documentation of your work, I appreciated it a lot. Below > are some of my personal opinion and question. > Thanks for your comments! > On Tue, Mar 22, 2016 at 03:43:49PM +0800, Liang Li wrote: > >I have sent the RFC version patch set for live migration opti

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Changlong Xie
On 03/22/2016 08:22 PM, Dr. David Alan Gilbert wrote: * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: From: Wen Congyang Introduce a "xen-load-devices-state" QAPI command that can be used to load the state of all devices, but not the RAM or the block devices of the VM. We only have hmp com

[Qemu-devel] [PATCH v2 1/2] hw/pci-bridge: Add missing unref in case register-bus fails

2016-03-23 Thread Wei Jiangang
The error paths after a successful qdev_create/pci_bus_new should contain a object_unref/object_unparent. pxb_dev_init_common() did not yet, so add it. Signed-off-by: Wei Jiangang Signed-off-by: Cao jin --- hw/pci-bridge/pci_expander_bridge.c | 8 +++- 1 file changed, 7 insertions(+), 1 del

[Qemu-devel] [PATCH v2 2/2] hw/pci-bridge: Convert pxb initialization functions to Error

2016-03-23 Thread Wei Jiangang
Firstly, convert pxb_dev_init_common() to Error and rename it to pxb_dev_realize_common(). Actually, pxb_register_bus() is converted as well. And then, convert pxb_dev_initfn() and pxb_pcie_dev_initfn() to Error, rename them to pxb_dev_realize() and pxb_pcie_dev_realize() respectively. Signed-off

[Qemu-devel] [PATCH v2 0/2] Convert pxb initfn to Error

2016-03-23 Thread Wei Jiangang
v1 -> v2: - Extract a separate bugfix patch - Squash v1 patches 1-3 together - Drop the period and exclamation mark - Modify commit message v1: cover-letter The original patch named '[PATCH v3] PXB: convert to realize()' was raised by Cao jin , and reviewed by Marcel Apfelbaum . It conflicts w

Re: [Qemu-devel] [PATCH v2 2/2] hw/pci-bridge: Convert pxb initialization functions to Error

2016-03-23 Thread Cao jin
On 03/23/2016 03:26 PM, Wei Jiangang wrote: -static int pxb_dev_init_common(PCIDevice *dev, bool pcie) +static void pxb_dev_realize_common(PCIDevice *dev, bool pcie, Error **errp) { PXBDev *pxb = convert_to_pxb(dev); DeviceState *ds, *bds = NULL; PCIBus *bus; const c

[Qemu-devel] [PATCH v6 05/11] block: m25p80: 4byte address mode

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski This patch adds only 4byte address mode (does not cover dummy cycles). This mode is needed to access more than 16 MiB of flash. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 43 +-- 1 fil

[Qemu-devel] [PATCH v6 03/11] block: m25p80: Widen flags variable

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Extend the width of the flags variable to support the already existing (but unused) WR_1 flag, which is above the range of 8 bits. This allows support of EEPROM emulation which requires the WR_1 feature. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --

[Qemu-devel] [PATCH v6 00/11] Support for N25Q256/512 and AT25128/256

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski V6: Currected VMSTATE entries to proper handle migration (*_V fields are used) V5: Changes after review - Macrofication of registers values - Numonyx is default value in switch for fast read family V4: - Fixed RNVCR command (needed bytes set to 2 instead of 1) - Config reg

[Qemu-devel] [PATCH v6 04/11] block: m25p80: Extend address mode

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Extend address mode allows to switch flash 16 MiB banks, allowing user to access all flash sectors. This access mode is used by u-boot. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite # Conflicts: # hw/block/m25p80.c --- hw/block/m25p80.c | 27 ++

[Qemu-devel] [PATCH v6 06/11] block: m25p80: Add configuration registers

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski This patch adds both volatile and non volatile configuration registers and commands to allow modify them. It is needed for proper handling dummy cycles. Initialization of those registers and flash state has been included as well. Some of this registers are used by kernel.

[Qemu-devel] [PATCH v6 07/11] block: m25p80: Dummy cycles for N25Q256/512

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Use the setting from the volatile cfg register to correctly set the number of dummy cycles. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/bloc

[Qemu-devel] [PATCH v6 02/11] block: m25p80: RESET_ENABLE and RESET_MEMORY commands

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 124..ad91e70 100644 --- a/

[Qemu-devel] [PATCH v6 09/11] block: m25p80: Implemented FSR register

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Implements FSR register, it is used for busy waits. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 1e615ca..479d4c5 1

[Qemu-devel] [PATCH v6 01/11] block: m25p80: Removed unused variable

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index de24f42..124 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -246,8 +246,

[Qemu-devel] [PATCH v6 10/11] block: m25p80: n25q256a/n25q512a models

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 479d4c5..bdd87fa 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.

[Qemu-devel] [PATCH v6 11/11] block: m25p80: at25128a/at25256a models

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index bdd87fa..906b712 100644 --- a/hw/block/m25p80.c +++ b/h

[Qemu-devel] [PATCH v6 08/11] block: m25p80: Fast read and 4bytes commands

2016-03-23 Thread marcin . krzeminski
From: Marcin Krzeminski Adds fast read and 4bytes commands family. This work is based on Pawel Lenkow patch from v1. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 50 ++ 1 file changed, 46 insertions(+),

Re: [Qemu-devel] [Qemu-stable] [PATCH 28/35] spapr: skip configuration section during migration of older machines

2016-03-23 Thread Greg Kurz
On Tue, 22 Mar 2016 17:35:18 -0500 Michael Roth wrote: > Quoting Greg Kurz (2016-03-22 02:49:35) > > On Mon, 21 Mar 2016 12:28:26 -0500 > > Michael Roth wrote: > > > > > From: Greg Kurz > > > > > > Since QEMU 2.4, we have a configuration section in the migration stream. > > > This must be s

Re: [Qemu-devel] [PATCH] util: Improved qemu_hexmap() to include an ascii dump of the buffer

2016-03-23 Thread Thomas Huth
On 23.03.2016 01:14, John Snow wrote: > > On 03/22/2016 03:41 AM, Isaac Lozano wrote: >> qemu_hexdump() in util/hexdump.c has been changed to give also include a >> ascii dump of the buffer. Also, calls to hex_dump() in net/net.c have >> been replaced with calls to qemu_hexdump(). This takes care

Re: [Qemu-devel] [Qemu-block] [PATCH 4/4] virtio-blk: Clean up start/stop with mutex and BH

2016-03-23 Thread Cornelia Huck
On Tue, 22 Mar 2016 19:05:09 +0100 Paolo Bonzini wrote: > On 22/03/2016 13:52, Fam Zheng wrote: > >> You're right. After unrealizing virtio_blk_data_plane_stop has set of > >> vblk->dataplane_started = false, so that's covered. However, you still > >> need an object_ref/object_object_unref pair

Re: [Qemu-devel] [PATCH] util: Improved qemu_hexmap() to include an ascii dump of the buffer

2016-03-23 Thread Thomas Huth
Hi Isaac, thanks for taking care of this! Comments below... On 22.03.2016 08:41, Isaac Lozano wrote: > qemu_hexdump() in util/hexdump.c has been changed to give also include a > ascii dump of the buffer. Also, calls to hex_dump() in net/net.c have > been replaced with calls to qemu_hexdump(). Th

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-23 Thread Markus Armbruster
Cao jin writes: > On 03/02/2016 05:13 PM, Markus Armbruster wrote: >> This got lost over the Christmas break, sorry. >> >> Cc'ing Marcel for additional PCI expertise. >> >> Cao jin writes: >> >>> msi_init() is a supporting function in PCI device initialization, >>> in order to convert .init() to

[Qemu-devel] [Bug 1546445] Re: support vhost user without specifying vhostforce

2016-03-23 Thread Liang Chen
Tested with 1:2.2+dfsg-5expubuntu9.7~cloud2, and the fix works for me. ** Tags removed: verification-kilo-needed ** Tags added: verification-kilo-done -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/15

Re: [Qemu-devel] [PULL 00/10] tricore-patches

2016-03-23 Thread Bastian Koppelmann
On 03/22/2016 09:15 PM, Peter Maydell wrote: > On 22 March 2016 at 13:46, Bastian Koppelmann > wrote: >> The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a: >> >> Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' >> into staging (2016-03-18 17:18:4

Re: [Qemu-devel] [PATCH 10/22] qcow2-dirty-bitmap: add qcow2_bitmap_store()

2016-03-23 Thread Vladimir Sementsov-Ogievskiy
On 22.03.2016 21:49, Eric Blake wrote: On 03/15/2016 02:04 PM, Vladimir Sementsov-Ogievskiy wrote: This function stores block dirty bitmap to qcow2. If the bitmap with the same name, size and granularity already exists, it will be rewritten, if the bitmap with the same name exists but granularit

Re: [Qemu-devel] [PATCH 20/22] iotests: test internal persistent dirty bitmap

2016-03-23 Thread Vladimir Sementsov-Ogievskiy
On 22.03.2016 21:27, Eric Blake wrote: On 03/15/2016 02:04 PM, Vladimir Sementsov-Ogievskiy wrote: Add simple test cases for testing persistent dirty bitmaps. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/160| 112 ++ test

[Qemu-devel] Shared proposal draft

2016-03-23 Thread charles king
Hi, All. I hope to work on the project, Jailhouse during the GSOC 2016 I have shared my proposal draft with Qemu, on the GSoc website. I will be very glad to receive any kind of feedback from the organization. Enthusiastically awaiting to work on the project!!

[Qemu-devel] qemu-img convert corruption (raw to raw)

2016-03-23 Thread Dominik Csapak
Hi, since i got no answer on the qemu-discuss mailing list, i post it here maybe someone can help me or point me in the right direction (copy-pasted from my previous mail) Hi, I have a strange issue with qemu-img convert which corrupts my images, and found nothing relevant online. Maybe someo

[Qemu-devel] [PULL v2 00/10] tricore-patches

2016-03-23 Thread Bastian Koppelmann
stream.git tags/pull-tricore-20160323 for you to fetch changes up to 0d4c3b8010320a8ebb4061d88510e082b06ed2cc: target-tricore: Add ftoi and itof instructions (2016-03-23 09:22:48 +0100) TriCore FPU

[Qemu-devel] [PULL v2 04/10] target-tricore: Add FPU infrastructure

2016-03-23 Thread Bastian Koppelmann
This patch adds a file for all the FPU related helpers with all the includes, useful defines, and a function to update the status bits. Additionally it adds a mask for the rounding mode bits of PSW as well as all the opcodes for the FPU instructions. Reviewed-by: Richard Henderson Signed-off-by:

Re: [Qemu-devel] [PATCH 1/3] block: detach devices from DriveInfo at unrealize time

2016-03-23 Thread Markus Armbruster
Paolo Bonzini writes: > On 21/03/2016 18:19, Markus Armbruster wrote: >> Paolo Bonzini writes: >> >>> On 21/03/2016 16:13, Markus Armbruster wrote: Before your patch, we leave finalization of the property to its release() callback release_drive(), as we should. All we do here is

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-23 Thread Markus Armbruster
Paolo Bonzini writes: > On 21/03/2016 18:39, Kevin Wolf wrote: >> > When I wrote my review, I forgot that I expect x-blockdev-del to accept >> > only backends created with blockdev-add. With that, my question is >> > indeed moot. >> > >> > However, I've now tested my expectation, and it turned

Re: [Qemu-devel] [PATCH v6 0/4] ARM: add query-gic-capabilities SMP command

2016-03-23 Thread Andrea Bolognani
On Wed, 2016-03-23 at 13:32 +0800, Peter Xu wrote: > v6 changes: > - patch 1 (squashed into patch 2) >   - explain more about the following in commit message: why we need > this command, and what does the entries mean [Markus] >   - explain what GIC is [Eric] >   - squash this patch into patch

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Dr. David Alan Gilbert
* Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > On 03/22/2016 08:22 PM, Dr. David Alan Gilbert wrote: > >* Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > >>From: Wen Congyang > >> > >>Introduce a "xen-load-devices-state" QAPI command that can be used to > >>load the state of all devices,

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Wen Congyang
On 03/23/2016 04:56 PM, Dr. David Alan Gilbert wrote: > * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: >> On 03/22/2016 08:22 PM, Dr. David Alan Gilbert wrote: >>> * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: From: Wen Congyang Introduce a "xen-load-devices-state" QAPI com

Re: [Qemu-devel] [PATCH 00/12] block: Move I/O throttling to BlockBackend

2016-03-23 Thread Kevin Wolf
Am 22.03.2016 um 22:33 hat Paolo Bonzini geschrieben: > On 22/03/2016 16:33, Kevin Wolf wrote: > > This is another feature that was "logically" part of the BlockBackend, but > > implemented as a BlockDriverState feature. It was always kept on top using > > swap_feature_fields(). > > > > This serie

Re: [Qemu-devel] [PATCH for-2.6 00/14] s390-ccw bios patches

2016-03-23 Thread Christian Borntraeger
On 03/18/2016 03:21 PM, Cornelia Huck wrote: > A final round of patches for the s390-ccw bios that allow us to > boot from virtio-scsi devices. They have been through our internal > testing for some months now (so they should be stable), but I can > only send them now due to factors beyond our cont

Re: [Qemu-devel] [Qemu-block] [PATCH 4/4] virtio-blk: Clean up start/stop with mutex and BH

2016-03-23 Thread Paolo Bonzini
On 23/03/2016 09:10, Cornelia Huck wrote: >> -/* Kick right away to begin processing requests already in vring */ >> -event_notifier_set(virtio_queue_get_host_notifier(s->vq)); >> +vblk->dataplane_started = true; >> >> -/* Get this show started by hooking up our callbacks */ >> +

Re: [Qemu-devel] [PATCH 03/12] block: Introduce BlockBackendPublic

2016-03-23 Thread Kevin Wolf
Am 22.03.2016 um 22:53 hat Eric Blake geschrieben: > On 03/22/2016 09:33 AM, Kevin Wolf wrote: > > Some features, like I/O throttling, are implemented outside > > block-backend.c, but still want to keep BlockBackends in a list. In > > order to avoid exposing the whole struct layout in the public he

Re: [Qemu-devel] [Qemu-block] [PATCH 4/4] virtio-blk: Clean up start/stop with mutex and BH

2016-03-23 Thread Christian Borntraeger
On 03/23/2016 10:08 AM, Paolo Bonzini wrote: > > > On 23/03/2016 09:10, Cornelia Huck wrote: >>> -/* Kick right away to begin processing requests already in vring */ >>> -event_notifier_set(virtio_queue_get_host_notifier(s->vq)); >>> +vblk->dataplane_started = true; >>> >>> -/* Ge

Re: [Qemu-devel] [PATCH v6 0/4] ARM: add query-gic-capabilities SMP command

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 09:54:03AM +0100, Andrea Bolognani wrote: > On Wed, 2016-03-23 at 13:32 +0800, Peter Xu wrote: > > v6 changes: > > - patch 1 (squashed into patch 2) > >   - explain more about the following in commit message: why we need > > this command, and what does the entries mean [

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-23 Thread Markus Armbruster
Paolo Bonzini writes: > On 22/03/2016 11:25, Markus Armbruster wrote: >> Regardless of how and when we create BlockBackend, we'll want to keep >> the clean separation between frontend and backend internally and at the >> user interface. > > This means that the BlockBackend should not own the Driv

Re: [Qemu-devel] [RFC v1 09/11] tcg: drop global lock during TCG code execution

2016-03-23 Thread KONRAD Frederic
Hi Alex, Thanks for having pulling all that together! About this patch the original author was Jan Kiszka (https://lists.gnu.org/archive/html/qemu-devel/2011-09/msg03323.html) This has probably been dropped during a rebase. Thanks, Fred Le 18/03/2016 17:18, Alex Bennée a écrit : From: KONRA

Re: [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers

2016-03-23 Thread Cao jin
On 03/23/2016 04:12 PM, Markus Armbruster wrote: Cao jin writes: Really appreciate your review, I just finished reading all the comments and discussion. Seems pci_add_capability2()(commit cd9aa33e introduced) doesn`t follow the new error reporting rule(report error while also return erro

Re: [Qemu-devel] [PATCH 00/12] block: Move I/O throttling to BlockBackend

2016-03-23 Thread Paolo Bonzini
On 23/03/2016 10:03, Kevin Wolf wrote: > Am 22.03.2016 um 22:33 hat Paolo Bonzini geschrieben: >> On 22/03/2016 16:33, Kevin Wolf wrote: >>> This is another feature that was "logically" part of the BlockBackend, but >>> implemented as a BlockDriverState feature. It was always kept on top using >>

Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 07:41:17PM +0100, Markus Armbruster wrote: >> Markus Armbruster writes: >> >> +## >> >> +# @GICCapability: >> >> +# >> >> +# This struct describes capability for a specific GIC version. These >> >> +# bits are not only decided by QEMU/KVM software versi

Re: [Qemu-devel] [PATCH RFC 0/6] virtio: refactor host notifiers

2016-03-23 Thread Fam Zheng
On Thu, 03/17 11:01, Cornelia Huck wrote: > As discussed in the virtio-blk dataplane start/stop thread, the > various transports contain a lot of similar/identical boilerplate > code for setting up ioeventfds. This makes the code hard to follow. > > Let's drag all of the common handling into the v

Re: [Qemu-devel] [PATCH 1/3] block: detach devices from DriveInfo at unrealize time

2016-03-23 Thread Paolo Bonzini
On 23/03/2016 09:35, Markus Armbruster wrote: >> by that time you don't have anymore a QOM path to include in the event. > > I see. To delay DEVICE_DELETED, we'd have to save the QOM path, and > that would be bothersome. Not just that, the QOM path goes away at the time we currently raise DEVIC

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-23 Thread Paolo Bonzini
On 23/03/2016 10:18, Markus Armbruster wrote: >> In Kevin's idea there would be no ownership either way. Until then, I >> think my patch actually gets us closer to the ideal. > > I'm afraid it gets us closer to where we used to be six years ago :) > > Qdev drive properties used to point to a D

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Dr. David Alan Gilbert
* Wen Congyang (we...@cn.fujitsu.com) wrote: > On 03/23/2016 04:56 PM, Dr. David Alan Gilbert wrote: > > * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > >> On 03/22/2016 08:22 PM, Dr. David Alan Gilbert wrote: > >>> * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > From: Wen Congyang

Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 12:32:28PM -0600, Eric Blake wrote: >> On 03/17/2016 09:27 PM, Peter Xu wrote: >> > +## >> > +# @GICCapability: >> > +# >> > +# This struct describes capability for a specific GIC version. These >> >> Might be nice to spell out what the acronym GIC mean

Re: [Qemu-devel] [RFC Design Doc]Speed up live migration by skipping free pages

2016-03-23 Thread Wei Yang
On Wed, Mar 23, 2016 at 07:18:57AM +, Li, Liang Z wrote: >> Hi, Liang >> >> This is a very clear documentation of your work, I appreciated it a lot. >> Below >> are some of my personal opinion and question. >> > >Thanks for your comments! > >> On Tue, Mar 22, 2016 at 03:43:49PM +0800, Liang

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 07:28:13PM +0100, Markus Armbruster wrote: >> Peter Xu writes: >> > diff --git a/scripts/qapi.py b/scripts/qapi.py >> > index 6b2aa6e..716474e 100644 >> > --- a/scripts/qapi.py >> > +++ b/scripts/qapi.py >> > @@ -46,6 +46,7 @@ returns_whitelist = [ >>

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 12:42:42PM -0600, Eric Blake wrote: >> On 03/17/2016 09:27 PM, Peter Xu wrote: >> > This patch adds the command "query-gic-capabilities" but not implemnet >> >> s/not implemnet/does not implement/ > > Yep, again. Thanks. > >> >> > it. The command is AR

Re: [Qemu-devel] iotest 026 -nocache is broken

2016-03-23 Thread Vladimir Sementsov-Ogievskiy
On 22.03.2016 21:06, Paolo Bonzini wrote: On 22/03/2016 19:00, Vladimir Sementsov-Ogievskiy wrote: Hi all! Just a notice for commit (near to master branch top) commit 3666a97f78704b941c360dc917acb14c8774eca7 Author: Eric Blake Date: Thu Mar 17 16:48:40 2016 -0600 qapi: Use anonymous

Re: [Qemu-devel] [PATCH 00/12] block: Move I/O throttling to BlockBackend

2016-03-23 Thread Kevin Wolf
[ Cc: Stefan ] Am 23.03.2016 um 10:28 hat Paolo Bonzini geschrieben: > On 23/03/2016 10:03, Kevin Wolf wrote: > > Am 22.03.2016 um 22:33 hat Paolo Bonzini geschrieben: > >> On 22/03/2016 16:33, Kevin Wolf wrote: > >>> This is another feature that was "logically" part of the BlockBackend, but > >>>

Re: [Qemu-devel] [PATCH 00/12] block: Move I/O throttling to BlockBackend

2016-03-23 Thread Alberto Garcia
On Wed 23 Mar 2016 10:03:41 AM CET, Kevin Wolf wrote: >> This series would mess up my own I/O throttling cleanups that have >> been posted in February and have hardly seen a review for one month. > > Which cleanups? The ones that you hid in an I/O path locking series? > Whose v2 didn't even inclu

Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-23 Thread Markus Armbruster
Samuel Thibault writes: > Hello, > > Markus Armbruster, on Mon 21 Mar 2016 08:33:52 +0100, wrote: >> > -# @net: #optional IP address and optional netmask >> > +# @net: #optional IP address and optional netmask. Set to 0.0.0.0 to >> > disable IPv4 completely >> >> Long line. >> >> Syntax? Defa

[Qemu-devel] [PATCH v3 0/2] Convert pxb initfn to Error

2016-03-23 Thread Wei Jiangang
v2 -> v3: - Pass local *err to error_setg() in pxb_dev_realize_common() v1 -> v2: - Extract a separate bugfix patch - Squash v1 patches 1-3 together - Drop the period and exclamation mark - Modify commit message v1: cover-letter The original patch named '[PATCH v3] PXB: convert to realize()' w

[Qemu-devel] [PATCH v3 1/2] hw/pci-bridge: Add missing unref in case register-bus fails

2016-03-23 Thread Wei Jiangang
The error paths after a successful qdev_create/pci_bus_new should contain a object_unref/object_unparent. pxb_dev_init_common() did not yet, so add it. Signed-off-by: Wei Jiangang Signed-off-by: Cao jin --- hw/pci-bridge/pci_expander_bridge.c | 8 +++- 1 file changed, 7 insertions(+), 1 del

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Changlong Xie
On 03/23/2016 05:41 PM, Dr. David Alan Gilbert wrote: * Wen Congyang (we...@cn.fujitsu.com) wrote: On 03/23/2016 04:56 PM, Dr. David Alan Gilbert wrote: * Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: On 03/22/2016 08:22 PM, Dr. David Alan Gilbert wrote: * Changlong Xie (xiecl.f...@cn.fuji

[Qemu-devel] [patch v5 03/12] vfio: add pcie extended capability support

2016-03-23 Thread Cao jin
From: Chen Fan For vfio pcie device, we could expose the extended capability on PCIE bus. due to add a new pcie capability at the tail of the chain, in order to avoid config space overwritten, we introduce a copy config for parsing extended caps. and rebuild the pcie extended config space. Signe

[Qemu-devel] [PATCH v3 2/2] hw/pci-bridge: Convert pxb initialization functions to Error

2016-03-23 Thread Wei Jiangang
Firstly, convert pxb_dev_init_common() to Error and rename it to pxb_dev_realize_common(). Actually, pxb_register_bus() is converted as well. And then, convert pxb_dev_initfn() and pxb_pcie_dev_initfn() to Error, rename them to pxb_dev_realize() and pxb_pcie_dev_realize() respectively. --- hw/pci

[Qemu-devel] [patch v5 00/12] vfio-pci: pass the aer error to guest, part2

2016-03-23 Thread Cao jin
From: Chen Fan v4-v5: 1. add back the common function 0 hotplug code in pci core. 2. fix a sporadic device stuck on D3 problem when doing aer recovery. 3. fix patches 5/12 ~ 9/12 as Alex sugguestion. v3-v4: 1. rebase patchset to fit latest master branch. 2. modifying patches 5/10

[Qemu-devel] [patch v5 09/12] vfio: vote the function 0 to do host bus reset when aer occurred

2016-03-23 Thread Cao jin
From: Chen Fan Due to all devices assigned to VM on the same way as host if enable aer, so we can easily do the hot reset by selecting the function #0 to do the hot reset. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 14 ++ hw/vfio/pci.h | 1 + 2 files changed, 15 insertions(+) di

[Qemu-devel] [patch v5 07/12] pci: add a pci_function_is_valid callback to check function if valid

2016-03-23 Thread Cao jin
From: Chen Fan PCI hotplug requires that function 0 is added last to close the slot. Since vfio supporting AER, we require that the VM bus contains the same set of devices as the host bus to support AER, we can perform an AER validation test whenever a function 0 in the VM is hot-added. Signed-

[Qemu-devel] [patch v5 01/12] vfio: extract vfio_get_hot_reset_info as a single function

2016-03-23 Thread Cao jin
From: Chen Fan the function is used to get affected devices by bus reset. so here extract it, and can used for aer soon. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 66 +++ 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/h

[Qemu-devel] [patch v5 02/12] vfio: squeeze out vfio_pci_do_hot_reset for support bus reset

2016-03-23 Thread Cao jin
From: Chen Fan squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 75 +++ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c ind

[Qemu-devel] [patch v5 10/12] vfio-pci: pass the aer error to guest

2016-03-23 Thread Cao jin
From: Chen Fan when the vfio device encounters an uncorrectable error in host, the vfio_pci driver will signal the eventfd registered by this vfio device, resulting in the qemu eventfd handler getting invoked. this patch is to pass the error to guest and let the guest driver recover from the err

Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-23 Thread Daniel P. Berrange
On Sun, Mar 20, 2016 at 12:39:14PM +0100, Samuel Thibault wrote: > Make net=0.0.0.0 disable IPv4 and ip6-net=:: disable IPv6, so the user can > setup IPv4-only and IPv6-only network environments. I really don't like this kind of magic because it is totally invisible to the user unless they read th

[Qemu-devel] [patch v5 04/12] vfio: add aer support for vfio device

2016-03-23 Thread Cao jin
From: Chen Fan Calling pcie_aer_init to initilize aer related registers for vfio device, then reload physical related registers to expose device capability. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 85 --- hw/vfio/pci.h | 3 +++ 2 fil

[Qemu-devel] [patch v5 06/12] vfio: add check host bus reset is support or not

2016-03-23 Thread Cao jin
From: Chen Fan When assigning a vfio device with AER enabled, we must check whether the device supports a host bus reset (ie. hot reset) as this may be used by the guest OS in order to recover the device from an AER error. QEMU must therefore have the ability to perform a physical host bus reset

[Qemu-devel] [patch v5 05/12] vfio: refine function vfio_pci_host_match

2016-03-23 Thread Cao jin
From: Chen Fan Signed-off-by: Chen Fan --- hw/vfio/pci.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 0516d94..5b23a86 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2060,14 +2060,27 @@ static void vfio_pci_po

[Qemu-devel] [patch v5 08/12] vfio: add check aer functionality for hotplug device

2016-03-23 Thread Cao jin
From: Chen Fan when function 0 is hot-added, we can check the vfio device whether support hot bus reset. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 939b764..90447ac 100644 --- a/hw/vfio/pci.c

[Qemu-devel] [patch v5 11/12] vfio: device may stuck in D3 when doing aer recovery

2016-03-23 Thread Cao jin
From: Chen Fan when a physical device aer occurred, the device state probably is not in D0 in a short time, if we recover the device quickly. we may stuck in D3 state when force to change device state to D0. we may need to wait for a short time to inject the error to guest. Signed-off-by: Chen F

[Qemu-devel] [patch v5 12/12] vfio: add 'aer' property to expose aercap

2016-03-23 Thread Cao jin
From: Chen Fan add 'aer' property to let user able to decide whether expose the aer capability. by default we should disable aer feature, because it needs configuration restrictions. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vfio/pci.c b

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-23 Thread Dr. David Alan Gilbert
* Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > On 03/23/2016 05:41 PM, Dr. David Alan Gilbert wrote: > >* Wen Congyang (we...@cn.fujitsu.com) wrote: > >>On 03/23/2016 04:56 PM, Dr. David Alan Gilbert wrote: > >>>* Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > On 03/22/2016 08:22 PM,

[Qemu-devel] [PATCH for 2.6 0/3] ide: fix loss of the dma/atapi state during migration

2016-03-23 Thread Denis V. Lunev
This patch set fixes bugs in the IDE DMA and the IDE ATAPI on operations to save/restore the state. >From the user point of view this results in IDE timeouts in the guest when the user reads from the DVD like the following: [424332.169229] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6

[Qemu-devel] [PATCH 2/3] ide: restart atapi dma by re-evaluating command packet

2016-03-23 Thread Denis V. Lunev
From: Pavel Butsykin ide_atapi_dma_restart() used to just complete the DMA with an error, under the assumption that there isn't enough information to restart it. However, as the contents of the ->io_buffer is preserved, it looks safe to just re-evaluate it and dispatch the ATAPI command again.

[Qemu-devel] [PATCH 3/3] ide: really restart pending and in-flight atapi dma

2016-03-23 Thread Denis V. Lunev
From: Pavel Butsykin Restart of ATAPI DMA used to be unreachable, because the request to do so wasn't indicated in bus->error_status due to the lack of spare bits, and ide_restart_bh() would return early doing nothing. This patch makes use of the observation that not all bit combinations were po

[Qemu-devel] [PATCH 1/3] ide: don't loose pending dma state

2016-03-23 Thread Denis V. Lunev
From: Pavel Butsykin If the migration occurs after the IDE DMA has been set up but before it has been initiated, the state gets lost upon save/restore. Specifically, ->dma_cb callback gets cleared, so, when the guest eventually starts bus mastering, the DMA never completes, causing the guest to t

Re: [Qemu-devel] [PATCH v6 0/4] ARM: add query-gic-capabilities SMP command

2016-03-23 Thread Christoffer Dall
Hi Peter, Stupid question: The subject says "SMP command". Did you mean "QMP command" ? Thanks, -Christoffer On Wed, Mar 23, 2016 at 01:32:29PM +0800, Peter Xu wrote: > v6 changes: > - patch 1 (squashed into patch 2) > - explain more about the following in commit message: why we need > th

Re: [Qemu-devel] [PATCH v2 11/16] sheepdog: disable dataplane

2016-03-23 Thread Kevin Wolf
Am 16.03.2016 um 15:16 hat Paolo Bonzini geschrieben: > sheepdog has some calls to aio_poll that are hard to eliminate, for > example in sd_sheepdog_goto's call to do_req. Since I don't have > means to test sheepdog well, disable dataplane altogether for this > driver. > > Reviewed-by: Fam Zheng

Re: [Qemu-devel] [PATCH qemu v14 01/18] memory: Fix IOMMU replay base address

2016-03-23 Thread Paolo Bonzini
On 22/03/2016 04:26, David Gibson wrote: >> > >...it might be simpler to replace both the iommu and >> > >offset_within_address_space fields here with a pointer to the >> > >MemoryRegionSection instead, which should give you all the info you >> > >need. >> >> >> MemoryRegionSection is allocated

Re: [Qemu-devel] [PATCH v2 11/16] sheepdog: disable dataplane

2016-03-23 Thread Paolo Bonzini
On 23/03/2016 11:45, Kevin Wolf wrote: > I wouldn't feel comfortable about ignoring this second part, but maybe > we could get away with it if we have a plan how to fix it in the long > run. The new op blockers should be able to do that, but I guess it will > be well into the 2.7 development cycl

Re: [Qemu-devel] [PATCH v6 0/4] ARM: add query-gic-capabilities SMP command

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 11:32:06AM +0100, Christoffer Dall wrote: > Hi Peter, > > Stupid question: The subject says "SMP command". Did you mean "QMP > command" ? It's for sure a good question... My fault. It should be QMP. Thanks to point out. -- peterx

Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 10:33:09AM +0100, Markus Armbruster wrote: > Peter Xu writes: > > > On Tue, Mar 22, 2016 at 07:41:17PM +0100, Markus Armbruster wrote: > >> Markus Armbruster writes: > >> >> +## > >> >> +# @GICCapability: > >> >> +# > >> >> +# This struct describes capability for a specif

Re: [Qemu-devel] [PATCH 06/22] hbitmap: load/store

2016-03-23 Thread Vladimir Sementsov-Ogievskiy
On 23.03.2016 00:49, John Snow wrote: On 03/15/2016 04:04 PM, Vladimir Sementsov-Ogievskiy wrote: Add functions for load/store HBitmap to BDS, using clusters table: Last level of the bitmap is splitted into chunks of 'cluster_size' size. Each cell of the table contains offset in bds, to load/st

Re: [Qemu-devel] [PATCH v2 2/2] hw/pci-bridge: Convert pxb initialization functions to Error

2016-03-23 Thread Markus Armbruster
Cao jin writes: > On 03/23/2016 03:26 PM, Wei Jiangang wrote: > >> >> -static int pxb_dev_init_common(PCIDevice *dev, bool pcie) >> +static void pxb_dev_realize_common(PCIDevice *dev, bool pcie, Error **errp) >> { >> PXBDev *pxb = convert_to_pxb(dev); >> DeviceState *ds, *bds = NULL

Re: [Qemu-devel] [PATCH v2 0/2] Convert pxb initfn to Error

2016-03-23 Thread Markus Armbruster
Wei Jiangang writes: > v1 -> v2: > > - Extract a separate bugfix patch > - Squash v1 patches 1-3 together > - Drop the period and exclamation mark > - Modify commit message > > v1: cover-letter > > The original patch named '[PATCH v3] PXB: convert to realize()' > was raised by Cao jin , > and re

Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 10:44:04AM +0100, Markus Armbruster wrote: > Depends. > > The general rule is to keep separate things separate, and patches > self-contained. The narrow sense of self-contained is each patch > compiles and works. The wider sense is each patch makes sense to its > readers

Re: [Qemu-devel] [PATCH v3 2/2] hw/pci-bridge: Convert pxb initialization functions to Error

2016-03-23 Thread Markus Armbruster
Wei Jiangang writes: > Firstly, convert pxb_dev_init_common() to Error and rename > it to pxb_dev_realize_common(). > Actually, pxb_register_bus() is converted as well. > > And then, > convert pxb_dev_initfn() and pxb_pcie_dev_initfn() to Error, > rename them to pxb_dev_realize() and pxb_pcie_dev

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 10:52:29AM +0100, Markus Armbruster wrote: > The rule against returning non-dictionaries exists to avoid interfaces > that cannot evolve. With a dictionary, you can evolve by adding > members. > > The rule does *not* forbid returning lists of dictionaries. When a > comman

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-23 Thread Markus Armbruster
Paolo Bonzini writes: > On 23/03/2016 10:18, Markus Armbruster wrote: >>> In Kevin's idea there would be no ownership either way. Until then, I >>> think my patch actually gets us closer to the ideal. >> >> I'm afraid it gets us closer to where we used to be six years ago :) >> >> Qdev drive p

Re: [Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers

2016-03-23 Thread Prasanna Kalever
On Fri, Feb 5, 2016 at 6:47 PM, Prasanna Kumar Kalever wrote: > > On Thursday, February 4, 2016 6:52:15 PM Kevin Wolf Wrote: > > Am 12.11.2015 um 23:36 hat Eric Blake geschrieben: > > > On 11/12/2015 03:22 AM, Prasanna Kumar Kalever wrote: > > > > +static struct glfs *qemu_gluster_init(BlockdevOpt

Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Wed, Mar 23, 2016 at 10:33:09AM +0100, Markus Armbruster wrote: >> Peter Xu writes: >> >> > On Tue, Mar 22, 2016 at 07:41:17PM +0100, Markus Armbruster wrote: >> >> Markus Armbruster writes: >> >> >> +## >> >> >> +# @GICCapability: >> >> >> +# >> >> >> +# This struct desc

Re: [Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers

2016-03-23 Thread Prasanna Kalever
On Wed, Mar 23, 2016 at 5:46 PM, Prasanna Kalever wrote: > On Fri, Feb 5, 2016 at 6:47 PM, Prasanna Kumar Kalever > wrote: >> >> On Thursday, February 4, 2016 6:52:15 PM Kevin Wolf Wrote: >> > Am 12.11.2015 um 23:36 hat Eric Blake geschrieben: >> > > On 11/12/2015 03:22 AM, Prasanna Kumar Kalever

Re: [Qemu-devel] [Qemu-arm] [PATCH v6 2/4] arm: enhance kvm_arm_create_scratch_host_vcpu

2016-03-23 Thread Sergey Fedorov
On 23/03/16 08:32, Peter Xu wrote: > diff --git a/target-arm/kvm.c b/target-arm/kvm.c > index 969ab0b..0a7f9a6 100644 > --- a/target-arm/kvm.c > +++ b/target-arm/kvm.c > @@ -62,13 +62,17 @@ bool kvm_arm_create_scratch_host_vcpu(const uint32_t > *cpus_to_try, > goto err; > } > > +

Re: [Qemu-devel] [PATCH v6 3/4] kvm: add kvm_support_device() helper function

2016-03-23 Thread Sergey Fedorov
On 23/03/16 08:32, Peter Xu wrote: > diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h > index 6695fa7..8738fa1 100644 > --- a/include/sysemu/kvm.h > +++ b/include/sysemu/kvm.h > @@ -306,6 +306,15 @@ void kvm_device_access(int fd, int group, uint64_t attr, > */ > int kvm_create_device(KVM

  1   2   3   >