From: John Snow <jsnow@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>
Cc: Markus Armbruster <armbru@redhat.com>,
Eric Blake <eblake@redhat.com>, Kevin Wolf <kwolf@redhat.com>,
Fam Zheng <fam@euphon.net>, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] block/dirty-bitmap: Documentation and Comment fixups
Date: Fri, 1 Feb 2019 20:01:20 -0500 [thread overview]
Message-ID: <67cd0ccf-a9ce-9a72-0676-1ab6a33a7e03@redhat.com> (raw)
In-Reply-To: <bd72a7c8-e283-dd3a-66e8-ba50873a8717@virtuozzo.com>
On 1/31/19 3:29 AM, Vladimir Sementsov-Ogievskiy wrote:
>
> About @frozen and @locked, we can also note that they can't be exported through NBD.
> We can summarize, that @frozen and @locked means that user can't use them in any
> command, and the only option is to list them. However even info->count information
> should not be considered as something meaningful, as bitmaps are under some operations.
> And we can also use same paragraph for @frozen and @locked, as a first step to @frozen
> deprecation.
There's a subtle difference in the two, namely that:
(1) Frozen may or may not record new writes, but they don't "show up"
until after the operation is over, because it's using a second bitmap as
a temporary buffer.
(2) Locked may or may not record new writes *immediately*.
Regardless, I'm realizing that for both Frozen and Locked bitmaps we
want to allow users to know if the bitmap is recording or not. (And
possibly if there is a temporary write cache or not, but maybe it's not
important.)
Maybe we want two new fields on query:
Recording/Enabled: [True | False]
Busy/Locked: [True | False] (or "Locked)
which will then deprecate the status field. This doesn't manage to
communicate the write cache nuance, but maybe we don't need to.
(It also doesn't help elucidate whether or not the successor is
active/disabled, but even for migration once the guest has started, the
successors are always enabled, right?)
Thoughts?
next prev parent reply other threads:[~2019-02-02 1:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 1:01 [Qemu-devel] [PATCH] block/dirty-bitmap: Documentation and Comment fixups John Snow
2019-01-31 3:41 ` Eric Blake
2019-01-31 8:29 ` Vladimir Sementsov-Ogievskiy
2019-02-01 22:49 ` John Snow
2019-02-02 1:01 ` John Snow [this message]
2019-02-11 18:20 ` 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=67cd0ccf-a9ce-9a72-0676-1ab6a33a7e03@redhat.com \
--to=jsnow@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=fam@euphon.net \
--cc=kwolf@redhat.com \
--cc=mreitz@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).