Skip to content

external backup api

Vladimir Sementsov-Ogievskiy qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 49 repliesIn review
  2. v1 RFC1 patch 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6block dirty bitmap: add next_zero functionblock/dirty-bitmap.c include/block/dirty-bitmap.h include/qemu/hbitmap.h +1 more+41 -00 replies
2/6qmp: add query-block-dirty-bitmap-rangesblock/dirty-bitmap.c blockdev.c include/block/dirty-bitmap.h +2 more+211 -07 replies
3/6iotests: test query-block-dirty-bitmap-rangestests/qemu-iotests/150 tests/qemu-iotests/150.out tests/qemu-iotests/group+110 -00 replies
4/6qapi: add qmp commands for some dirty bitmap functionsblockdev.c qapi/block-core.json qmp-commands.hx+172 -00 replies
5/6qapi: make block-dirty-bitmap-create-successor transaction-ableqapi-schema.json+3 -10 replies
6/6iotests: test external backup apitests/qemu-iotests/151 tests/qemu-iotests/151.out tests/qemu-iotests/group+85 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] external backup api

Hi all.

These series which aims to add external backup api. This is needed to allow backup software use our dirty bitmaps.

Vmware and Parallels Cloud Server have this feature.

There are three things are done:
- add query-block-dirty-bitmap-ranges qmp command
- add qmp commands for dirty-bitmap functions: create_successor, abdicate, reclaim.
- make create-successor command transaction-able

Then, external backup should be done like this:

1.  qmp transaction {
        external-snapshot
        bitmap-create-successor
    }

2. qmp query frozen bitmap, not acquiring aio context.

3. do external backup, using snapshot and bitmap

4. if (success backup)
qmp bitmap-abdicate
else
qmp bitmap-reclaime

5. qmp merge snapshot

v2: a lot of additions and changes, no sense to compare with v1

Vladimir Sementsov-Ogievskiy (6):
block dirty bitmap: add next_zero function
qmp: add query-block-dirty-bitmap-ranges
iotests: test query-block-dirty-bitmap-ranges
qapi: add qmp commands for some dirty bitmap functions
qapi: make block-dirty-bitmap-create-successor transaction-able
iotests: test external backup api

 block/dirty-bitmap.c         |  60 ++++++++++++++++++++++
 blockdev.c                   | 113 +++++++++++++++++++++++++++++++++++++++++
 include/block/dirty-bitmap.h |   9 ++++
 include/qemu/hbitmap.h       |   8 +++
 qapi-schema.json             |   4 +-
 qapi/block-core.json         |  90 +++++++++++++++++++++++++++++++++
 qmp-commands.hx              | 118 +++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/150       |  88 ++++++++++++++++++++++++++++++++
 tests/qemu-iotests/150.out   |  21 ++++++++
 tests/qemu-iotests/151       |  77 ++++++++++++++++++++++++++++
 tests/qemu-iotests/151.out   |   7 +++
 tests/qemu-iotests/group     |   2 +
 util/hbitmap.c               |  26 ++++++++++
 13 files changed, 622 insertions(+), 1 deletion(-)
 create mode 100755 tests/qemu-iotests/150
 create mode 100644 tests/qemu-iotests/150.out
 create mode 100755 tests/qemu-iotests/151
 create mode 100644 tests/qemu-iotests/151.out
Signature · 1 line
1.8.3.1