qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Offline manipulation of Dirty Bitmaps by qemu-img
@ 2019-12-05 22:37 John Snow
  2019-12-06  9:49 ` [libvirt] " Peter Krempa
  2019-12-06 10:37 ` Vladimir Sementsov-Ogievskiy
  0 siblings, 2 replies; 4+ messages in thread
From: John Snow @ 2019-12-05 22:37 UTC (permalink / raw)
  To: Qemu-block
  Cc: Vladimir Sementsov-Ogievskiy, qemu-devel, libvirt-list,
	Nir Soffer, Denis V. Lunev

This has come up in the past, and I believe we discussed this at KVM
Forum, too:

There have been requests from oVirt (via Nir Soffer) to add some offline
bitmap manipulation functionality. In the past, our stance has generally
been "Use QEMU without an accelerator, and use QMP to manipulate the
images."

We like this for a few reasons:

1. It keeps bitmap management code tightly centralized
2. It allows for the full suite of bitmap manipulations in either
offline or online mode with one tool
3. We wouldn't have to write new code.
4. Or design new CLIs and duplicate our existing work.
5. Or write even more tests.

However, tools like oVirt may or may not be fully equipped to launch
QEMU in this context, and there is always a desire for qemu-img to be
able to "do more", so existing management suites could extend
functionality more easily.

(Or so I am imagining.)

I am still leaning heavily against adding any more CLI commands or
options to qemu-img right now. Even if we do add some of the fundamental
ones like "add" or "remove", it seems only a matter of time before we
have to add "clear", "merge", etc. Is this just a race to code duplication?

On the other hand, one of the other suggestions is to have qemu-img
check --repair optionally delete corrupted bitmaps. I kind of like this
idea: it's a buyer beware operation that might make management layers
unhappy, but then again ... repair is always something that could make
things worse.

Plus, if you manage to corrupt bitmaps badly enough that they can't even
be parsed, you might need a heavyweight repair operation.

Nir, do you think that'd be sufficient for your needs for now, or would
you still like to see more granular offline management?

--js



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-06 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-05 22:37 Offline manipulation of Dirty Bitmaps by qemu-img John Snow
2019-12-06  9:49 ` [libvirt] " Peter Krempa
2019-12-06 10:37 ` Vladimir Sementsov-Ogievskiy
2019-12-06 19:07   ` John Snow

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).