Re: [Qemu-block] [Qemu-devel] [PATCH] block: use drained section around bdrv_snapshot_delete

2015-12-18 Thread Kevin Wolf
[ Cc: qemu-block ] Am 17.12.2015 um 02:55 hat Fam Zheng geschrieben: > On Wed, 12/16 19:33, Paolo Bonzini wrote: > > Do not use bdrv_drain, since by itself it does not guarantee > > anything. > > > > Signed-off-by: Paolo Bonzini Thanks, applied to the block branch. Kevin

[Qemu-block] Minutes from the "Stuttgart block Gipfele"

2015-12-18 Thread Markus Armbruster
Kevin, Max and I used an opportunity to meet and discuss block layer matters. We examined two topics in some depth: BlockBackend, and block filters and dynamic reconfiguration. Not nearly enough people to call it a block summit. But the local dialect is known for its use of diminutives, and

[Qemu-block] [PULL 19/48] block: reopen: Extract QemuOpts for generic block layer options

2015-12-18 Thread Kevin Wolf
This patch adds a QemuOpts for generic block layer options to bdrv_reopen_prepare(). The only two options that currently exist (node-name and driver) cannot be changed, so the only thing we do is putting them right back into the QDict so that we check at the end that they are indeed unchanged. We

[Qemu-block] [PULL 02/48] iotests: 124: move incremental failure test

2015-12-18 Thread Kevin Wolf
From: John Snow Code motion only, in preparation for adjusting the setUp procedure for this test. Signed-off-by: John Snow Signed-off-by: Kevin Wolf --- tests/qemu-iotests/124 | 117 + 1

[Qemu-block] [PULL 44/48] block/qapi: do not redundantly print "actual path"

2015-12-18 Thread Kevin Wolf
From: John Snow If it happens to match the backing path, that was the actual path. Signed-off-by: John Snow Reviewed-by: Max Reitz Message-id: 1450122916-4706-2-git-send-email-js...@redhat.com Signed-off-by: Max Reitz

[Qemu-block] [PULL 01/48] iotests: 124: Split into two test classes

2015-12-18 Thread Kevin Wolf
From: John Snow Split it into an abstract test class and an implementation class. The split is primarily to facilitate more flexible setUp variations for other kinds of tests without having to rewrite or shuffle around all of these helpers. See the following two patches for

[Qemu-block] [PULL 00/48] Block patches

2015-12-18 Thread Kevin Wolf
The following changes since commit 67a708406221f476c0f8fa60c192c186150c5185: Merge remote-tracking branch 'remotes/berrange/tags/pull-io-channel-base-2015-12-18-1' into staging (2015-12-18 12:42:10 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git

Re: [Qemu-block] [Qemu-devel] [PATCH v3 04/11] fdc: add default drive type option

2015-12-18 Thread Markus Armbruster
John Snow writes: > This patch adds a new explicit Floppy Drive Type option. The existing > behavior in QEMU is to automatically guess a drive type based on the > media inserted, or if a diskette is not present, arbitrarily assign one. > > This behavior can be described as

[Qemu-block] [PULL 45/48] block/qapi: always report full_backing_filename

2015-12-18 Thread Kevin Wolf
From: John Snow Always report full_backing_filename, even if it's the same as backing_filename. In the next patch, full_backing_filename may be omitted if it cannot be generated instead of allowing e.g. drive_query to abort if it runs into this scenario. The presence or

[Qemu-block] [PULL 43/48] qemu-iotests: s390x: fix test 068

2015-12-18 Thread Kevin Wolf
From: Bo Tu Now, s390-virtio-ccw is default machine and s390-ccw.img is default boot loader. If the s390-virtio-ccw machine finds no device to load from and errors out, then emits a panic and exits the vm. This breaks test cases 068 for s390x. Adding the parameter of

Re: [Qemu-block] [Qemu-devel] [PATCH v3 06/11] fdc: do not call revalidate on eject

2015-12-18 Thread Markus Armbruster
John Snow writes: > Currently, fd_revalidate is called in two different places, with two > different expectations of behavior: > > (1) On initialization, as a routine to help pick the drive type and > initial geometries as a side-effect of the pick_geometry routine > > (2)

Re: [Qemu-block] [Qemu-devel] [PATCH v3 05/11] fdc: Add fallback option

2015-12-18 Thread Markus Armbruster
John Snow writes: > Add the fallback drive type as an option so we can control > the behavior as a function of the QEMU machine version. What's a "fallback drive type", and what does (or will) it do? > > Signed-off-by: John Snow > --- > hw/block/fdc.c | 23

[Qemu-block] [PULL 23/48] qemu-iotests: Test cache mode option inheritance

2015-12-18 Thread Kevin Wolf
This is doing a more complete test on setting cache modes both while opening an image (i.e. in a -drive command line) and in reopen situations. It checks that reopen can specify options for child nodes and that cache modes are correctly inherited from parent nodes where they are not specified.

[Qemu-block] [PULL 41/48] qemu-iotests: refine common.config

2015-12-18 Thread Kevin Wolf
From: Bo Tu Replacing awk with sed, then it's easier to read. Replacing "[ ! -z "$default_alias_machine" ]" with "[[ $default_alias_machine ]]", then it's slightly shorter. Reviewed-by: Max Reitz Suggested-By: Sascha Silbe

[Qemu-block] [PULL 33/48] qcow2: Point to amend function in check

2015-12-18 Thread Kevin Wolf
From: Max Reitz If a reference count is not representable with the current refcount order, the image check should point to qemu-img amend for increasing the refcount order. However, qemu-img amend needs write access to the image which cannot be provided if the image is marked

[Qemu-block] [PULL 06/48] mirror: Error out when a BDS would get two BBs

2015-12-18 Thread Kevin Wolf
bdrv_replace_in_backing_chain() asserts that not both old and new BlockDdriverState have a BlockBackend attached to them because both would have to end up pointing to the new BDS and we don't support more than one BB per BDS yet. Before we can safely allow references to existing nodes as backing

[Qemu-block] [PULL 04/48] qcow2: Add .bdrv_join_options callback

2015-12-18 Thread Kevin Wolf
qcow2 accepts a few driver-specific options that overlap semantically (e.g. "overlap-check" is an alias of "overlap-check.template", and any missing cache size option is derived from the given ones). When bdrv_reopen() merges the set of updated options with left out options that should be kept at

[Qemu-block] [PULL 28/48] qcow2: Use abort() instead of assert(false)

2015-12-18 Thread Kevin Wolf
From: Max Reitz Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Signed-off-by: Kevin Wolf --- block/qcow2.c | 4 ++--

[Qemu-block] [PULL 30/48] qcow2: Use intermediate helper CB for amend

2015-12-18 Thread Kevin Wolf
From: Max Reitz If there is more than one time-consuming operation to be performed for qcow2_amend_options(), we need an intermediate CB which coordinates the progress of the individual operations and passes the result to the original status callback. Signed-off-by: Max Reitz

Re: [Qemu-block] [Qemu-devel] [PULL 00/48] Block patches

2015-12-18 Thread Peter Maydell
On 18 December 2015 at 15:07, Kevin Wolf wrote: > The following changes since commit 67a708406221f476c0f8fa60c192c186150c5185: > > Merge remote-tracking branch > 'remotes/berrange/tags/pull-io-channel-base-2015-12-18-1' into staging > (2015-12-18 12:42:10 +) > > are

[Qemu-block] [PULL 12/48] block: Allow specifying child options in reopen

2015-12-18 Thread Kevin Wolf
If the child was defined in the same context (-drive argument or blockdev-add QMP command) as its parent, a reopen of the parent should work the same and allow changing options of the child. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by:

[Qemu-block] [PULL 07/48] block: Allow references for backing files

2015-12-18 Thread Kevin Wolf
For bs->file, using references to existing BDSes has been possible for a while already. This patch enables the same for bs->backing. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block.c | 48

[Qemu-block] [PULL 34/48] iotests: Extend test 112 for qemu-img amend

2015-12-18 Thread Kevin Wolf
From: Max Reitz Add tests for conversion between different refcount widths. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- tests/qemu-iotests/112 | 109

[Qemu-block] [PULL 22/48] qemu-iotests: Try setting cache mode for children

2015-12-18 Thread Kevin Wolf
This is a basic test for specifying cache modes for child nodes on the command line. It doesn't take much time and works without O_DIRECT support. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- tests/qemu-iotests/051 | 10 +++-

[Qemu-block] [PULL 38/48] iotests: Update comments for bdrv_swap() in 094

2015-12-18 Thread Kevin Wolf
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- tests/qemu-iotests/094 | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/094 b/tests/qemu-iotests/094 index 27a2be2..57a68f8

[Qemu-block] [PATCH 0/2] block/vhdx: Small cleanups

2015-12-18 Thread Max Reitz
Just some bits I discovered while going through the Coverity report. (The issue reported by Coverity actually was not an issue.) Max Reitz (2): vhdx: DIV_ROUND_UP() in vhdx_calc_bat_entries() vhdx: Simplify vhdx_set_shift_bits() block/vhdx.c | 18 ++ 1 file changed, 6

[Qemu-block] [PULL 16/48] block: Introduce bs->explicit_options

2015-12-18 Thread Kevin Wolf
bs->options doesn't only contain options that the user explicitly requested, but also option that were derived from flags, the filename or inherited from the parent node. For reopen, it is important to know the difference because reopening the parent can change inherited values in child nodes,

[Qemu-block] [PATCH 1/2] vhdx: DIV_ROUND_UP() in vhdx_calc_bat_entries()

2015-12-18 Thread Max Reitz
We have DIV_ROUND_UP(), so we can use it to produce more easily readable code. It may be slower than the bit shifting currently performed (because it actually performs a division), but since vhdx_calc_bat_entries() is never used in a hot path, this is completely fine. Signed-off-by: Max Reitz

[Qemu-block] [PULL 26/48] block: Add opaque value to the amend CB

2015-12-18 Thread Kevin Wolf
From: Max Reitz Add an opaque value which is to be passed to the bdrv_amend_options() status callback. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia

Re: [Qemu-block] [Qemu-devel] [PATCH v3 04/11] fdc: add default drive type option

2015-12-18 Thread John Snow
On 12/18/2015 10:54 AM, Markus Armbruster wrote: > John Snow writes: > >> This patch adds a new explicit Floppy Drive Type option. The existing >> behavior in QEMU is to automatically guess a drive type based on the >> media inserted, or if a diskette is not present,

Re: [Qemu-block] [PATCH 10/10] iotests: 095: Use TEST_IMG override instead of "mv"

2015-12-18 Thread Max Reitz
On 16.12.2015 10:54, Fam Zheng wrote: > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/095 | 12 ++-- > tests/qemu-iotests/095.out | 8 > 2 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/tests/qemu-iotests/095

[Qemu-block] [PULL 25/48] progress: Allow regressing progress

2015-12-18 Thread Kevin Wolf
From: Max Reitz Progress may regress; this should be displayed correctly by qemu_progress_print(). While touching that area of code, drop the redundant parentheses in the same condition. Signed-off-by: Max Reitz Reviewed-by: Eric Blake

[Qemu-block] [PULL 42/48] qemu-iotests: s390x: fix test 051

2015-12-18 Thread Kevin Wolf
From: Bo Tu The tests for ide device should only be tested for the pc platform. Set device_id to "drive0", and replace every "-drive file..." by "-drive file=...,if=none,id=$device_id", then x86 and s390x can get the common output in the test of "Snapshot mode". Warning

Re: [Qemu-block] [PATCH v6 1/2] mirror: Rewrite mirror_iteration

2015-12-18 Thread Max Reitz
On 20.11.2015 11:12, Fam Zheng wrote: > The "pnum < nb_sectors" condition in deciding whether to actually copy > data is unnecessarily strict, and the qiov initialization is > unnecessarily for bdrv_aio_write_zeroes and bdrv_aio_discard. > > Rewrite mirror_iteration to fix both flaws. > >

[Qemu-block] [PULL 14/48] block: Add infrastructure for option inheritance

2015-12-18 Thread Kevin Wolf
Options are not actually inherited from the parent node yet, but this commit lays the grounds for doing so. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block.c | 52 ---

[Qemu-block] [PULL 37/48] block: Remove prototype of bdrv_swap from header

2015-12-18 Thread Kevin Wolf
From: Fam Zheng The function has gone. Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- include/block/block.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/block/block.h b/include/block/block.h index bce0d86..db8e096

Re: [Qemu-block] [Qemu-devel] [PATCH v3 05/11] fdc: Add fallback option

2015-12-18 Thread John Snow
On 12/18/2015 10:57 AM, Markus Armbruster wrote: > John Snow writes: > >> Add the fallback drive type as an option so we can control >> the behavior as a function of the QEMU machine version. > > What's a "fallback drive type", and what does (or will) it do? > I assume you

[Qemu-block] [PULL 48/48] block/qapi: allow best-effort query

2015-12-18 Thread Kevin Wolf
From: John Snow For more complex BDS trees that can be created under normal circumstances, we lose the ability to issue query commands because of our inability to re-construct the absolute filename. Instead, omit this field when it is a problem and present as much information

[Qemu-block] [PULL 27/48] qcow2: Use error_report() in qcow2_amend_options()

2015-12-18 Thread Kevin Wolf
From: Max Reitz Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Alberto Garcia Signed-off-by: Kevin Wolf --- block/qcow2.c

Re: [Qemu-block] [PATCH v6 2/2] mirror: Add mirror_wait_for_io

2015-12-18 Thread Max Reitz
On 20.11.2015 11:12, Fam Zheng wrote: > The three lines are duplicated a number of times now, refactor a > function. > > Signed-off-by: Fam Zheng > --- > block/mirror.c | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Max Reitz

[Qemu-block] [PULL 46/48] block/qapi: explicitly warn if !has_full_backing_filename

2015-12-18 Thread Kevin Wolf
From: John Snow Disambiguate "Backing filename and full backing filename are equivalent" from "full backing filename could not be determined." Signed-off-by: John Snow Message-id: 1450122916-4706-4-git-send-email-js...@redhat.com Reviewed-by: Max Reitz

[Qemu-block] [PULL 08/48] block: Consider all block layer options in append_open_options

2015-12-18 Thread Kevin Wolf
The code already special-cased "node-name", which is currently the only option passed in the QDict that isn't driver-specific. Generalise the code to take all general block layer options into consideration. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake

[Qemu-block] [PULL 11/48] block: Keep "driver" in bs->options

2015-12-18 Thread Kevin Wolf
Instead of passing a separate drv argument to bdrv_open_common(), just make sure that a "driver" option is set in the QDict. This also means that a "driver" entry is consistently present in bs->options now. This is another step towards keeping all options in the QDict (which is the represenation

[Qemu-block] [PULL 36/48] raw-posix: Make aio=native option binding

2015-12-18 Thread Kevin Wolf
Traditionally, aio=native was treated as an advice that could simply be ignored if an error occurs while initialising Linux AIO or the feature wasn't compiled in. This behaviour was deprecated in commit 96518254 (qemu 2.3; error during init) and commit 1501ecc1 (qemu 2.5; not compiled in). This

[Qemu-block] [PULL 15/48] block: Split out parse_json_protocol()

2015-12-18 Thread Kevin Wolf
The next patch distinguishes options that were explicitly set and options that were derived. bdrv_fill_option() added options of both types: Options given by json: syntax should be counted as explicit, but the rest is derived. In preparation for the distinction, move json: parse to a separate

[Qemu-block] [PULL 03/48] iotests: 124: don't reopen qcow2

2015-12-18 Thread Kevin Wolf
From: John Snow Don't create two interfaces to the same drive in the recently moved failure test. Signed-off-by: John Snow Signed-off-by: Kevin Wolf --- tests/qemu-iotests/124 | 26 ++ 1 file changed, 14

[Qemu-block] [PULL 29/48] qcow2: Split upgrade/downgrade paths for amend

2015-12-18 Thread Kevin Wolf
From: Max Reitz If the image version should be upgraded, that is the first we should do; if it should be downgraded, that is the last we should do. So split the version change block into an upgrade part at the start and a downgrade part at the end. Signed-off-by: Max Reitz

[Qemu-block] [PULL 47/48] qemu-img: abort when full_backing_filename not present

2015-12-18 Thread Kevin Wolf
From: John Snow ...But only if we have the backing_filename. It means something Scary happened and we can't really be quite exactly sure if we can trust the backing_filename. Signed-off-by: John Snow Reviewed-by: Max Reitz Message-id:

[Qemu-block] [PATCH 2/2] vhdx: Simplify vhdx_set_shift_bits()

2015-12-18 Thread Max Reitz
For values which are powers of two (and we do assume all of these to be), sizeof(x) * 8 - 1 - clz(x) == ctz(x). Therefore, use ctz(). Signed-off-by: Max Reitz --- block/vhdx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/vhdx.c

[Qemu-block] [PULL 09/48] block: Exclude nested options only for children in append_open_options()

2015-12-18 Thread Kevin Wolf
Some drivers have nested options (e.g. blkdebug rule arrays), which don't belong to a child node and shouldn't be removed. Don't remove all options with "." in their name, but check for the complete prefixes of actually existing child nodes. Signed-off-by: Kevin Wolf

[Qemu-block] [PULL 18/48] qemu-iotests: Remove cache mode test without medium

2015-12-18 Thread Kevin Wolf
Specifying the cache mode for a driver without a medium is not a useful thing to do: As long as there is no medium, the cache mode doesn't make a difference, and once the 'change' command is used to insert a medium, it ignores the old cache mode and makes the new medium use cache=writethrough.

Re: [Qemu-block] Jobs 2.0 QAPI [RFC]

2015-12-18 Thread Eric Blake
On 12/16/2015 05:50 PM, John Snow wrote: > In working through a prototype to enable multiple block jobs. A few > problem spots in our API compatibility become apparent. > > qmp_query_block_jobs > > Let's consider using a new command. I'm not sure if this is strictly > possible with

[Qemu-block] [PULL 31/48] qcow2: Add function for refcount order amendment

2015-12-18 Thread Kevin Wolf
From: Max Reitz Add a function qcow2_change_refcount_order() which allows changing the refcount order of a qcow2 image. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf ---

[Qemu-block] [PULL 39/48] block: use drained section around bdrv_snapshot_delete

2015-12-18 Thread Kevin Wolf
From: Paolo Bonzini Do not use bdrv_drain, since by itself it does not guarantee anything. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng Signed-off-by: Kevin Wolf --- block/snapshot.c | 23

[Qemu-block] [PULL 21/48] blkdebug: Enable reopen

2015-12-18 Thread Kevin Wolf
Just reopening the children (as block.c does now) is enough. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by: Alberto Garcia --- block/blkdebug.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/block/blkdebug.c

[Qemu-block] [PULL 10/48] block: Pass driver-specific options to .bdrv_refresh_filename()

2015-12-18 Thread Kevin Wolf
In order to decide whether a blkdebug: filename can be produced or a json: one is necessary, blkdebug checked whether bs->options had more options than just "config", "x-image" or "image" (the latter including nested options). That doesn't work well when generic block layer options are present.

[Qemu-block] [PULL 13/48] block: reopen: Document option precedence and refactor accordingly

2015-12-18 Thread Kevin Wolf
The interesting part of reopening an image is from which sources the effective options should be taken, i.e. which options take precedence over which other options. This patch documents the precedence that will be implemented in the following patches. It also refactors bdrv_reopen_queue(), so

[Qemu-block] [PULL 32/48] qcow2: Invoke refcount order amendment function

2015-12-18 Thread Kevin Wolf
From: Max Reitz Make use of qcow2_change_refcount_order() to support changing the refcount order with qemu-img amend. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- block/qcow2.c | 44

Re: [Qemu-block] [Qemu-devel] [PATCH v3 01/11] fdc: move pick_geometry

2015-12-18 Thread Eric Blake
On 12/16/2015 03:16 PM, John Snow wrote: > Code motion: I want to refactor this function to work with FDrive > directly, so shuffle it below that definition. > > Signed-off-by: John Snow > --- > hw/block/fdc.c | 90 > +-

[Qemu-block] [PULL 24/48] qemu-iotests: Test reopen with node-name/driver options

2015-12-18 Thread Kevin Wolf
'node-name' and 'driver' should not be changed during a reopen operation. It is, however, valid to specify them with the same value as they already had. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- tests/qemu-iotests/133 | 90

[Qemu-block] [PULL 40/48] block: fix bdrv_ioctl called from coroutine

2015-12-18 Thread Kevin Wolf
From: Paolo Bonzini When called from a coroutine, bdrv_ioctl must be asynchronous just like e.g. bdrv_flush. The code was incorrectly making it synchronous, fix it. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng Signed-off-by:

Re: [Qemu-block] [PATCH 00/10] iotests: Clean up "mv $TEST_IMG $TEST_IMG.XXX"

2015-12-18 Thread Max Reitz
On 16.12.2015 10:54, Fam Zheng wrote: > Commit 794d00f71d fixed two "mv" commands into the TEST_IMG override approach. > There are still more occasions of "mv", this series fixes them. > > The benefit is it drops the assumption that the created image is a single > file, > which is not true for

Re: [Qemu-block] [Qemu-devel] [PATCH v3 06/11] fdc: do not call revalidate on eject

2015-12-18 Thread John Snow
On 12/18/2015 11:11 AM, Markus Armbruster wrote: > John Snow writes: > >> Currently, fd_revalidate is called in two different places, with two >> different expectations of behavior: >> >> (1) On initialization, as a routine to help pick the drive type and >> initial

[Qemu-block] ping Re: [PATCH v12] block/raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-12-18 Thread Programmingkid
https://patchwork.ozlabs.org/patch/555945/ On Dec 11, 2015, at 10:27 PM, Programmingkid wrote: > Mac OS X can be picky when it comes to allowing the user > to use physical devices in QEMU. Most mounted volumes > appear to be off limits to QEMU. If an issue is detected, > a message is displayed

Re: [Qemu-block] RFC: Operation Blockers in QEMU Block Nodes

2015-12-18 Thread Kevin Wolf
Am 16.12.2015 um 07:25 hat Jeff Cody geschrieben: > Background: > > Block jobs, and other QAPI operations, may modify and impact the > BlockDriverState graph in QEMU. In order to support multiple > operations safely, we need a mechanism to block and gate operations, > > We currently

Re: [Qemu-block] [PATCH] qemu-iotests: Reduce racy output in 028

2015-12-18 Thread Eric Blake
On 12/11/2015 06:23 PM, John Snow wrote: > ping > > On 12/10/2015 10:27 PM, Eric Blake wrote: >> On my machine, './check -qcow2 028' was failing about 80% of the >> time, due to a race in how many times the repeated attempts >> to run 'info block-jobs' could occur before the job was done, >>

Re: [Qemu-block] Jobs 2.0 QAPI [RFC]

2015-12-18 Thread Eric Blake
On 12/18/2015 02:24 PM, John Snow wrote: >> To be subclassable, we need a flat union, and the discriminator must be >> non-optional within that union. Either 'options' is that flat union >> (and we have a layer of {} nesting in QMP}, or we directly make the >> 'data' of job-cancel be the flat

Re: [Qemu-block] [PATCH] qemu-iotests: Reduce racy output in 028

2015-12-18 Thread John Snow
On 12/18/2015 03:46 PM, Eric Blake wrote: > On 12/11/2015 06:23 PM, John Snow wrote: >> > > ping > >> >> On 12/10/2015 10:27 PM, Eric Blake wrote: >>> On my machine, './check -qcow2 028' was failing about 80% of the >>> time, due to a race in how many times the repeated attempts >>> to run

Re: [Qemu-block] Jobs 2.0 QAPI [RFC]

2015-12-18 Thread John Snow
On 12/18/2015 01:07 PM, Eric Blake wrote: > On 12/16/2015 05:50 PM, John Snow wrote: >> In working through a prototype to enable multiple block jobs. A few >> problem spots in our API compatibility become apparent. >> > >> qmp_query_block_jobs >> > >> Let's consider using a new

Re: [Qemu-block] RFC: Operation Blockers in QEMU Block Nodes

2015-12-18 Thread Jeff Cody
On Fri, Dec 18, 2015 at 03:19:25PM +0100, Kevin Wolf wrote: > Am 16.12.2015 um 07:25 hat Jeff Cody geschrieben: > > Background: > > > > Block jobs, and other QAPI operations, may modify and impact the > > BlockDriverState graph in QEMU. In order to support multiple > > operations