From: Eric Blake <eblake@redhat.com>
To: Peter Krempa <pkrempa@redhat.com>, qemu-devel@nongnu.org
Cc: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
John Snow <jsnow@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-block@nongnu.org
Subject: Re: [PATCH 2/2] migration: dirty-bitmap: Allow control of bitmap persistence on destination
Date: Thu, 4 Feb 2021 13:15:25 -0600 [thread overview]
Message-ID: <00322937-0aaa-271f-5e62-f988f603a20f@redhat.com> (raw)
In-Reply-To: <3afd4b353cf75c01c9260ca65e073d897e8c42d2.1612356810.git.pkrempa@redhat.com>
On 2/3/21 7:00 AM, Peter Krempa wrote:
> Bitmap's source persistence is transported over the migration stream and
> the destination mirrors it. In some cases the destination might want to
> persist bitmaps which are not persistent on the source (e.g. the result
> of merge of bitmaps from a number of layers on the source when migrating
> into a squashed image) but currently it would need to create another set
> of persistent bitmaps and merge them.
>
> This adds 'dest-persistent' optional property to
> 'BitmapMigrationBitmapAlias' which when present overrides the bitmap
> presence state from the source.
persistance
>
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> ---
> migration/block-dirty-bitmap.c | 30 +++++++++++++++++++++++++++++-
> qapi/migration.json | 7 ++++++-
> 2 files changed, 35 insertions(+), 2 deletions(-)
>
> +++ b/qapi/migration.json
> @@ -533,12 +533,17 @@
> # @alias: An alias name for migration (for example the bitmap name on
> # the opposite site).
> #
> +# @dest-persistent: If populated set the bitmap will be turned persistent
> +# or transient depending on this parameter.
s/populated set/present,/
> +# (since 6.0)
> +#
> # Since: 5.2
> ##
> { 'struct': 'BitmapMigrationBitmapAlias',
> 'data': {
> 'name': 'str',
> - 'alias': 'str'
> + 'alias': 'str',
> + '*dest-persistent': 'bool'
> } }
>
> ##
>
The grammar fix is trivial, so
Reviewed-by: Eric Blake <eblake@redhat.com>
I see there is discussion over whether this is the best approach, but it
makes sense to me. Unless there's a good reason why something else
would be better, I'm probably going to queue this through my dirty
bitmaps tree for a pull request sometime next week.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2021-02-04 19:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 12:59 [PATCH 0/2] migration: dirty-bitmap: Allow control of bitmap persistence on destination Peter Krempa
2021-02-03 12:59 ` [PATCH 1/2] migration: dirty-bitmap: Convert alias map inner members to a struct Peter Krempa
2021-02-04 19:12 ` Eric Blake
2021-02-05 7:04 ` Vladimir Sementsov-Ogievskiy
2021-02-03 13:00 ` [PATCH 2/2] migration: dirty-bitmap: Allow control of bitmap persistence on destination Peter Krempa
2021-02-03 13:23 ` Vladimir Sementsov-Ogievskiy
2021-02-03 13:27 ` Peter Krempa
2021-02-03 13:39 ` Peter Krempa
2021-02-03 14:14 ` Vladimir Sementsov-Ogievskiy
2021-02-04 19:15 ` Eric Blake [this message]
2021-02-05 8:01 ` Vladimir Sementsov-Ogievskiy
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=00322937-0aaa-271f-5e62-f988f603a20f@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=jsnow@redhat.com \
--cc=pkrempa@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.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).