This patch adds sync modes on top of the work that Stefan Hajnoczi has done.

These patches apply on kevin/block with 
'[PATCH] block: add drive_backup HMP command' also applied.

Hopefully all is in order as this is my first QEMU patch.  Many thanks to 
Stephan and Fam Zheng for their help.

I tried my best to do a reasonable set of tests but feel that especially
SYNC_MODE_NONE could be better or perhaps that would be out of the scope
of the test framework.  Suggestions welcome.

Ian Main (2):
  Implement sync modes for drive-backup.
  Add tests for sync modes 'TOP' and 'NONE'

 block/backup.c             | 90 ++++++++++++++++++++++++++++++----------------
 blockdev.c                 | 25 ++++++++-----
 include/block/block_int.h  |  4 ++-
 qapi-schema.json           |  4 +++
 qmp-commands.hx            |  1 +
 tests/qemu-iotests/055     | 63 ++++++++++++++++++++++++++++++--
 tests/qemu-iotests/055.out |  4 +--
 tests/qemu-iotests/group   |  2 +-
 8 files changed, 148 insertions(+), 45 deletions(-)

-- 
1.8.1.4


Reply via email to