Re: [Qemu-devel] [PATCH alt 4/7] block/qcow2: Implement status CB for amend

2014-07-31 Thread Benoît Canet
The Saturday 26 Jul 2014 à 21:22:08 (+0200), Max Reitz wrote : The only really time-consuming operation potentially performed by qcow2_amend_options() is zero cluster expansion when downgrading qcow2 images from compat=1.1 to compat=0.10, so report status of that operation and that operation

Re: [Qemu-devel] [PATCH alt 1/7] block: Add status callback to bdrv_amend_options()

2014-07-31 Thread Benoît Canet
The Thursday 31 Jul 2014 à 09:51:05 (+0200), Benoît Canet wrote : The Saturday 26 Jul 2014 à 21:22:05 (+0200), Max Reitz wrote : Depending on the changed options and the image format, bdrv_amend_options() may take a significant amount of time. In these cases, a way to be informed about

Re: [Qemu-devel] [PATCH alt 5/7] block/qcow2: Make get_refcount() global

2014-07-31 Thread Benoît Canet
The Saturday 26 Jul 2014 à 21:22:09 (+0200), Max Reitz wrote : Reading the refcount of a cluster is an operation which can be useful in all of the qcow2 code, so make that function globally available. Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-refcount.c | 23

Re: [Qemu-devel] [PATCH alt 6/7] block/qcow2: Simplify shared L2 handling in amend

2014-07-31 Thread Benoît Canet
The Saturday 26 Jul 2014 à 21:22:10 (+0200), Max Reitz wrote : Currently, we have a bitmap for keeping track of which clusters have been created during the zero cluster expansion process. This was necessary because we need to properly increase the refcount for shared L2 tables. However,

Re: [Qemu-devel] [PATCH alt 7/7] iotests: Expand test 061

2014-07-31 Thread Benoît Canet
The Saturday 26 Jul 2014 à 21:22:11 (+0200), Max Reitz wrote : Add some tests for progress output to 061. Signed-off-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/061 | 27 +++ tests/qemu-iotests/061.out | 32

[Qemu-devel] [PATCH v1 03/24] monitor: Extract monitor-system.h header

2014-07-31 Thread Benoît Canet
This header will allow to split monitor in two parts. Signed-off-by: Benoit Canet ben...@irqsave.net --- include/monitor/monitor-system.h | 99 monitor.c| 57 ++- 2 files changed, 102 insertions(+), 54

[Qemu-devel] [PATCH v1 02/24] monitor: Make some function public

2014-07-31 Thread Benoît Canet
Next commits will split monitor.c in monitor.c and monitor-system.c. Change some function from static to public in order to prepare this. Signed-off-by: Benoit Canet ben...@irqsave.net --- include/monitor/monitor.h | 10 ++ monitor.c | 24 ++-- 2

[Qemu-devel] [PATCH v1 06/24] monitor: Extract qmp_human_monitor_command into monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 43 +++ monitor.c| 44 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/monitor-system.c b/monitor-system.c index

[Qemu-devel] [PATCH v1 22/24] qemu-nbd: build QAPI block core into qemu-nbd

2014-07-31 Thread Benoît Canet
Compile and link QAPI block core code into qemu-nbd. This patch circle around unwanted dependecies by stubing some functions in the stubs directory. Signed-off-by: Benoit Canet ben...@irqsave.net --- Makefile| 33 +++-- Makefile.objs

[Qemu-devel] [PATCH v1 04/24] monitor: Make monitor_fprintf public before extracting it

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- disas.c | 10 -- include/monitor/monitor.h | 2 ++ monitor.c | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/disas.c b/disas.c index 44a019a..b174f26 100644 --- a/disas.c +++

[Qemu-devel] [PATCH v1 16/24] monitor: Move more functions from monitor.c to monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 69 monitor.c| 69 2 files changed, 69 insertions(+), 69 deletions(-) diff --git a/monitor-system.c

[Qemu-devel] [PATCH v1 09/24] monitor: Make do_info_help public

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- include/monitor/monitor-system.h | 1 + monitor.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/monitor/monitor-system.h b/include/monitor/monitor-system.h index 6cbf2a4..76d87c7 100644 ---

[Qemu-devel] [PATCH v1 12/24] monitor: Make do_loadvm public before moving it to monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- include/monitor/monitor-system.h | 1 + monitor.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/monitor/monitor-system.h b/include/monitor/monitor-system.h index 2e98091..3bc7167 100644 ---

[Qemu-devel] [PATCH v1 17/24] monitor: Move two net functions from monitor.c to monitor-system.c

2014-07-31 Thread Benoît Canet
With this move the monitor.c/monitor-system.c split is complete. Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 49 + monitor.c| 49 - 2 files changed, 49 insertions(+),

[Qemu-devel] [PATCH v1 10/24] monitor: Extract do_info_help in monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 5 + monitor.c| 5 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/monitor-system.c b/monitor-system.c index 25a132a..f5fb15a 100644 --- a/monitor-system.c +++ b/monitor-system.c @@ -231,3

[Qemu-devel] [PATCH v1 08/24] monitor: Extract a couple of function to monitor-system.c

2014-07-31 Thread Benoît Canet
The extracted function are help_cmd, do_help_cmd, do_trace_event_set_state, and do_trace_file. Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 121 +++ monitor.c| 121

[Qemu-devel] [PATCH v1 01/24] qmp: Extract system emulation related code from qmp.c into qmp-system.c

2014-07-31 Thread Benoît Canet
This patch will allow to link qmp.o with utility binaries without dragging too much unrelated object files and externals dependencies. Signed-off-by: Benoit Canet ben...@irqsave.net --- Makefile.objs | 2 +- qmp-system.c | 376 ++ qmp.c

[Qemu-devel] [PATCH v1 24/24] qemu-nbd: Add --qmp option to qemu-nbd.

2014-07-31 Thread Benoît Canet
This patch add a -qmp parameter to the qemu-nbd command line in order to be able to manipulate the qemu-nbd block devices via qmp. This could be used with containers to easily migrate from qemu to a container. Signed-off-by: Benoit Canet ben...@irqsave.net --- Makefile.objs |

[Qemu-devel] [PATCH v1 00/24] Extract qmp.c and monitor.c core and wire QMP into qemu-nbd

2014-07-31 Thread Benoît Canet
Hi, Here are the follow up patches to the block QAPI extractions patches. After this patchset the qemu-nbd command has a -qmp parameters allowing the user to execute block related qmp commands. Best regards Benoît Benoît Canet (24): qmp: Extract system emulation related code from qmp.c

[Qemu-devel] [PATCH v1 14/24] monitor: Make commands public before moving them to monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index d2e56f8..560d5e4 100644 --- a/monitor.c +++ b/monitor.c @@ -173,10 +173,10 @@ static QLIST_HEAD(mon_list, Monitor) mon_list;

[Qemu-devel] [PATCH v1 15/24] monitor: Move mon_cmd_t arrays and some function from monitor.c to monitor-system.c

2014-07-31 Thread Benoît Canet
Also add sizeof variables for mon_cmd_t arrays for cross modules usage. Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 984 monitor.c| 1010 ++ 2 files

[Qemu-devel] [PATCH v1 21/24] monitor: Cleanup monitor.c includes after extracting monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor.c | 35 --- 1 file changed, 35 deletions(-) diff --git a/monitor.c b/monitor.c index 85484c3..bc7f3d3 100644 --- a/monitor.c +++ b/monitor.c @@ -22,64 +22,29 @@ * THE SOFTWARE. */ #include dirent.h

[Qemu-devel] [PATCH v1 05/24] monitor: Extract monitor_fprintf to monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- Makefile.target | 1 + disas.c | 10 ++ include/monitor/monitor-system.h | 3 ++ include/monitor/monitor.h| 2 -- monitor-system.c | 69

[Qemu-devel] [PATCH v1 11/24] monitor: Make some monitor functions public before moving them in monitor-system.c

2014-07-31 Thread Benoît Canet
This will allow monitor.c to access these functions once they are moved in monitor-system.c Signed-off-by: Benoit Canet ben...@irqsave.net --- include/monitor/monitor-system.h | 37 ++ monitor-system.c | 1163 ++ monitor.c

[Qemu-devel] [PATCH v1 23/24] qapi: Add a script to filter qmp-commands-old.h to generate a subset of it.

2014-07-31 Thread Benoît Canet
Since qmp-command-olds.h is generated from qmp-commands.hx we will sometime want to include only a subset of it. For example when linking qapi block commands with qemu-nbd. Signed-off-by: Benoit Canet ben...@irqsave.net --- Makefile | 7 +++

[Qemu-devel] [PATCH v1 20/24] monitor: Extract hardware dependent completion function from monitor.c to monitor-system.c

2014-07-31 Thread Benoît Canet
Signed-off-by: Benoit Canet ben...@irqsave.net --- monitor-system.c | 283 +++ monitor.c| 281 -- 2 files changed, 283 insertions(+), 281 deletions(-) diff --git a/monitor-system.c

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation is limited by the emulated hardware queue. Else request would pile up and throttling would be inefective. So

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 15:12:31 (-0600), Chris Friesen wrote : On 07/21/2014 01:47 PM, Benoît Canet wrote: The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-19 Thread Benoît Canet
The Saturday 19 Jul 2014 à 09:23:50 (+0200), Paolo Bonzini wrote : Il 19/07/2014 08:27, Chris Friesen ha scritto: Does it track in-flight operations though? Or just how many operations can be requested in a given amount of time? It should track in flight operations. However, I'm not sure

Re: [Qemu-devel] Current State of Block Filter

2014-07-15 Thread Benoît Canet
The Tuesday 15 Jul 2014 à 10:49:31 (-0400), Wolfgang Richter wrote : The way I see block filter currently implemented is as a special block device with `is_filter` set to true. Is this a correct characterization of the current incarnation? Yes, If so, I was wondering if it is possible

Re: [Qemu-devel] [PATCH] block/quorum: add simple read pattern support

2014-07-11 Thread Benoît Canet
The Friday 11 Jul 2014 à 11:01:22 (+0800), Liu Yuan wrote : This patch adds single read pattern to quorum driver and quorum vote is default pattern. For now we do a quorum vote on all the reads, it is designed for unreliable underlying storage such as non-redundant NFS to make sure data

[Qemu-devel] [PATCH v2] qemu-iotests: Disable Quorum testing in 041 when Quorum is not builtin

2014-07-01 Thread Benoît Canet
This avoid breaking tests on RHEL6 where gnutls is too old for quorum to be built by default. Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/041 | 41 +++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v2] qemu-iotests: Disable Quorum testing in 041 when Quorum is not builtin

2014-06-30 Thread Benoît Canet
The Monday 30 Jun 2014 à 16:09:57 (+0200), Stefan Hajnoczi wrote : On Fri, Jun 27, 2014 at 10:17:16PM +0200, Benoît Canet wrote: I think this patch can be boiled down to 2 lines: if __name__ == '__main__': +if 'quorum' not in iotests.qemu_img('--help'): +iotests.notrun

[Qemu-devel] [PATCH] qapi: Change back sector-count to sectors-count in quorum QAPI events.

2014-06-30 Thread Benoît Canet
fe069d9d had aligned code and documentation while dropping the s from the actual JSON output. Fix that. This also fix test/qemu-iotest/081 since the missing s was causing a permutation. Signed-off-by: Benoit Canet ben...@irqsave.net --- docs/qmp/qmp-events.txt | 26 +-

Re: [Qemu-devel] [PATCH v10 3/4] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 13:57:02 (+0200), Kevin Wolf wrote : Am 16.06.2014 um 12:00 hat Benoît Canet geschrieben: drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net

Re: [Qemu-devel] [PATCH v10 3/4] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 13:57:02 (+0200), Kevin Wolf wrote : Am 16.06.2014 um 12:00 hat Benoît Canet geschrieben: drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net

[Qemu-devel] [PATCH v1 1/2] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net --- block.c | 25 block/mirror.c| 60

[Qemu-devel] [PATCH v1 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-27 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robustness of the tests. Signed-off-by: Benoit Canet ben...@irqsave.net ---

[Qemu-devel] [PATCH v3] qapi: skip redundant includes

2014-06-27 Thread Benoît Canet
The purpose of this change is to help create a json file containing common definitions; each bit of generated C code must be emitted only one time. A second history global to all QAPISchema instances has been added to detect when a file is included more than one time and skip these includes. It

[Qemu-devel] [PATCH v3] Let the C generated bits of QAPI be generated only once when identical includes are done

2014-06-27 Thread Benoît Canet
in V3: change commit title [Eric] s/spitted/emitted/ change tests names [Eric] Benoît Canet (1): qapi: skip redundant includes scripts/qapi.py | 14 +++--- tests/Makefile| 3 ++- tests/qapi-schema

[Qemu-devel] [PATCH v1 0/2] Quorum arbitrary node replacement patches

2014-06-27 Thread Benoît Canet
uneeded line break [Kevin] remove uneeded empty line [Kevin] Failed to run 041 tests since they are broken before this series. Benoît Canet (2): block: Add replaces argument to drive-mirror qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode. block.c

Re: [Qemu-devel] [PATCH v10 3/4] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 15:37:00 (+0200), Kevin Wolf wrote : Am 27.06.2014 um 14:53 hat Benoît Canet geschrieben: The Friday 27 Jun 2014 à 13:57:02 (+0200), Kevin Wolf wrote : Am 16.06.2014 um 12:00 hat Benoît Canet geschrieben: drive-mirror will bdrv_swap the new BDS named node-name

[Qemu-devel] [PATCH v1 1/2] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net --- block.c | 25 block/mirror.c| 60

[Qemu-devel] [PATCH v1 0/2] Quorum arbitrary node replacement patches

2014-06-27 Thread Benoît Canet
uneeded line break [Kevin] remove uneeded empty line [Kevin] Failed to run 041 tests since they are broken before this series. Benoît Canet (2): block: Add replaces argument to drive-mirror qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode. block.c

[Qemu-devel] [PATCH v1 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-27 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robustness of the tests. Signed-off-by: Benoit Canet ben...@irqsave.net ---

Re: [Qemu-devel] [PATCH v3] Let the C generated bits of QAPI be generated only once when identical includes are done

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 15:41:50 (+0200), Benoît Canet wrote : in V3: change commit title [Eric] s/spitted/emitted/ change tests names [Eric] Benoît Canet (1): qapi: skip redundant includes scripts/qapi.py | 14

Re: [Qemu-devel] [PATCH v3] qapi: skip redundant includes

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 17:14:33 (+0200), Markus Armbruster wrote : Benoît Canet benoit.ca...@irqsave.net writes: The purpose of this change is to help create a json file containing common definitions; each bit of generated C code must be emitted only one time. A second history

Re: [Qemu-devel] [PATCH 2.1 0/2] Fix two recent event regressions

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 15:47:20 (+0200), Markus Armbruster wrote : This series plus Paolo's [PATCH for 2.1] qdev: correctly send DEVICE_DELETED for recursively-deleted devices makes qemu-iotests check -qcow2 again pass for me. Luiz offered to take it through his tree. Markus Armbruster

[Qemu-devel] [PATCH V2 for 2.1 1/2] block: Add replaces argument to drive-mirror

2014-06-27 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net --- block.c | 25 block/mirror.c| 60

[Qemu-devel] [PATCH V2 for 2.1 2/2] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-27 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robustness of the tests. Signed-off-by: Benoit Canet ben...@irqsave.net ---

[Qemu-devel] [PATCH V2 for 2.1 0/2] Quorum arbitrary node replacement patches

2014-06-27 Thread Benoît Canet
corruption by the user [Kevin, Benoît] Propagate error returned by check_to_replace_node [Kevin ] Remove uneeded line break [Kevin] remove uneeded empty line [Kevin] Benoît Canet (2): block: Add replaces argument to drive-mirror qemu-iotests: Add TestRepairQuorum to 041

Re: [Qemu-devel] [PATCH V2 for 2.1 0/2] Quorum arbitrary node replacement patches

2014-06-27 Thread Benoît Canet
The Friday 27 Jun 2014 à 20:37:34 (+0200), Kevin Wolf wrote : Am 27.06.2014 um 18:25 hat Benoît Canet geschrieben: in v2: Fixed 041.out [Benoît] Tested 041 on top of markus [PATCH 2.1 0/2] Fix two recent event regressions in v1: no blank line before EOF

[Qemu-devel] [PATCH] qemu-iotests: Disable Quorum testing in 041 when Quorum is not builtin

2014-06-27 Thread Benoît Canet
This avoid breaking tests on RHEL6 where gnutls is too old for quorum to be built by default. Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/041 | 13 + 1 file changed, 13 insertions(+) diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index

[Qemu-devel] [PATCH v2] qemu-iotests: Disable Quorum testing in 041 when Quorum is not builtin

2014-06-27 Thread Benoît Canet
This avoid breaking tests on RHEL6 where gnutls is too old for quorum to be built by default. Signed-off-by: Benoit Canet ben...@irqsave.net --- tests/qemu-iotests/041 | 49 +++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v6 for 2.1 00/10] Modify block jobs to use node-names

2014-06-24 Thread Benoît Canet
The Tuesday 24 Jun 2014 à 16:08:57 (+0200), Kevin Wolf wrote : Am 24.06.2014 um 15:32 hat Jeff Cody geschrieben: On Tue, Jun 24, 2014 at 10:48:52AM +0800, Fam Zheng wrote: On Mon, 06/23 21:08, Stefan Hajnoczi wrote: On Thu, Jun 19, 2014 at 12:26:00PM -0400, Jeff Cody wrote: On Thu,

Re: [Qemu-devel] [PATCH v6 for 2.1 02/10] block: add helper function to determine if a BDS is in a chain

2014-06-23 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 17:53:50 (-0400), Jeff Cody wrote : This is a small helper function, to determine if 'base' is in the chain of BlockDriverState 'top'. It returns true if it is in the chain, and false otherwise. If either argument is NULL, it will also return false. Reviewed-by:

Re: [Qemu-devel] [PATCH v6 for 2.1 00/10] Modify block jobs to use node-names

2014-06-23 Thread Benoît Canet
The Monday 23 Jun 2014 à 21:08:09 (+0800), Stefan Hajnoczi wrote : On Thu, Jun 19, 2014 at 12:26:00PM -0400, Jeff Cody wrote: On Thu, Jun 19, 2014 at 05:17:16PM +0800, Stefan Hajnoczi wrote: On Tue, Jun 17, 2014 at 05:53:48PM -0400, Jeff Cody wrote: Let's discuss this topic in a

Re: [Qemu-devel] [PATCH 1/9] block: Create bdrv_fill_options()

2014-06-23 Thread Benoît Canet
The Monday 23 Jun 2014 à 17:30:45 (+0200), Kevin Wolf wrote : Am 12.06.2014 um 14:08 hat Benoît Canet geschrieben: The Wednesday 11 Jun 2014 à 16:04:55 (+0200), Kevin Wolf wrote : The idea of bdrv_fill_options() is to convert every parameter for opening images, in particular the filename

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-22 Thread Benoît Canet
The Monday 23 Jun 2014 à 12:32:30 (+0800), Fam Zheng wrote : On Sat, 06/21 17:40, Benoît Canet wrote: The Saturday 21 Jun 2014 à 17:39:11 (+0200), Benoît Canet wrote : We still have the issue of unlocking the bottom BDS when a subtree is detached from the graphs by a swap. (It does

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-21 Thread Benoît Canet
The Saturday 21 Jun 2014 à 16:53:58 (+0800), Fam Zheng wrote : On Fri, 06/20 09:30, Eric Blake wrote: On 06/19/2014 11:01 PM, Fam Zheng wrote: On Thu, 06/19 22:20, Benoît Canet wrote: The Thursday 19 Jun 2014 à 14:13:20 (-0600), Eric Blake wrote : On 06/19/2014 02:01 PM, Benoît Canet

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-21 Thread Benoît Canet
The Saturday 21 Jun 2014 à 23:15:19 (+0800), Fam Zheng wrote : On Sat, 06/21 12:45, Benoît Canet wrote: The Saturday 21 Jun 2014 à 16:53:58 (+0800), Fam Zheng wrote : On Fri, 06/20 09:30, Eric Blake wrote: On 06/19/2014 11:01 PM, Fam Zheng wrote: On Thu, 06/19 22:20, Benoît Canet

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-21 Thread Benoît Canet
The Saturday 21 Jun 2014 à 17:39:11 (+0200), Benoît Canet wrote : The Saturday 21 Jun 2014 à 23:15:19 (+0800), Fam Zheng wrote : On Sat, 06/21 12:45, Benoît Canet wrote: The Saturday 21 Jun 2014 à 16:53:58 (+0800), Fam Zheng wrote : On Fri, 06/20 09:30, Eric Blake wrote: On 06/19

Re: [Qemu-devel] [PATCH v6 for 2.1 00/10] Modify block jobs to use node-names

2014-06-19 Thread Benoît Canet
The Thursday 19 Jun 2014 à 17:17:16 (+0800), Stefan Hajnoczi wrote : On Tue, Jun 17, 2014 at 05:53:48PM -0400, Jeff Cody wrote: Changes from v5-v6: * Check for attempt to commit an image to itself (Eric) * Add a comment to the bdrv_find for block-commit, indicating that libvirt uses

[Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Benoît Canet
As the code will start to operate on arbitratry nodes we need the op blocker to recursively block or unblock whole BDS subtrees. Also add a function to reset all blocker from a BDS. This patch also take care of changing blocker user so they are not broken. Signed-off-by: Benoit Canet

[Qemu-devel] [PATCH] Recursive blocker

2014-06-19 Thread Benoît Canet
Hi, Here is my try at making blockers recursives. It's far from perfect as it break test 040. Any suggestion to fix the broken test case would be welcome. Best regards Benoît Benoît Canet (1): block: Make op blocker recursive block.c | 87

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Benoît Canet
The Thursday 19 Jun 2014 à 14:13:20 (-0600), Eric Blake wrote : On 06/19/2014 02:01 PM, Benoît Canet wrote: As the code will start to operate on arbitratry nodes we need the op blocker s/arbitratry/arbitrary/ to recursively block or unblock whole BDS subtrees. Also add a function

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Benoît Canet
The Thursday 19 Jun 2014 à 14:26:04 (-0600), Eric Blake wrote : On 06/19/2014 02:20 PM, Benoît Canet wrote: This unconditionally removes all blockers of type op of the subtree Yikes - is that really what we want? Or do we need to start doing blocker reference counting? Consider

Re: [Qemu-devel] [PATCH v6 for 2.1 01/10] block: Auto-generate node_names for each BDS entry

2014-06-18 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 17:53:49 (-0400), Jeff Cody wrote : Currently, node_name is only filled in when done so explicitly by the user. If no node_name is specified, then the node name field is not populated. If node_names are automatically generated when not specified, that means that

Re: [Qemu-devel] [PATCH v6 for 2.1 05/10] block: Accept node-name arguments for block-commit

2014-06-18 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 17:53:53 (-0400), Jeff Cody wrote : This modifies the block operation block-commit so that it will accept node-name arguments for either 'top' or 'base' BDS. The filename and node-name are mutually exclusive to each other; i.e.: top and top-node-name are

Re: [Qemu-devel] [PATCH v6 for 2.1 07/10] block: add ability for block-stream to use node-name

2014-06-18 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 17:53:55 (-0400), Jeff Cody wrote : This adds the ability for block-stream to use node-name arguments for base, to specify the backing image to stream from. Both 'base' and 'base-node-name' are optional, but mutually exclusive. Either can be specified, but not both

Re: [Qemu-devel] [PATCH v6 for 2.1 10/10] block: add QAPI command to allow live backing file change

2014-06-18 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 17:53:58 (-0400), Jeff Cody wrote : This allows a user to make a live change to the backing file recorded in an open image. The image file to modify can be specified 2 ways: 1) image filename 2) image node-name Note: this does not cause the backing file itself

Re: [Qemu-devel] [PATCH v6 for 2.1 01/10] block: Auto-generate node_names for each BDS entry

2014-06-18 Thread Benoît Canet
The Wednesday 18 Jun 2014 à 09:13:28 (-0400), Jeff Cody wrote : On Wed, Jun 18, 2014 at 02:53:15PM +0200, Benoît Canet wrote: The Tuesday 17 Jun 2014 à 17:53:49 (-0400), Jeff Cody wrote : Currently, node_name is only filled in when done so explicitly by the user. If no node_name

Re: [Qemu-devel] [PATCH 1/2] block: Do not prematurely remove filename

2014-06-18 Thread Benoît Canet
The Wednesday 18 Jun 2014 à 00:14:09 (+0200), Max Reitz wrote : If filename is removed from the options QDict before entering bdrv_open_common(), it cannot be stored in the BDS. Therefore, wait until it has been copied there and remove it from the options only afterwards. This fixes

Re: [Qemu-devel] [PATCH 2/2] iotests: Add test for set filename for NBD

2014-06-18 Thread Benoît Canet
The Wednesday 18 Jun 2014 à 00:14:10 (+0200), Max Reitz wrote : Add a new test for qemu-iotests which checks whether the filename (and consequently the file) attribute is set for images which are opened over NBD. Signed-off-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/097 |

Re: [Qemu-devel] [PATCH v10 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-17 Thread Benoît Canet
The Tuesday 17 Jun 2014 à 18:17:46 (+0200), Max Reitz wrote : On 16.06.2014 12:00, Benoît Canet wrote: The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work

Re: [Qemu-devel] [PATCH v9 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-16 Thread Benoît Canet
The Saturday 14 Jun 2014 à 02:44:29 (+0200), Max Reitz wrote : On 11.06.2014 15:24, Benoît Canet wrote: The to-replace-node-name is designed to allow repairing of broken Quorum file. a broken Quorum file or broken Quorum files. This patch introduce a new class TestRepairQuorum testing

[Qemu-devel] [PATCH v10 0/4] Quorum maintainance operations

2014-06-16 Thread Benoît Canet
in v10: address max comments Benoît Canet (4): quorum: Add the rewrite-corrupted parameter to quorum block: Add node-name argument to drive-mirror block: Add replaces argument to drive-mirror qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode

[Qemu-devel] [PATCH v10 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-16 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing a broken Quorum file. This patch introduces a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robustness of the tests. Signed-off-by: Benoit Canet ben...@irqsave.net ---

[Qemu-devel] [PATCH v10 2/4] block: Add node-name argument to drive-mirror

2014-06-16 Thread Benoît Canet
This new argument can be used to specify the node-name of the new mirrored BDS. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- blockdev.c | 11 +-- hmp.c| 1 + qapi/block-core.json | 4 qmp-commands.hx |

[Qemu-devel] [PATCH v10 3/4] block: Add replaces argument to drive-mirror

2014-06-16 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net Reviewed-by: Max Reitz mre...@redhat.com --- block.c | 17 ++ block/mirror.c| 60

[Qemu-devel] [PATCH v10 1/4] quorum: Add the rewrite-corrupted parameter to quorum

2014-06-16 Thread Benoît Canet
On read operations when this parameter is set and some replicas are corrupted while quorum can be reached quorum will proceed to rewrite the correct version of the data to fix the corrupted replicas. This will shine with SSD where the FTL will remap the same block at another place on rewrite.

Re: [Qemu-devel] [PATCH v5 01/10] block: Auto-generate node_names for each BDS entry

2014-06-16 Thread Benoît Canet
The Friday 13 Jun 2014 à 14:52:29 (-0400), Jeff Cody wrote : Currently, node_name is only filled in when done so explicitly by the user. If no node_name is specified, then the node name field is not populated. If node_names are automatically generated when not specified, that means that

Re: [Qemu-devel] [PATCH v5 03/10] block: simplify bdrv_find_base() and bdrv_find_overlay()

2014-06-16 Thread Benoît Canet
The Friday 13 Jun 2014 à 14:52:31 (-0400), Jeff Cody wrote : This simplifies the function bdrv_find_overlay(). With this change, bdrv_find_base() is just a subset of usage of bdrv_find_overlay(), so this also takes advantage of that. Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by:

Re: [Qemu-devel] [PATCH v5 09/10] block: Add QMP documentation for block-stream

2014-06-16 Thread Benoît Canet
The Friday 13 Jun 2014 à 14:52:37 (-0400), Jeff Cody wrote : The QMP command 'block-stream' was missing QMP documentation. Add that documentation. Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Jeff Cody jc...@redhat.com --- qmp-commands.hx | 58

Re: [Qemu-devel] Block layer meeting notes from June 10/11

2014-06-13 Thread Benoît Canet
The Friday 13 Jun 2014 à 09:53:55 (-0400), Jeff Cody wrote : On Fri, Jun 13, 2014 at 09:28:28PM +0800, Stefan Hajnoczi wrote: snip * Mutual exclusion of operations/background jobs (bs-in_use / BlockOpType) * Streaming in two different parts of the backing chain - allowed? (Benoît

Re: [Qemu-devel] Block layer meeting notes from June 10/11

2014-06-13 Thread Benoît Canet
The Friday 13 Jun 2014 à 16:17:34 (+0200), Benoît Canet wrote : The Friday 13 Jun 2014 à 09:53:55 (-0400), Jeff Cody wrote : On Fri, Jun 13, 2014 at 09:28:28PM +0800, Stefan Hajnoczi wrote: snip * Mutual exclusion of operations/background jobs (bs-in_use / BlockOpType

Re: [Qemu-devel] [PATCH 1/9] block: Create bdrv_fill_options()

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:04:55 (+0200), Kevin Wolf wrote : The idea of bdrv_fill_options() is to convert every parameter for opening images, in particular the filename and flags, to entries in the options QDict. This patch starts with moving the filename parsing and driver probing

Re: [Qemu-devel] [PATCH 2/9] block: Move bdrv_fill_options() call to bdrv_open()

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:04:56 (+0200), Kevin Wolf wrote : bs-options now contains the modified version of the options. Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/block.c

Re: [Qemu-devel] [PATCH 3/9] block: Move json: parsing to bdrv_fill_options()

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:04:57 (+0200), Kevin Wolf wrote : Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 88 + 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/block.c b/block.c index

Re: [Qemu-devel] [PATCH 4/9] block: Always pass driver name through options QDict

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:04:58 (+0200), Kevin Wolf wrote : The driver entry in the options QDict is now only missing if we're opening an image with format probing. We also catch cases now where both the drv argument and a driver option is specified, e.g. by specifying -drive

Re: [Qemu-devel] [PATCH 5/9] block: Use common driver selection code for bdrv_open_file()

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:04:59 (+0200), Kevin Wolf wrote : This moves the bdrv_open_file() call a bit down so that it can use the bdrv_open() code that selects the right block driver. The code between the old and the new call site is either common code (the error message for an unknown

Re: [Qemu-devel] [PATCH 6/9] block: Inline bdrv_file_open()

2014-06-12 Thread Benoît Canet
The Wednesday 11 Jun 2014 à 16:05:00 (+0200), Kevin Wolf wrote : It doesn't do much any more, we can move the code to bdrv_open() now. Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 51 +++ 1 file changed, 11 insertions(+), 40

Re: [Qemu-devel] [PATCH] virtio.c: fix error message

2014-06-11 Thread Benoît Canet
The Tuesday 10 Jun 2014 à 19:58:44 (+0400), Michael Tokarev wrote : Suggested-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Michael Tokarev m...@tls.msk.ru --- hw/virtio/virtio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio.c

[Qemu-devel] [PATCH v9 4/4] qemu-iotests: Add TestRepairQuorum to 041 to test drive-mirror node-name mode.

2014-06-11 Thread Benoît Canet
The to-replace-node-name is designed to allow repairing of broken Quorum file. This patch introduce a new class TestRepairQuorum testing that the feature works. Some further work will be done on QEMU to improve the robutness of the tests. Signed-off-by: Benoit Canet ben...@irqsave.net ---

[Qemu-devel] [PATCH v9 1/4] quorum: Add the rewrite-corrupted parameter to quorum

2014-06-11 Thread Benoît Canet
On read operations when this parameter is set and some replicas are corrupted while quorum can be reached quorum will proceed to rewrite the correct version of the data to fix the corrupted replicas. This will shine with SSD where the FTL will remap the same block at another place on rewrite.

[Qemu-devel] [PATCH v9 0/4] Quorum maintainance operations

2014-06-11 Thread Benoît Canet
in V9: fix leak [Stefan] fix error message [Stefan] relax constraint [Stefan] Benoît Canet (4): quorum: Add the rewrite-corrupted parameter to quorum block: Add node-name argument to drive-mirror block: Add replaces argument to drive-mirror qemu-iotests: Add

[Qemu-devel] [PATCH v9 3/4] block: Add replaces argument to drive-mirror

2014-06-11 Thread Benoît Canet
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet ben...@irqsave.net --- block.c | 17 ++ block/mirror.c| 60

<    1   2   3   4   5   6   7   8   9   10   >