Re: [libvirt] [PATCH v2] qemu: enable user-defined cache bypassing while invoking

2016-08-26 Thread Rudy Zhang
.type = VSH_OT_STRING, @@ -404,6 +414,8 @@ cmdSnapshotCreateAs(vshControl *ctl, const vshCmd *cmd) flags |= VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC; if (vshCommandOptBool(cmd, "live")) flags |= VIR_DOMAIN_SNAPSHOT_CREATE_LIVE; +if (vshCommandOptBool(cmd, "

Re: [libvirt] [RFC PATCH 0/4] Add new function about block backup

2016-06-15 Thread Rudy Zhang
On 16/6/9 下午7:22, Maxim Nestratov wrote: 08.06.2016 9:21, Rudy Zhang пишет: Add new function about block backup, it supports the drive-backup function in qemu, it supports three modes: full, top, incremental. How to use it? As usual, we must do the full backup at first, if it's successfull

[libvirt] [PATCH 1/4] Introduce virDomainBlockBackup API

2016-06-08 Thread Rudy Zhang
For Backuping the disk image. It supports tree backup mode: full, top, incremental. Incremental backup mode must do full or top backup first, and it exists dirty bitmap to trace io. Signed-off-by: longyou --- docs/apibuild.py | 3 ++-

[libvirt] [PATCH 2/4] qemu drive support block backup.

2016-06-08 Thread Rudy Zhang
qemu drive support block backup, it use qmp command "drive-backup" to start the block, and use qmp command "block-dirty-bitmap-add"/ "block-dirty-bitmap-clear"/"block-dirty-bitmap-remove" to manage the bitmap. Bitmap is used to incremental backup. Signed-off-by: longyou ---

[libvirt] [PATCH 4/4] libvirt-test: libvirt test supports drive-backup

2016-06-08 Thread Rudy Zhang
libvirt test supports drive-backup. Signed-off-by: longyou --- tests/qemucaps2xmldata/all_1.6.0-1.caps| 1 + tests/qemucaps2xmldata/nodisksnapshot_1.6.0-1.caps | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/qemucaps2xmldata/all_1.6.0-1.caps

[libvirt] [PATCH 3/4] virsh: support blockbackup in virsh command

2016-06-08 Thread Rudy Zhang
support blockbackup in virsh command. Use it as: blockbackup[--mode ] [--bandwidth ] [--format ] [--wait] [--verbose] Signed-off-by: longyou --- tools/virsh-domain.c | 149 +++ 1 file changed, 149 insertions(+) diff --git

[libvirt] [PATCH v2] migration: convert speed from Mb/sec to bytes/sec in drive-mirror jobs

2016-03-31 Thread Rudy Zhang
Commit id '7b7600b3' added qemuMigrationDriveMirror to handle NBD mirroring, but passed the migrate_speed listed in MiB/s to be used for the mirror_speed which expects a bytes/s value. This patch will convert the migrate_speed value to its mirror_speed equivalent. Signed-off-by: Rudy Zhang

[libvirt] [PATCH] migration: convert speed from Mb/sec to bytes/sec in drive-mirror jobs

2016-03-31 Thread Rudy Zhang
Commit id '7b7600b3' added qemuMigrationDriveMirror to handle NBD mirroring, but passed the migrate_speed listed in MiB/s to be used for the mirror_speed which expects a bytes/s value. This patch will convert the migrate_speed value to its mirror_speed equivalent. Signed-off-by: Rudy Zhang

Re: [libvirt] [PATCH] migration: convert speed from Mb/sec to bytes/sec in drive-mirror jobs

2016-03-31 Thread Rudy Zhang
On 16/3/31 上午5:47, John Ferlan wrote: On 03/28/2016 12:02 AM, Rudy Zhang wrote: Block migration speed is differect from memory migration speed, because it not convert speed from Mb/sec to bytes/sec in the drive-mirror job. "different" Perhaps better stated: Commit id '7b760

[libvirt] [PATCH] migration: convert speed from Mb/sec to bytes/sec in drive-mirror jobs

2016-03-28 Thread Rudy Zhang
Block migration speed is differect from memory migration speed, because it not convert speed from Mb/sec to bytes/sec in the drive-mirror job. Signed-off-by: Rudy Zhang <rudyflyzh...@gmail.com> --- src/qemu/qemu_migration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff