From: Vladimir Sementsov-Ogievskiy <vsementsov@parallels.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: famz@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org,
den@parallels.com
Subject: Re: [Qemu-devel] [PATCH v2] persistent dirty bitmap: add QDB file spec.
Date: Fri, 21 Nov 2014 15:56:11 +0300 [thread overview]
Message-ID: <546F366B.6040407@parallels.com> (raw)
In-Reply-To: <20141120113622.GB11224@stefanha-thinkpad.redhat.com>
> The metadata (bitmap
> name, granularity, etc) doesn't need to be stored in the image file
> because management tools must be aware of it anyway.
What tools do you mean? In my opinion dirty bitmap should exist as a
separate object. If it exists, it should be loaded with it's drive image
and it should be maintained by qemu (loaded and enabled as a
BdrvDirtyBitmap). If we use qcow2 format for dirty bitmaps, we can store
metadata using header extension..
Also snapshots may be used to store several bitmaps in case when server
shutdowns during backup and we need to store both current active bitmap
and it's snapshot used by backup.
Best regards,
Vladimir
On 20.11.2014 14:36, Stefan Hajnoczi wrote:
> On Thu, Nov 20, 2014 at 01:41:14PM +0300, Vladimir Sementsov-Ogievskiy wrote:
>> Also, it may be better to make this as qcow2 extension. And bitmap will be
>> saved in separate qcow2 file, which will contain only the bitmap(s) and no
>> other data (no disk, no snapshots).
> I think you are on to something with the idea of making the persistent
> dirty bitmap itself a disk image.
>
> That way drive-mirror and other commands can be used to live migrate the
> dirty bitmap along with the guest's disks. This allows both QEMU and
> management tools to reuse existing code.
>
> (We may need to allow multiple block jobs per BlockDriverState to make
> this work but in theory that can be done.)
>
> There is a constraint if we want to get live migration for free: The
> bitmap contents must be accessible with bdrv_read() and
> bdrv_get_block_status() to skip zero regions.
>
> Putting the dirty bitmap into its own data structure in qcow2 and not
> accessible as a BlockDriverState bdrv_read() means custom code must be
> written to migrate the dirty bitmap.
>
> So I suggest putting the bitmap contents into a disk image that can be
> accessed as a BlockDriverState with bdrv_read(). The metadata (bitmap
> name, granularity, etc) doesn't need to be stored in the image file
> because management tools must be aware of it anyway.
>
> The only thing besides the data that really needs to be stored is the
> up-to-date flag to decide whether this dirty bitmap was synced cleanly.
> A much simpler format would do for that.
>
> Stefan
next prev parent reply other threads:[~2014-11-21 12:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <545CB9CE.9000302@parallels.com>
[not found] ` <20141108071919.GB4940@fam-t430.nay.redhat.com>
[not found] ` <54607427.8040404@parallels.com>
[not found] ` <5462327C.5080704@redhat.com>
[not found] ` <5464B80E.6060201@parallels.com>
[not found] ` <546A88DD.10006@redhat.com>
2014-11-18 10:54 ` [Qemu-devel] [PATCH v6 00/10] block: Incremental backup series Vladimir Sementsov-Ogievskiy
2014-11-18 13:09 ` Vladimir Sementsov-Ogievskiy
2014-11-18 14:41 ` Vladimir Sementsov-Ogievskiy
2014-11-18 16:08 ` John Snow
2014-11-19 6:25 ` Denis V. Lunev
2014-11-20 10:34 ` [Qemu-devel] [PATCH v2] persistent dirty bitmap: add QDB file spec Vladimir Sementsov-Ogievskiy
2014-11-20 10:41 ` Vladimir Sementsov-Ogievskiy
2014-11-20 11:36 ` Stefan Hajnoczi
2014-11-21 10:27 ` Vladimir Sementsov-Ogievskiy
2014-11-21 16:55 ` Stefan Hajnoczi
2014-11-24 9:19 ` Vladimir Sementsov-Ogievskiy
2014-11-25 17:58 ` Vladimir Sementsov-Ogievskiy
2014-11-28 13:28 ` Vladimir Sementsov-Ogievskiy
2014-12-01 11:02 ` Stefan Hajnoczi
2014-11-21 12:56 ` Vladimir Sementsov-Ogievskiy [this message]
2014-11-21 0:24 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=546F366B.6040407@parallels.com \
--to=vsementsov@parallels.com \
--cc=den@parallels.com \
--cc=famz@redhat.com \
--cc=jsnow@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).