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

2013-07-05 Thread Federico Simoncelli
This patch adds the optional file entry to the query-block output. The value is a json-object representing the information about the underlying file or device (when present). Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- block/qapi.c |7 +++ qapi-schema.json

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

2013-06-28 Thread Federico Simoncelli
This patch adds the optional file entry to the query-block output. The value is a json-object representing the information about the underlying file or device (when present). Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- block/qapi.c |9 - qapi-schema.json

[Qemu-devel] [PATCH] block: add apparent-size to query-block

2013-06-21 Thread Federico Simoncelli
This patch adds the apparent-size entry to the query-block output. The value represents the apparent size in bytes of the image, e.g. file size (including the blocks not yet allocated) or block device size. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- block/qapi.c |3

[Qemu-devel] [PATCHv4 2/2] qemu-img: add json output option to the check command

2013-01-28 Thread Federico Simoncelli
This option --output=[human|json] makes qemu-img check output a human or JSON representation at the choice of the user. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qapi-schema.json | 46 +++ qemu-img-cmds.hx |4 +- qemu-img.c | 232

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

2013-01-28 Thread 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. Signed-off-by: Federico Simoncelli fsimo...@redhat.com

[Qemu-devel] [PATCHv3 1/2] qemu-img: find the highest offset in use during check

2013-01-21 Thread Federico Simoncelli
This patch adds the support for reporting the highest offset in use by an image. This is particularly useful after a conversion (or a rebase) where the destination is a block device in order to find the actual amount of space in use. Signed-off-by: Federico Simoncelli fsimo...@redhat.com

[Qemu-devel] [PATCHv3 2/2] qemu-img: add json output option to the check command

2013-01-21 Thread Federico Simoncelli
This option --output=[human|json] make qemu-img check output an human or JSON representation at the choice of the user. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qapi-schema.json | 46 +++ qemu-img-cmds.hx |4 +- qemu-img.c | 232

[Qemu-devel] [PATCH] qemu-img: find the highest offset in use during check

2012-12-10 Thread Federico Simoncelli
This patch adds the support for reporting the highest offset in use by an image. This is particularly useful after a conversion (or a rebase) where the destination is a block device in order to find the actual amount of space in use. Signed-off-by: Federico Simoncelli fsimo...@redhat.com

[Qemu-devel] [PATCHv2 1/2] qemu-img: find the highest offset in use during check

2012-12-10 Thread Federico Simoncelli
This patch adds the support for reporting the highest offset in use by an image. This is particularly useful after a conversion (or a rebase) where the destination is a block device in order to find the actual amount of space in use. Signed-off-by: Federico Simoncelli fsimo...@redhat.com

[Qemu-devel] [PATCH 2/2] qemu-img: add json output option to the check command

2012-12-10 Thread Federico Simoncelli
This option --output=[human|json] make qemu-img check output an human or JSON representation at the choice of the user. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qapi-schema.json | 38 + qemu-img-cmds.hx |4 +- qemu-img.c | 246

Re: [Qemu-devel] [PATCH 4/7] block: close unused image files at the end of streaming

2012-04-06 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: qemu-devel@nongnu.org Cc: Marcelo Tosatti mtosa...@redhat.com, Federico Simoncelli fsimo...@redhat.com Sent: Thursday, April 5, 2012 5:42:58 PM Subject: [PATCH 4/7] block: close unused image files at the end

[Qemu-devel] [PATCH v3] qapi: add c_fun to escape function names

2012-03-20 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- scripts/qapi-commands.py | 14 +++--- scripts/qapi-types.py|4 ++-- scripts/qapi-visit.py|4 ++-- scripts/qapi.py |5 - 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/scripts

[Qemu-devel] [PATCH] qapi: escaping the dots in c_var

2012-03-15 Thread Federico Simoncelli
This allows qapi commands and types with dots. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- scripts/qapi.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 6e05469..4090c55 100644 --- a/scripts/qapi.py +++ b/scripts

Re: [Qemu-devel] [PATCH v4 10/10] Add the drive-reopen command

2012-03-14 Thread Federico Simoncelli
- Original Message - From: Kevin Wolf kw...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: Eric Blake ebl...@redhat.com, qemu-devel@nongnu.org, stefa...@linux.vnet.ibm.com, lcapitul...@redhat.com, Paolo Bonzini pbonz...@redhat.com, Markus Armbruster arm...@redhat.com

Re: [Qemu-devel] [PATCH v4 10/10] Add the drive-reopen command

2012-03-13 Thread Federico Simoncelli
] [PATCH v4 10/10] Add the drive-reopen command On 03/06/2012 10:56 AM, Paolo Bonzini wrote: From: Federico Simoncelli fsimo...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com ## +# @drive-reopen +# +# Assigns a new

[Qemu-devel] [PATCH] Add the drive-reopen command

2012-03-05 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c | 40 +++- hmp-commands.hx | 16 hmp.c| 11 +++ hmp.h|1 + qapi-schema.json | 22 ++ 5 files changed

[Qemu-devel] [PATCH] add reopen to blockdev-transaction

2012-03-01 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c |8 qapi-schema.json | 12 qmp-commands.hx |6 +- 3 files changed, 25 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index 56da5c9..36fe07c 100644 --- a/blockdev.c

[Qemu-devel] [PATCHv3] Add blkmirror block driver

2012-02-29 Thread Federico Simoncelli
Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c | 255 cutils.c | 30

Re: [Qemu-devel] [PATCHv3] Add blkmirror block driver

2012-02-29 Thread Federico Simoncelli
- Original Message - From: Federico Simoncelli fsimo...@redhat.com To: qemu-devel@nongnu.org Cc: mtosa...@redhat.com, kw...@redhat.com, pbonz...@redhat.com, stefa...@gmail.com, Federico Simoncelli fsimo...@redhat.com Sent: Wednesday, February 29, 2012 1:28:21 PM Subject: [PATCHv3

[Qemu-devel] [PATCHv4] Add blkmirror block driver

2012-02-29 Thread Federico Simoncelli
Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c | 278

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Tuesday, February 28, 2012 4:47:48 PM Subject: Re: [Qemu-devel] Live Block Migration using Mirroring

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: Stefan Hajnoczi stefa...@gmail.com, qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Tuesday, February 28, 2012 6:36:57 PM Subject: Re: [Qemu-devel] Live

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: qemu-devel@nongnu.org Sent: Tuesday, February 28, 2012 7:02:40 PM Subject: Re: [Qemu-devel] Live Block Migration using Mirroring Il 28/02/2012 18:46, Federico Simoncelli ha scritto: Thank you for getting

Re: [Qemu-devel] [PATCH 1/2 v2] Add blkmirror block driver

2012-02-27 Thread Federico Simoncelli
- Original Message - From: Luiz Capitulino lcapitul...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, mtosa...@redhat.com, pbonz...@redhat.com, kw...@redhat.com, arm...@redhat.com Sent: Friday, February 24, 2012 7:17:22 PM Subject: Re: [PATCH 1/2

Re: [Qemu-devel] [PATCH 2/2 v2] Add the blockdev-reopen and blockdev-migrate commands

2012-02-27 Thread Federico Simoncelli
- Original Message - From: Luiz Capitulino lcapitul...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, mtosa...@redhat.com, pbonz...@redhat.com, kw...@redhat.com, arm...@redhat.com Sent: Friday, February 24, 2012 8:01:43 PM Subject: Re: [PATCH 2/2

Re: [Qemu-devel] drive transactions (was Re: [PATCH 2/2 v2] Add the blockdev-reopen and blockdev-migrate commands)

2012-02-27 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Luiz Capitulino lcapitul...@redhat.com Cc: Federico Simoncelli fsimo...@redhat.com, kw...@redhat.com, mtosa...@redhat.com, qemu-devel@nongnu.org, arm...@redhat.com, Jeff Cody jc...@redhat.com Sent: Monday, February 27

Re: [Qemu-devel] drive transactions (was Re: [PATCH 2/2 v2] Add the blockdev-reopen and blockdev-migrate commands)

2012-02-27 Thread Federico Simoncelli
- Original Message - From: Anthony Liguori anth...@codemonkey.ws To: Federico Simoncelli fsimo...@redhat.com Cc: Paolo Bonzini pbonz...@redhat.com, kw...@redhat.com, arm...@redhat.com, Jeff Cody jc...@redhat.com, mtosa...@redhat.com, qemu-devel@nongnu.org, Luiz Capitulino lcapitul

[Qemu-devel] [PATCH 1/2] Add blkmirror block driver

2012-02-24 Thread Federico Simoncelli
From: Marcelo Tosatti mtosa...@redhat.com Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c | 247

[Qemu-devel] [PATCH 2/2] Add the blockdev-reopen and blockdev-migrate commands

2012-02-24 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- block/blkmirror.c |2 +- blockdev.c| 109 +++-- hmp-commands.hx | 36 + hmp.c | 30 ++ hmp.h |2 + qapi-schema.json

Re: [Qemu-devel] [PATCH 2/2] Add the blockdev-reopen and blockdev-migrate commands

2012-02-24 Thread Federico Simoncelli
- Original Message - From: Kevin Wolf kw...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, Marcelo Tosatti mtosa...@redhat.com, lcapitul...@redhat.com, Paolo Bonzini pbonz...@redhat.com, Markus Armbruster arm...@redhat.com Sent: Friday, February 24

[Qemu-devel] [PATCH 1/2 v2] Add blkmirror block driver

2012-02-24 Thread Federico Simoncelli
From: Marcelo Tosatti mtosa...@redhat.com Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c | 247

[Qemu-devel] [PATCH 2/2 v2] Add the blockdev-reopen and blockdev-migrate commands

2012-02-24 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c | 107 -- hmp-commands.hx | 38 +++ hmp.c| 24 hmp.h|2 + qapi-schema.json | 54

Re: [Qemu-devel] [PATCH 1/2 v2] Add blkmirror block driver

2012-02-24 Thread Federico Simoncelli
- Original Message - From: Eric Blake ebl...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com, arm...@redhat.com, lcapitul...@redhat.com, pbonz...@redhat.com Sent: Friday, February 24, 2012 6:02:36 PM Subject

Re: [Qemu-devel] [PATCH 3/3] Add nocreate option to snapshot_blkdev

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com Cc: Federico Simoncelli fsimo...@redhat.com, kw...@redhat.com, mtosa...@redhat.com, qemu-devel@nongnu.org Sent: Thursday, February 23, 2012 8:38:55 AM Subject: Re: [PATCH 3/3] Add nocreate option to snapshot_blkdev On 02

Re: [Qemu-devel] [PATCH 2/3] Update the blkmirror block driver

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 8:18:28 AM Subject: Re: [PATCH 2/3] Update the blkmirror block driver On 02/22

Re: [Qemu-devel] [PATCH 3/3] Add nocreate option to snapshot_blkdev

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: kw...@redhat.com, mtosa...@redhat.com, qemu-devel@nongnu.org Sent: Thursday, February 23, 2012 10:48:59 AM Subject: Re: [PATCH 3/3] Add nocreate option to snapshot_blkdev

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 4:47:38 PM Subject: Re: [Qemu-devel] Live Block Migration using Mirroring

Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 5:14:09 PM Subject: Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 5:18:41 PM Subject: Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 5:28:23 PM Subject: Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com Sent: Thursday, February 23, 2012 5:35:23 PM Subject: Re: [Qemu-devel] Live Block Migration using Mirroring

[Qemu-devel] Live Block Migration using Mirroring

2012-02-22 Thread Federico Simoncelli
Hi, recently I've been working on live block migration combining the live snapshots and the blkmirror patch sent by Marcelo Tosatti few months ago. The design is summarized at this url as Mirrored-Snapshot: http://www.ovirt.org/wiki/Features/Design/StorageLiveMigration The design assumes that

[Qemu-devel] [PATCH 2/3] Update the blkmirror block driver

2012-02-22 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- block/blkmirror.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/block/blkmirror.c b/block/blkmirror.c index 1c02710..1cfd2fb 100644 --- a/block/blkmirror.c +++ b/block/blkmirror.c

[Qemu-devel] [PATCH 3/3] Add nocreate option to snapshot_blkdev

2012-02-22 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c | 14 -- hmp-commands.hx | 16 ++-- hmp.c|4 +++- qapi-schema.json |8 +++- qmp-commands.hx |2 +- 5 files changed, 29 insertions(+), 15 deletions(-) diff --git

[Qemu-devel] [PATCH 1/3] Add blkmirror block driver

2012-02-22 Thread Federico Simoncelli
From: Marcelo Tosatti mtosa...@redhat.com Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c | 282 docs/blkmirror.txt | 15 +++ 3 files

Re: [Qemu-devel] [vdsm] oVirt Live Snapshots

2012-02-02 Thread Federico Simoncelli
- Original Message - From: Shu Ming shum...@linux.vnet.ibm.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, libvir-l...@redhat.com, VDSM Project Development vdsm-de...@lists.fedorahosted.org, Dave Allan dal...@redhat.com, Eric Blake ebl...@redhat.com Sent

[Qemu-devel] oVirt Live Snapshots

2012-01-30 Thread Federico Simoncelli
Hi, oVirt, and more specifically VDSM, is currently implementing the live snapshot feature using the API/commands provided by libvirt and qemu. It would be great if you could review the design and the current open issues at: http://ovirt.org/wiki/Live_Snapshots Thank you, -- Federico

Re: [Qemu-devel] [PATCH] qemu: new option for snapshot_blkdev to avoid image creation

2011-10-11 Thread Federico Simoncelli
- Original Message - From: Dor Laor dl...@redhat.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, aba...@redhat.com, Kevin Wolf kw...@redhat.com Sent: Friday, October 7, 2011 12:45:06 AM Subject: Re: [Qemu-devel] [PATCH] qemu: new option for snapshot_blkdev

Re: [Qemu-devel] New option for snapshot_blkdev to avoid image creation

2011-10-04 Thread Federico Simoncelli
- Original Message - From: Stefan Hajnoczi stefa...@gmail.com To: Federico Simoncelli fsimo...@redhat.com Cc: qemu-devel@nongnu.org, aba...@redhat.com, dl...@redhat.com Sent: Tuesday, October 4, 2011 9:33:48 AM Subject: Re: [Qemu-devel] New option for snapshot_blkdev to avoid image

[Qemu-devel] New option for snapshot_blkdev to avoid image creation

2011-10-03 Thread Federico Simoncelli
In some situations might be useful to let qemu use an image that was prepared for a live snapshot. The advantage is that creating the snapshot file outside of the qemu process we can use the whole range of options provided by the format (eg for qcow2: encryption, cluster_size and preallocation).

[Qemu-devel] [PATCH] qemu: new option for snapshot_blkdev to avoid image creation

2011-10-03 Thread Federico Simoncelli
Add the new option [-n] for snapshot_blkdev to avoid the image creation. The file provided as [new-image-file] is considered as already initialized and will be used after passing a check for the backing file. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c | 54

[Qemu-devel] [PATCHv4] qemu-img: Add cache command line option

2011-06-20 Thread Federico Simoncelli
the storage within certain timeouts is critical. This patch adds the option to choose a cache method when writing disk images. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qemu-img-cmds.hx |6 ++-- qemu-img.c | 80 +- 2 files

[Qemu-devel] [PATCHv3] qemu-img: Add cache command line option

2011-06-16 Thread Federico Simoncelli
the storage within certain timeouts is critical. This patch adds the option to choose a cache method when writing disk images. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qemu-img-cmds.hx |6 ++-- qemu-img.c | 80 +- 2 files

Re: [Qemu-devel] [PATCH] qemu-img: Add cache command line option

2011-06-16 Thread Federico Simoncelli
- Original Message - From: Christoph Hellwig h...@lst.de To: Federico Simoncelli fsimo...@redhat.com Cc: k...@vger.kernel.org, kw...@redhat.com, qemu-devel@nongnu.org, a...@redhat.com Sent: Thursday, June 16, 2011 4:28:09 PM Subject: Re: [Qemu-devel] [PATCH] qemu-img: Add cache

[Qemu-devel] [PATCH] qemu-img: Add cache command line option

2011-06-15 Thread Federico Simoncelli
the storage within certain timeouts is critical. This patch adds the option to choose a cache method when writing disk images. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qemu-img.c | 81 ++- 1 files changed, 68 insertions(+), 13

[Qemu-devel] [PATCHv2] qemu-img: Add cache command line option

2011-06-15 Thread Federico Simoncelli
the storage within certain timeouts is critical. This patch adds the option to choose a cache method when writing disk images. Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- qemu-img.c | 80 ++- 1 files changed, 67 insertions(+), 13