From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org, qemu-block@nongnu.org
Cc: Fam Zheng <fam@euphon.net>,
eblake@redhat.com, John Snow <jsnow@redhat.com>,
vsementsov@virtuozzo.com, Kevin Wolf <kwolf@redhat.com>,
Max Reitz <mreitz@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: [Qemu-devel] [RFC PATCH 0/2] bitmaps: add inconsistent bit
Date: Wed, 13 Feb 2019 18:36:16 -0500 [thread overview]
Message-ID: <20190213233618.22484-1-jsnow@redhat.com> (raw)
Allow QEMU to read in bitmaps that have the in-use bit set, for the
purposes of allowing users to clear or reset these bitmaps.
This is chosen in preference to a hard error on load to minimize
impact for a non-critical error, but to force the user or management
utility to acknowledge that the bitmap is no longer viable.
Requires: [PATCH v2 0/6] dirty-bitmaps: deprecate @status field
(Which in turn requires my bitmaps staging branch.)
RFC: This is just for general approach, naming, and API.
I chose NOT to overload the busy predicate so that it would be distinct,
which unfortunately means many more manual checks across blockdev.
- I chose "inconsistent" over "corrupt" to be more literal to the
meaning of the "in-use" bit, but maybe this is overcautious.
- I chose to make the field optional so that it disappears in
normative cases, as the information is only really relevant when
inconsistent=true.
I also have NOT tested this and I didn't verify the saving logic
for what happens if you don't delete or clear the bitmap,
but I'm on PTO the next two days and I wanted this to see daylight.
John Snow (2):
block/dirty-bitmaps: add inconsistent bit
block/dirty-bitmap: implement inconsistent bit
block/dirty-bitmap.c | 34 ++++++++++++++++++++++++++++
block/qcow2-bitmap.c | 42 ++++++++++++++++++-----------------
blockdev.c | 43 ++++++++++++++++++++++++++++++++++++
include/block/dirty-bitmap.h | 3 +++
qapi/block-core.json | 9 ++++++--
5 files changed, 109 insertions(+), 22 deletions(-)
--
2.17.2
next reply other threads:[~2019-02-13 23:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 23:36 John Snow [this message]
2019-02-13 23:36 ` [Qemu-devel] [RFC PATCH 1/2] block/dirty-bitmaps: add inconsistent bit John Snow
2019-02-18 17:46 ` Vladimir Sementsov-Ogievskiy
2019-02-19 0:46 ` John Snow
2019-02-13 23:36 ` [Qemu-devel] [RFC PATCH 2/2] block/dirty-bitmap: implement " John Snow
2019-02-18 18:13 ` Vladimir Sementsov-Ogievskiy
2019-02-18 20:37 ` Eric Blake
2019-02-18 23:48 ` John Snow
2019-02-19 22:00 ` John Snow
2019-02-20 9:05 ` Vladimir Sementsov-Ogievskiy
2019-02-20 13:46 ` Eric Blake
2019-02-18 18:10 ` [Qemu-devel] [RFC PATCH 0/2] bitmaps: add " 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=20190213233618.22484-1-jsnow@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).