[Qemu-devel] [PATCH] qemu-iotests: Test qcow2 image creation options

2013-01-29 Thread Kevin Wolf
Just create lots of images and try out each of the creation options that qcow2 provides (except backing_file/fmt for now) I'm not totally happy with the behaviour of qemu-img in each of the cases, but let's be explicit and update the test when we do change things later. Signed-off-by:

Re: [Qemu-devel] [PATCH v8 2/4] qemu-img: Add "Quiet mode" option

2013-01-29 Thread Kevin Wolf
Am 14.01.2013 11:26, schrieb Miroslav Rezanina: > There can be a need to turn output to stdout off. This patch adds a -q option > that enable "Quiet mode". In Quiet mode, only errors are printed out. > > Signed-off-by: Miroslav Rezanina This patch introduces trailing whitespace in some lines. K

Re: [Qemu-devel] [PATCH v8 3/4] qemu-img: Add compare subcommand

2013-01-29 Thread Kevin Wolf
Am 14.01.2013 11:26, schrieb Miroslav Rezanina: > This patch adds new qemu-img subcommand that compares content of two disk > images. > > Signed-off-by: Miroslav Rezanina > --- > qemu-img-cmds.hx |6 ++ > qemu-img.c | 266 > ++ > 2

Re: [Qemu-devel] [PATCH V2 4/4] block: Optionally block drivers to optionally reopen images after snapshot creation.

2013-01-29 Thread Kevin Wolf
Am 28.01.2013 18:04, schrieb Benoît Canet: > Protocols like quorum will be able to queue multiple reopens. > > Signed-off-by: Benoit Canet -EPARSE for the subject line. Also, what's the difference between this and a normal reopen? Kevin

Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.

2013-01-29 Thread Kevin Wolf
Am 28.01.2013 18:04, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > blockdev.c |3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/blockdev.c b/blockdev.c > index 0ce45c5..b1f388b 100644 > --- a/blockdev.c > +++ b/blockdev.c > @@ -800,7 +800,8 @@ void qmp_t

Re: [Qemu-devel] [PATCH V5 03/13] block: add bdrv_can_read_snapshot() function

2013-01-29 Thread Kevin Wolf
Am 25.01.2013 19:11, schrieb Eric Blake: > On 01/23/2013 07:57 PM, Wenchao Xia wrote: >> Compared to bdrv_can_snapshot(), this function return whether >> bs* is ready to read snapshot info from instead of write. If yes, >> caller can then query snapshot information, but taking snapshot >> is not

Re: [Qemu-devel] [PATCH V5 04/13] block: add snapshot info query function bdrv_query_snapshot_infolist()

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > This patch add function bdrv_query_snapshot_infolist(), which will > return snapshot info of an image in qmp object format. The implementation > code are mostly copied from qemu-img.c with modification to fit more > for qmp based block layer API. > To

Re: [Qemu-devel] [PATCH v8 4/4] Add qemu-img compare documentation

2013-01-29 Thread Kevin Wolf
Am 14.01.2013 11:26, schrieb Miroslav Rezanina: > Adding documentation for new qemu-img subcommand compare. > > Signed-off-by: Miroslav Rezanina > --- > qemu-img.c|7 ++- > qemu-img.texi | 32 > 2 files changed, 38 insertions(+), 1 deletions(-) Ah,

Re: [Qemu-devel] [PATCH V2 2/4] block: make path_hash_protocol public.

2013-01-29 Thread Kevin Wolf
Am 28.01.2013 18:04, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block.c |2 +- > include/block/block.h |1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/block.c b/block.c > index 41a9ac0..843583f 100644 > --- a/block.c > +++ b/block.c

Re: [Qemu-devel] [PATCH V5 06/13] qemu-img: switch image retrieving function

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > Now qemu-img call block layer function to get image info and check > if error happens. > > Signed-off-by: Wenchao Xia > Reviewed-by: Eric Blake Merge this with patch 5. Kevin

Re: [Qemu-devel] [PATCH V5 05/13] block: add image info query function bdrv_query_image_info()

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > This patch add function bdrv_query_image_info(), which will return > image info in qmp object format. The implementation code are mostly > copied from qemu-img.c, but use block layer function to get snapshot > info. Don't copy code, reuse it. Can you

Re: [Qemu-devel] [PATCH V5 07/13] block: rename bdrv_query_info to bdrv_query_block_info

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > Now that we have bdrv_query_image_info, rename this function to make it > more obvious what it is doing. > > Reviewed-by: Eric Blake > Signed-off-by: Wenchao Xia Should this provide an option to give information on each image in the backing file cha

Re: [Qemu-devel] [PATCH V5 07/13] block: rename bdrv_query_info to bdrv_query_block_info

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 14:04, schrieb Kevin Wolf: > Am 24.01.2013 03:57, schrieb Wenchao Xia: >> Now that we have bdrv_query_image_info, rename this function to make it >> more obvious what it is doing. >> >> Reviewed-by: Eric Blake >> Signed-off-by: Wenchao Xia >

Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 14:07, schrieb Benoît Canet: >> Wait, what's happening here? I don't understand this patch and how it's >> related to snapshotting non-file protocols (if this is even what you >> mean). What is your exact scenario, what does the existing code do in >> it, and how does this change impr

Re: [Qemu-devel] [PATCH V2 4/4] block: Optionally block drivers to optionally reopen images after snapshot creation.

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 14:09, schrieb Benoît Canet: > Le Tuesday 29 Jan 2013 à 13:22:12 (+0100), Kevin Wolf a écrit : >> Am 28.01.2013 18:04, schrieb Benoît Canet: >>> Protocols like quorum will be able to queue multiple reopens. >>> >>> Signed-off-by: Benoit Canet

Re: [Qemu-devel] [PATCH V5 09/13] block: export function bdrv_find_snapshot()

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > This patch move it from savevm.c to block.c and export it. To make > it clear about id and name in searching, the API was changed a bit > to distinguish them. Caller can choose to search by id or name now. > > Signed-off-by: Wenchao Xia Please keep c

Re: [Qemu-devel] [PATCH] qemu-iotests: Test qcow2 image creation options

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 14:43, schrieb Markus Armbruster: >> +echo "=== Check correct interpretation of suffixes for image size ===" >> +echo >> +sizes="1024 1024b 1k 1K 1M 1G 1T " >> +sizes+="1024.0 1024.0b 1.5k 1.5K 1.5M 1.5G 1.5T" >> + >> +echo "== 1. Traditional size parameter ==" >> +echo >> +for s in $

Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 14:45, schrieb Benoît Canet: > Le Tuesday 29 Jan 2013 à 14:25:42 (+0100), Kevin Wolf a écrit : >> Am 29.01.2013 14:07, schrieb Benoît Canet: >>>> Wait, what's happening here? I don't understand this patch and how it's >>>> related to

Re: [Qemu-devel] [PATCH] qemu-iotests: Test qcow2 image creation options

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 11:01, schrieb Kevin Wolf: > Just create lots of images and try out each of the creation options that > qcow2 provides (except backing_file/fmt for now) > > I'm not totally happy with the behaviour of qemu-img in each of the > cases, but let's be explicit an

Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 16:03, schrieb Benoît Canet: >> base1 [file] --- base1 [qcow2] --- snap1.qcow2 --\ >> base2 [file] --- base2 [qcow2] --- snap2.qcow2 --->-- quorum >> base3 [file] --- base3 [qcow2] --- snap3.qcow2 --/ > > I tried to default snapshot creation to qcow2 in quorum.c and specify > quorum

Re: [Qemu-devel] [PATCH V5 02/13] block: add bdrv_get_filename() function

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > This function will simply return the uri or filename used > to open the image. > > Reviewed-by: Eric Blake > Signed-off-by: Wenchao Xia The only user of this function in the series is in block.c and could have called it without making it public. Ke

Re: [Qemu-devel] [PATCH] qemu-iotests: Test qcow2 image creation options

2013-01-29 Thread Kevin Wolf
Am 29.01.2013 17:12, schrieb Eric Blake: > On 01/29/2013 03:01 AM, Kevin Wolf wrote: >> Just create lots of images and try out each of the creation options that >> qcow2 provides (except backing_file/fmt for now) >> >> I'm not totally happy with the behaviour of

Re: [Qemu-devel] [PATCH] tests: add fuzzing to visitor tests

2013-01-30 Thread Kevin Wolf
Am 19.01.2013 17:01, schrieb Blue Swirl: > Perform input tests on random data. > > Improvement to code coverage for qapi/string-input-visitor.c > is about 3 percentage points. > > Signed-off-by: Blue Swirl Does this test pass for you? It consistently segfaults for me. /string-visitor/input/fuz

Re: [Qemu-devel] [PATCH 1/7] block/vpc: Fix most coding style warnings and errors

2013-02-05 Thread Kevin Wolf
Am 01.02.2013 22:51, schrieb Stefan Weil: > Only C99 comments remain unfixed. > > Signed-off-by: Stefan Weil > --- > block/vpc.c | 94 > +-- > 1 file changed, 52 insertions(+), 42 deletions(-) > @@ -578,8 +589,8 @@ static int calculate_

Re: [Qemu-devel] [PATCH 2/7] block/vpc: Add link to available VHD documentation

2013-02-05 Thread Kevin Wolf
Am 01.02.2013 22:51, schrieb Stefan Weil: > Signed-off-by: Stefan Weil > --- > block/vpc.c |3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/block/vpc.c b/block/vpc.c > index 1c55c21..4565723 100644 > --- a/block/vpc.c > +++ b/block/vpc.c > @@ -21,6 +21,9 @@ > * LIABILITY, WHETHER

Re: [Qemu-devel] [PATCH 4/7] block/vpc: Improve vpc_open (optimisation and error handling)

2013-02-05 Thread Kevin Wolf
Am 01.02.2013 22:51, schrieb Stefan Weil: > * Always read the footer at the end of the image. > The footer exists for all kinds of VHD images, so there is no need > to read its copy at the start of dynamic VHD images. > > * Return error codes from bdrv_pread like in other block drivers. > > *

Re: [Qemu-devel] [PATCH 5/7] block/vpc: Fix size calculation

2013-02-05 Thread Kevin Wolf
Am 01.02.2013 22:51, schrieb Stefan Weil: > The size calculated from the CHS values is not the real image (disk) size, > but usually a smaller value (this is caused by rounding effects). > > Only older operating systems use CHS. Such guests won't be able to use > the whole disk. > > This patch fi

Re: [Qemu-devel] [PATCH 5/7] block/vpc: Fix size calculation

2013-02-05 Thread Kevin Wolf
Am 05.02.2013 12:10, schrieb Stefan Weil: > Am 05.02.2013 11:54, schrieb Kevin Wolf: >> Am 01.02.2013 22:51, schrieb Stefan Weil: >>> The size calculated from the CHS values is not the real image (disk) size, >>> but usually a smaller value (this is caused by rounding e

Re: [Qemu-devel] [PATCH 6/7] block/vpc: Remove workaround for geometry calculation

2013-02-05 Thread Kevin Wolf
Am 01.02.2013 22:51, schrieb Stefan Weil: > QEMU now gets the correct size for VHD images, so this workaround is no > longer needed. > > Signed-off-by: Stefan Weil This isn't about qemu, but about VPC. Whether we need this code is probably closely related to whether patch 5 is correct. Kevin

Re: [Qemu-devel] [PATCH V2 3/4] blockdev: Allow snapshoting of protocols.

2013-02-05 Thread Kevin Wolf
Am 29.01.2013 17:24, schrieb Eric Blake: > On 01/29/2013 07:27 AM, Benoît Canet wrote: >>> base1 [file] --- base1 [qcow2] --- snap1.qcow2 --\ >>> base2 [file] --- base2 [qcow2] --- snap2.qcow2 --->-- quorum >>> base3 [file] --- base3 [qcow2] --- snap3.qcow2 --/ > > For that matter, I think it woul

Re: [Qemu-devel] [PATCH v2] block/raw-posix: detect readonly Linux block devices using BLKROGET

2013-02-06 Thread Kevin Wolf
Am 05.02.2013 16:12, schrieb Markus Armbruster: > Stefan Hajnoczi writes: > >> Linux block devices can be set read-only with "blockdev --setro >> ". The same thing can be done for LVM volumes using "lvchange >> --permission r ". This read-only setting is independent of >> device node permission

Re: [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo line length

2013-02-06 Thread Kevin Wolf
Am 06.02.2013 11:58, schrieb Stefan Hajnoczi: > The qemu-img check printf() statement that shows BlockFragInfo results > is poorly formatted. Introduce a local variable to shorten the lines > and restore proper indentation. > > The next patch adds a field to BlockFragInfo so it is beneficial to >

Re: [Qemu-devel] [PATCH 4/5] qemu-img: add compressed clusters to BlockFragInfo

2013-02-06 Thread Kevin Wolf
Am 05.02.2013 19:54, schrieb Stefan Hajnoczi: > Show how many clusters are compressed. This can be used to monitor how > many compressed clusters remain and whether to recompress the image. > > Suggested-by: Cole Robinson > Signed-off-by: Stefan Hajnoczi > diff --git a/qemu-img.c b/qemu-img.c

Re: [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo line length

2013-02-06 Thread Kevin Wolf
Am 06.02.2013 14:35, schrieb Eric Blake: > On 02/06/2013 04:30 AM, Kevin Wolf wrote: > >>> >>> -if (result.bfi.total_clusters != 0 && result.bfi.allocated_clusters != >>> 0) { >>> -printf("%" PRId64

Re: [Qemu-devel] [PATCH 4/5] qemu-img: add compressed clusters to BlockFragInfo

2013-02-06 Thread Kevin Wolf
Am 06.02.2013 14:40, schrieb Eric Blake: > On 02/06/2013 04:43 AM, Kevin Wolf wrote: >> >> Instead of getting a longer and longer output line for each new number >> we add, maybe we could use the chance to introduce multiline output: >> >> Total number o

Re: [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo line length

2013-02-06 Thread Kevin Wolf
Am 06.02.2013 15:56, schrieb Eric Blake: > On 02/06/2013 06:45 AM, Kevin Wolf wrote: >>>> Can you add a space before the '=' while touching this? >>> >>> Perhaps he can, but as this is user-visible output, and we don't yet >>> have

Re: [Qemu-devel] [PATCHv4 1/2] qemu-img: find the image end offset during check

2013-02-06 Thread Kevin Wolf
Am 28.01.2013 12:59, schrieb Federico Simoncelli: > This patch adds the support for reporting the image end offset (in > bytes). This is particularly useful after a conversion (or a rebase) > where the destination is a block device in order to find the first > unused byte at the end of the image. >

Re: [Qemu-devel] [RFC] configuring thin provisioning for drives

2013-02-06 Thread Kevin Wolf
Am 06.02.2013 17:39, schrieb Paolo Bonzini: > In order to finish the implementation of thin provisioning, we need to > add a -drive option to describe how guest discard requests are mapped to > host requests. > > We have three possibilities: > > - hide them and make them always succeed > - transl

Re: [Qemu-devel] [RFC for-1.4] Revert "block: fix block tray status"

2013-02-07 Thread Kevin Wolf
Am 06.02.2013 21:02, schrieb Luiz Capitulino: > This reverts commit 9ca111544c64b5abed2e79cf52e19a8f227b347b. > > That commit has added a weird side effect to QMP: on shutdown, > QMP emits the DEVICE_TRAY_MOVED event for all empty drives > that have closed trays. > > This happens because the tray

Re: [Qemu-devel] [RFC for-1.4] Revert "block: fix block tray status"

2013-02-07 Thread Kevin Wolf
Am 07.02.2013 14:15, schrieb Luiz Capitulino: > On Thu, 07 Feb 2013 14:12:10 +0100 > Kevin Wolf wrote: >> I think the right solution is to move the bdrv_dev_change_media_cb() >> call to those callers of bdrv_close() that actually need it. I haven't >> checked it ye

Re: [Qemu-devel] [PATCH for 1.4] block/vpc: Fix size calculation

2013-02-08 Thread Kevin Wolf
Am 07.02.2013 20:26, schrieb Stefan Weil: > From: Stefan Weil > > The size calculated from the CHS values is not the real image (disk) size, > but usually a smaller value. This is caused by rounding effects. > > Only older operating systems use CHS. Such guests won't be able to use > the whole d

Re: [Qemu-devel] [RFC V8 01/13] quorum: Create quorum.c, add QuorumSingleAIOCB and QuorumAIOCB.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block/Makefile.objs |1 + > block/quorum.c | 45 + > 2 files changed, 46 insertions(+) > create mode 100644 block/quorum.c > > diff --git a/block/Makefile.objs

Re: [Qemu-devel] [RFC V8 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block/quorum.c | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/block/quorum.c b/block/quorum.c > index 8dc6e4c..d8fffbe 100644 > --- a/block/quorum.c > +++ b/block/quorum.c > @@ -1

Re: [Qemu-devel] [RFC V8 03/13] quorum: Add quorum_aio_writev and its dependencies.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block/quorum.c | 111 > > 1 file changed, 111 insertions(+) > > diff --git a/block/quorum.c b/block/quorum.c > index d8fffbe..5d8470b 100644 > --- a/block/q

Re: [Qemu-devel] [RFC V8 05/13] quorum: Add quorum_aio_readv.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block/quorum.c | 38 +- > 1 file changed, 37 insertions(+), 1 deletion(-) > > diff --git a/block/quorum.c b/block/quorum.c > index 5d8470b..e3c6aad 100644 > --- a/block/quorum.c

Re: [Qemu-devel] [RFC V8 06/13] quorum: Add quorum mechanism.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Use gnutls's SHA-256 to compare versions. > > Signed-off-by: Benoit Canet > --- > block/quorum.c | 303 > +++- > configure | 22 > 2 files changed, 324 insertions(+), 1 deletion(-) > >

Re: [Qemu-devel] [RFC V8 07/13] quorum: Add quorum_getlength().

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Check that every bs file return the same length. > If not return -EIO to disable the quorum and > avoid length discrepancy. > > Signed-off-by: Benoit Canet > --- > block/quorum.c | 20 > 1 file changed, 20 insertions(+) > > dif

Re: [Qemu-devel] [RFC V8 09/13] quorum: Add quorum_co_is_allocated.

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Signed-off-by: Benoit Canet > --- > block/quorum.c | 53 + > 1 file changed, 53 insertions(+) > > diff --git a/block/quorum.c b/block/quorum.c > index 1c50ed5..459434f 100644 > --- a/block/quorum.c

Re: [Qemu-devel] [RFC V8 10/13] quorum: Add quorum_co_flush().

2013-02-08 Thread Kevin Wolf
Am 28.01.2013 18:07, schrieb Benoît Canet: > Makes a vote to select error if any. > > Signed-off-by: Benoit Canet > --- > block/quorum.c | 34 ++ > 1 file changed, 34 insertions(+) > > diff --git a/block/quorum.c b/block/quorum.c > index 459434f..306a2df 100644

Re: [Qemu-devel] [PATCH for 1.4] block/vpc: Fix size calculation

2013-02-11 Thread Kevin Wolf
Am 08.02.2013 18:43, schrieb Stefan Weil: > Am 08.02.2013 13:14, schrieb Jeff Cody: >> On Fri, Feb 08, 2013 at 09:38:47AM +0100, Kevin Wolf wrote: >>> Am 07.02.2013 20:26, schrieb Stefan Weil: >>>> From: Stefan Weil >>>> >>>> The size calc

Re: [Qemu-devel] [PATCH for-1.4 stable] block: handle spurious coroutine entries

2013-02-11 Thread Kevin Wolf
Am 09.02.2013 17:44, schrieb Stefan Hajnoczi: > bdrv_co_io_em(), bdrv_co_flush(), and bdrv_co_discard() yield the > coroutine when waiting for aio to complete. They do not check that the > request has actually finished. > > In simple cases this works, but it returns early when we get spurious > w

Re: [Qemu-devel] [PATCH for-1.4 stable] block: handle spurious coroutine entries

2013-02-11 Thread Kevin Wolf
Am 11.02.2013 14:17, schrieb Stefan Hajnoczi: > On Mon, Feb 11, 2013 at 1:42 PM, Paolo Bonzini wrote: >> Il 11/02/2013 13:29, Kevin Wolf ha scritto: >>> The bug is not in this function but in process_incoming_migration(). It >>> should never blindly enter a coroutine w

Re: [Qemu-devel] [PATCH] ide: log error when trying to use ATAPI overlapping features

2013-02-11 Thread Kevin Wolf
Am 11.02.2013 14:27, schrieb Stefan Hajnoczi: > On Sun, Feb 10, 2013 at 11:12:11PM +0100, Hervé Poussineau wrote: >> >> Signed-off-by: Hervé Poussineau >> --- >> hw/ide/core.c |4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/hw/ide/core.c b/hw/ide/core.c >> index

Re: [Qemu-devel] [PATCH for-1.4 stable] block: handle spurious coroutine entries

2013-02-11 Thread Kevin Wolf
Am 11.02.2013 13:42, schrieb Paolo Bonzini: > Il 11/02/2013 13:29, Kevin Wolf ha scritto: >> The bug is not in this function but in process_incoming_migration(). It >> should never blindly enter a coroutine which is in an unknown state. > > process_incoming_migration()

Re: [Qemu-devel] [PATCH for-1.4] migration: restrict scope of incoming fd read handler

2013-02-11 Thread Kevin Wolf
Am 11.02.2013 17:01, schrieb Stefan Hajnoczi: > The incoming migration is processed in a coroutine and uses an fd read > handler to enter the yielded coroutine when data becomes available. > > The read handler was set too broadly, so that spurious coroutine entries > were be triggered if other cor

Re: [Qemu-devel] [PATCH for 1.4] block/vpc: Fix size calculation

2013-02-11 Thread Kevin Wolf
Am 11.02.2013 20:38, schrieb Jeff Cody: > I've done some testing back and forth between VPC, Win Server 2012 > Hyper-V, and qemu/kvm with and without this patch applied. First of all, thanks a lot for doing all the testing! > The short: this patch will break Virtual PC VHD compatibility (as it >

Re: [Qemu-devel] [PATCH for 1.4] block/vpc: Fix size calculation

2013-02-12 Thread Kevin Wolf
Am 11.02.2013 22:14, schrieb Anthony Liguori: > Paolo Bonzini writes: > >> Il 11/02/2013 21:13, Anthony Liguori ha scritto: >>> Applied. Thanks. >>> >>> Regards, >>> >>> Anthony Liguori >> >> I guess this was a mistake, please revert. > > No, it wasn't. The patch was reviewed and tested. What

Re: [Qemu-devel] [PATCH for 1.4] block/vpc: Fix size calculation

2013-02-12 Thread Kevin Wolf
Am 11.02.2013 22:33, schrieb Stefan Weil: > Does the patch really break Virtual PC VHD compatibility? > > Or does VPC simply pass the size calculated from CHSto the > guest - no matter how the disk image was created?In this case > I see no need that QEMU must show the same behaviour. > It's import

Re: [Qemu-devel] [PATCH v10 2/4] qemu-img: Add "Quiet mode" option

2013-02-12 Thread Kevin Wolf
Am 12.02.2013 08:00, schrieb Miroslav Rezanina: > There can be a need to turn output to stdout off. This patch adds a -q option > that enable "Quiet mode". In Quiet mode, only errors are printed out. > > Signed-off-by: Miroslav Rezanina It feels a bit odd that the quiet flag takes effect in JSON

Re: [Qemu-devel] [PATCH v10 3/4] This patch adds new qemu-img subcommand that compares content of two disk images.

2013-02-12 Thread Kevin Wolf
Am 12.02.2013 08:00, schrieb Miroslav Rezanina: > Signed-off-by: Miroslav Rezanina What happened to the commit message here? Previous versions had "qemu-img: Add compare subcommand" as their subject and what is now the subject was the body. Made much more sense. Stefan, if you apply the series,

Re: [Qemu-devel] [PATCH v10 4/4] qemu-iotests: Add qemu-img compare test

2013-02-12 Thread Kevin Wolf
Am 12.02.2013 08:00, schrieb Miroslav Rezanina: > Simple test for qemu-img compare to check it's working correctly. > > Signed-off-by: Miroslav Rezanina > --- > tests/qemu-iotests/048 | 77 > > tests/qemu-iotests/048.out | 25 ++ >

Re: [Qemu-devel] [PATCH v10 0/4] Add subcommand compare for qemu-img

2013-02-12 Thread Kevin Wolf
ged, 626 insertions(+), 70 deletions(-) > create mode 100755 tests/qemu-iotests/048 > create mode 100644 tests/qemu-iotests/048.out I had only minor comments that could as well be addressed on top. Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v3 0/5] qcow2: add fragmentation and compression info support

2013-02-12 Thread Kevin Wolf
| 42 -- > include/block/block.h| 1 + > qapi-schema.json | 6 +- > qemu-img.c | 12 ++++---- > tests/qemu-iotests/044.out | 1 + > tests/qemu-iotests/common.rc | 2 +- > 6 files changed, 52 insertions(+), 12 deletions(-) Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v11 4/4] qemu-iotests: Add qemu-img compare test

2013-02-13 Thread Kevin Wolf
Am 13.02.2013 09:09, schrieb Miroslav Rezanina: > Simple test for qemu-img compare to check it's working correctly. > > Signed-off-by: Miroslav Rezanina > --- > tests/qemu-iotests/048 | 78 > > tests/qemu-iotests/048.out | 31

Re: [Qemu-devel] [PATCH v11 0/4] Add subcommand compare for qemu-img

2013-02-13 Thread Kevin Wolf
emu-img.texi | 56 ++ > tests/qemu-iotests/048 | 78 > tests/qemu-iotests/048.out | 31 +++ > tests/qemu-iotests/group |1 + > 9 files changed, 633 insertions(+), 70 deletions(-) > create mode 100755 tests/qemu-iotests/048 > create mode 100644 tests/qemu-iotests/048.out Reviewed-by: Kevin Wolf

[Qemu-devel] [RFC PATCH v2 01/23] qcow2: Handle dependencies earlier

2013-02-13 Thread Kevin Wolf
uired, allocate new clusters Changing the code to reflect this doesn't change the behaviour because overlaps cannot exist for clusters that are kept in step 2. It does however make it easier for later patches to work on clusters that belong to an allocation that is still in flight. Signed-off-by:

[Qemu-devel] [RFC PATCH v2 02/23] qcow2: Improve check for overlapping allocations

2013-02-13 Thread Kevin Wolf
The old code detected an overlapping allocation even when the allocations didn't actually overlap, but were only adjacent. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |2 +- tests/qemu-iotests/038.out | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-)

[Qemu-devel] [RFC PATCH v2 14/23] qcow2: Use byte granularity in qcow2_alloc_cluster_offset()

2013-02-13 Thread Kevin Wolf
ds to make things look more uniform. A later patch will turn the whole thing into a loop and then it actually starts making sense. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 82 + 1 files changed, 28 insertions(+), 54 deletions(-) diff --

[Qemu-devel] [RFC PATCH v2 19/23] qcow2: Add error handling to the l2meta coroutine

2013-02-13 Thread Kevin Wolf
Not exactly bisectable, but one large patch isn't much better either :-( m->error is used to allow bdrv_drain() to stop with l2meta in error state rather than go into an endless loop. Signed-off-by: Kevin Wolf --- block/qcow2.c | 44 block

[Qemu-devel] [RFC PATCH v2 17/23] qcow2: Move COW and L2 update into own coroutine

2013-02-13 Thread Kevin Wolf
still running after bdrv_drain_all (e.g. when the VM is stopped). Signed-off-by: Kevin Wolf --- block.c |5 ++ block/qcow2.c | 131 ++--- block/qcow2.h |8 +++ include/block/block_int.h |3 + 4 files ch

[Qemu-devel] [RFC PATCH v2 22/23] qcow2: Move cluster gathering to a non-looping loop

2013-02-13 Thread Kevin Wolf
This patch is mainly to separate the indentation change from the semantic changes. All that really changes here is that everything moves into a while loop, all 'goto done' become 'break' and at the end of the loop a new 'break is inserted. Signed-off-by: Kevin Wolf -

[Qemu-devel] [RFC PATCH v2 16/23] qcow2: Reading from areas not in L2 tables yet

2013-02-13 Thread Kevin Wolf
ned-off-by: Kevin Wolf --- block/qcow2-cluster.c | 39 +++ block/qcow2.c |2 ++ block/qcow2.h | 19 +++ 3 files changed, 60 insertions(+), 0 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c ind

[Qemu-devel] [RFC PATCH v2 11/23] qcow2: handle_copied(): Get rid of nb_clusters parameter

2013-02-13 Thread Kevin Wolf
handle_copied() uses its bytes parameter now to determine how many clusters it should try to find. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 24 ++-- 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c

[Qemu-devel] [PATCH v2] qemu-iotests: Test qcow2 image creation options

2013-02-13 Thread Kevin Wolf
Just create lots of images and try out each of the creation options that qcow2 provides (except backing_file/fmt for now) I'm not totally happy with the behaviour of qemu-img in each of the cases, but let's be explicit and update the test when we do change things later. Signed-off-by:

[Qemu-devel] [RFC PATCH v2 00/23] qcow2: Delayed COW

2013-02-13 Thread Kevin Wolf
is non-deterministic therefore. Kevin Wolf (23): qcow2: Handle dependencies earlier qcow2: Improve check for overlapping allocations qcow2: Change handle_dependency to byte granularity qcow2: Decouple cluster allocation from cluster reuse code qcow2: Factor out handle_alloc() qco

[Qemu-devel] [RFC PATCH v2 08/23] qcow2: Finalise interface of handle_alloc()

2013-02-13 Thread Kevin Wolf
The interface works completely on a byte granularity now and duplicated parameters are removed. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 29 - block/qcow2.h |5 + 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/block

[Qemu-devel] [RFC PATCH v2 05/23] qcow2: Factor out handle_alloc()

2013-02-13 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 240 +++-- trace-events |1 + 2 files changed, 152 insertions(+), 89 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 5c4b7cc..919cb39 100644 --- a/block

[Qemu-devel] [RFC PATCH v2 20/23] qcow2: Cancel COW when overwritten

2013-02-13 Thread Kevin Wolf
an do better: Just cancel the COW instead of waiting for it and then overwriting the same area with the second write request. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 150 block/qcow2.c | 16 + block/qcow2.h |

[Qemu-devel] [RFC PATCH v2 06/23] qcow2: handle_alloc(): Get rid of nb_clusters parameter

2013-02-13 Thread Kevin Wolf
We already communicate the same information in *bytes. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 19 +++ 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 919cb39..2492235 100644 --- a/block/qcow2

[Qemu-devel] [RFC PATCH v2 10/23] qcow2: Factor out handle_copied()

2013-02-13 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 133 ++--- trace-events |1 + 2 files changed, 94 insertions(+), 40 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 0642ffa..cdbce20 100644 --- a/block

[Qemu-devel] [RFC PATCH v2 04/23] qcow2: Decouple cluster allocation from cluster reuse code

2013-02-13 Thread Kevin Wolf
This moves some code that prepares the allocation of new clusters to where the actual allocation happens. This is the minimum required to be able to move it to a separate function in the next patch. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 35

[Qemu-devel] [RFC PATCH v2 18/23] qcow2: Delay the COW

2013-02-13 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 47 +++ block/qcow2.c | 28 +--- block/qcow2.h | 14 ++ 3 files changed, 86 insertions(+), 3 deletions(-) diff --git a/block/qcow2

[Qemu-devel] [RFC PATCH v2 21/23] qemu-iotests: Another concurrent multicluster allocation case

2013-02-13 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/qemu-iotests/046 | 19 +++ tests/qemu-iotests/046.out | 16 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/tests/qemu-iotests/046 b/tests/qemu-iotests/046 index e0176f4..6c73675 100755 --- a/tests/qemu

[Qemu-devel] [RFC PATCH v2 15/23] qcow2: Allow requests with multiple l2metas

2013-02-13 Thread Kevin Wolf
Instead of expecting a single l2meta, have a list of them. This allows to still have a single I/O request for the guest data, even though multiple l2meta may be needed in order to describe both a COW overwrite and a new cluster allocation (typical sequential write case). Signed-off-by: Kevin Wolf

[Qemu-devel] [RFC PATCH v2 23/23] qcow2: Gather clusters in a looping loop

2013-02-13 Thread Kevin Wolf
te of one cluster with the allocation of the next cluster. Only by avoiding splitting requests this way Delayed COW actually starts improving performance noticably. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 66 ++-- 1 files changed, 30 inser

[Qemu-devel] [RFC PATCH v2 13/23] qcow2: handle_copied(): Implement non-zero host_offset

2013-02-13 Thread Kevin Wolf
Look only for clusters that start at a given physical offset. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 26 ++ 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 5ce2c88..90fe36c 100644 --- a

[Qemu-devel] [RFC PATCH v2 03/23] qcow2: Change handle_dependency to byte granularity

2013-02-13 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 40 block/qcow2.h | 11 +++ 2 files changed, 39 insertions(+), 12 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 0e804ba..a3b2447 100644 --- a/block

[Qemu-devel] [RFC PATCH v2 12/23] qcow2: handle_copied(): Get rid of keep_clusters parameter

2013-02-13 Thread Kevin Wolf
Now *bytes is used to return the length of the area that can be written to without performing an allocation or COW. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 23 +-- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/block/qcow2-cluster.c b/block

[Qemu-devel] [RFC PATCH v2 09/23] qcow2: Clean up handle_alloc()

2013-02-13 Thread Kevin Wolf
Things can be simplified a bit now. No semantic changes. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 110 +++- 1 files changed, 53 insertions(+), 57 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index e32bfe3

[Qemu-devel] [RFC PATCH v2 07/23] qcow2: handle_alloc(): Get rid of keep_clusters parameter

2013-02-13 Thread Kevin Wolf
handle_alloc() is now called with the offset at which the actual new allocation starts instead of the offset at which the whole write request starts, part of which may already be processed. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 44

Re: [Qemu-devel] [PATCH 0/2] block: refuse negative iops and bps values

2013-02-13 Thread Kevin Wolf
oczi (2): > block: use Error in do_check_io_limits() > block: refuse negative iops and bps values > > blockdev.c | 24 ++-- > 1 file changed, 18 insertions(+), 6 deletions(-) Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [RFC PATCH v2 13/23] qcow2: handle_copied(): Implement non-zero host_offset

2013-02-14 Thread Kevin Wolf
Am 13.02.2013 22:17, schrieb Blue Swirl: > On Wed, Feb 13, 2013 at 1:22 PM, Kevin Wolf wrote: >> Look only for clusters that start at a given physical offset. >> >> Signed-off-by: Kevin Wolf >> --- >> block/qcow2-cluster.c | 26 ++ &

Re: [Qemu-devel] [RFC PATCH v2 00/23] qcow2: Delayed COW

2013-02-14 Thread Kevin Wolf
Am 14.02.2013 11:43, schrieb Stefan Hajnoczi: > On Wed, Feb 13, 2013 at 02:21:50PM +0100, Kevin Wolf wrote: >> iozone results with and without this series show significant difference >> for allocating writes: >> >>

Re: [Qemu-devel] [RFC PATCH v2 03/23] qcow2: Change handle_dependency to byte granularity

2013-02-14 Thread Kevin Wolf
On Thu, Feb 14, 2013 at 03:48:51PM +0100, Stefan Hajnoczi wrote: > On Wed, Feb 13, 2013 at 02:21:53PM +0100, Kevin Wolf wrote: > > Signed-off-by: Kevin Wolf > > --- > > block/qcow2-cluster.c | 40 > > block/qcow2.h

Re: [Qemu-devel] [RFC PATCH v2 13/23] qcow2: handle_copied(): Implement non-zero host_offset

2013-02-15 Thread Kevin Wolf
On Thu, Feb 14, 2013 at 09:40:22PM +, Blue Swirl wrote: > On Thu, Feb 14, 2013 at 9:40 AM, Kevin Wolf wrote: > > Am 13.02.2013 22:17, schrieb Blue Swirl: > >> On Wed, Feb 13, 2013 at 1:22 PM, Kevin Wolf wrote: > >>> Look only for clusters that st

Re: [Qemu-devel] [PATCH] iscsi: add iscsi_truncate support

2013-02-15 Thread Kevin Wolf
On Fri, Feb 15, 2013 at 12:54:51PM +0100, Paolo Bonzini wrote: > Il 15/02/2013 12:18, Peter Lieven ha scritto: > >>> > >>> +task = iscsi_readcapacity16_task(iscsilun->iscsi, iscsilun->lun, > >>> + iscsi_readcapacity16_cb, &itask); > >> > >> You can use iscsi_read

Re: [Qemu-devel] [RFC PATCH v2 18/23] qcow2: Delay the COW

2013-02-15 Thread Kevin Wolf
On Fri, Feb 15, 2013 at 02:36:37PM +0100, Stefan Hajnoczi wrote: > On Wed, Feb 13, 2013 at 02:22:08PM +0100, Kevin Wolf wrote: > > /** > > + * true if the request is sleeping in the COW delay and the coroutine > > may > > + * be reentered i

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-18 Thread Kevin Wolf
On Fri, Feb 15, 2013 at 10:16:11PM +0100, Stefan Weil wrote: > It looks like most (but not all) versions of gcc emit built-in code > for ffs() even for compilations without optimisation. I have to provide > additional compiler options (e.g. -fno-builtin-ffs) to get a real > function call. > Only th

[Qemu-devel] [PATCH] main-loop/win32: Fix use of uninitialised variable

2013-02-18 Thread Kevin Wolf
The F18 mingw cross compiler warns on this one. Probably a good idea to fix it. Signed-off-by: Kevin Wolf --- main-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-loop.c b/main-loop.c index 6f52ac3..c9fd77a 100644 --- a/main-loop.c +++ b/main-loop.c @@ -330,7

Re: [Qemu-devel] [PATCH 7/9] gtk: add translation support (v4)

2013-02-19 Thread Kevin Wolf
On Tue, Feb 19, 2013 at 09:30:41AM +0100, Stefan Hajnoczi wrote: > On Mon, Feb 18, 2013 at 05:57:03PM -0600, Anthony Liguori wrote: > > 'de_DE' is only missing: > > > > - Zoom to Fit - Auf Fenstergröße skalieren > > - Grab on Hover - Tastatur automatisch einfangen > > Kevin/Stefan/et al, could

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