[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 0/6] Efficient VM backup for qemu
From: |
Dietmar Maurer |
Subject: |
[Qemu-devel] [PATCH v5 0/6] Efficient VM backup for qemu |
Date: |
Thu, 21 Feb 2013 12:27:46 +0100 |
This series provides a way to efficiently backup VMs.
* Backup to a single archive file
* Backup contain all data to restore VM (full backup)
* Do not depend on storage type or image format
* Avoid use of temporary storage
* store sparse images efficiently
The file docs/backup.txt contains more details.
Changes since v1:
* fix spelling errors
* move BackupInfo from BDS to BackupBlockJob
* introduce BackupDriver to allow more than one backup format
* vma: add suport to store vmstate (size is not known in advance)
* add ability to store VM state
Changes since v2:
* BackupDriver: remove cancel_cb
* use enum for BackupFormat
* vma: use bdrv_open instead of bdrv_file_open
* vma: fix aio, use O_DIRECT
* backup one drive after another (try to avoid high load)
Changes since v3:
* move reviewer info from commit messages to cover-letter
* remove 'RFC' from log headers and file names
* removed comment about slow qcow2 snapshot bug
* fix spelling errors
* fixed copyright
* change 'backupfile' parameter name to 'backup-file'
* change 'config-filename' parameter name to 'config-file'
* add documentation for 'devlist' parameter.
* rename backup_cancel to backup-cancel
Changes since v4:
* vma create: write verbose output to stderr (not stdout)
* backup.c: use rwlock instead of sleep, remove backup_in_progress_count
* BackupDriver: remove '_cb' suffix
* include cleanups suggested by Stefan
* use CHAR_BIT instead of magic number '8'
* implemented bdrv_co_is_allocated_above() - disabled for now because
it actually slows down backup speed by 15%
* extend regression tests to test unallocated regions
Dietmar Maurer (6):
add documenation for new backup framework
add basic backup support to block driver
add backup related monitor commands
introduce new vma archive format
add regression tests for backup
add vm state to backups
Makefile | 3 +-
Makefile.objs | 1 +
backup.c | 355 +++++++++++++++++
backup.h | 45 +++
block.c | 71 ++++-
blockdev.c | 617 ++++++++++++++++++++++++++++++
docs/backup.txt | 116 ++++++
docs/specs/vma_spec.txt | 24 ++
hmp-commands.hx | 31 ++
hmp.c | 64 ++++
hmp.h | 3 +
include/block/block.h | 2 +
include/block/blockjob.h | 10 +
monitor.c | 7 +
qapi-schema.json | 98 +++++
qmp-commands.hx | 27 ++
tests/Makefile | 11 +-
tests/backup-test.c | 529 ++++++++++++++++++++++++++
vma-reader.c | 799 +++++++++++++++++++++++++++++++++++++++
vma-writer.c | 940 ++++++++++++++++++++++++++++++++++++++++++++++
vma.c | 561 +++++++++++++++++++++++++++
vma.h | 145 +++++++
22 files changed, 4450 insertions(+), 9 deletions(-)
create mode 100644 backup.c
create mode 100644 backup.h
create mode 100644 docs/backup.txt
create mode 100644 docs/specs/vma_spec.txt
create mode 100644 tests/backup-test.c
create mode 100644 vma-reader.c
create mode 100644 vma-writer.c
create mode 100644 vma.c
create mode 100644 vma.h
--
1.7.2.5
- [Qemu-devel] [PATCH v5 0/6] Efficient VM backup for qemu,
Dietmar Maurer <=
- [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Dietmar Maurer, 2013/02/21
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Markus Armbruster, 2013/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Eric Blake, 2013/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Dietmar Maurer, 2013/02/27
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Markus Armbruster, 2013/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Dietmar Maurer, 2013/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Markus Armbruster, 2013/02/28
- Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands, Dietmar Maurer, 2013/02/28
[Qemu-devel] [PATCH v5 1/6] add documenation for new backup framework, Dietmar Maurer, 2013/02/21