From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThYft-0007hp-4i for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:39:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThYfr-0007FV-TD for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:39:33 -0500 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:56786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThYfr-0007A8-AS for qemu-devel@nongnu.org; Sat, 08 Dec 2012 23:39:31 -0500 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 9 Dec 2012 10:09:13 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 571A33940045 for ; Sun, 9 Dec 2012 10:09:23 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qB94dLcL24707290 for ; Sun, 9 Dec 2012 10:09:22 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qB94dLJH010516 for ; Sun, 9 Dec 2012 15:39:22 +1100 Message-ID: <50C415A6.504@linux.vnet.ibm.com> Date: Sun, 09 Dec 2012 12:37:58 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <1354955059-14391-1-git-send-email-xiawenc@linux.vnet.ibm.com> <24E144B8C0207547AD09C467A8259F75578601DF@lisa.maurer-it.com> In-Reply-To: <24E144B8C0207547AD09C467A8259F75578601DF@lisa.maurer-it.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH 0/2] live backup vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dietmar Maurer Cc: "kwolf@redhat.com" , "aliguori@us.ibm.com" , "stefanha@gmail.com" , "qemu-devel@nongnu.org" , "blauwirbel@gmail.com" , "pbonzini@redhat.com" 于 2012-12-7 18:12, Dietmar Maurer 写道: > We already have a full functional implementation to create live snapshots including VM state. > > The interface allows you to create internal snapshots, or use external tools to create the blockdev snapshots > directly on the underlying storage (we use that with nexenta). VM state is stored directly on a block device. > > https://git.proxmox.com/?p=pve-qemu-kvm.git;a=blob;f=debian/patches/internal-snapshot-async.patch;h=6c86de3a6160c58d77baa41a7774c4a80e63639e;hb=HEAD > > Unfortunately I had no time to cleanup those patches. > > - Dietmar > have that patch been sent to mail-list? I'll rebase that patch and take it as part of the API's implemention, if you agree. >> This patch is a scratch which enables a full live backup of VM, actually it is >> equal to savevm lively. As a test it uses hmp command migrate to trigger the >> action. >> >> The ultimate goal is providing another command to user as: >> snapshotvm [with_state] [internal] [live] which then create vm backups with >> a screen image(I am not sure if a screen snapshot is supported in qemu >> now). This function is enabled in VMWARE which can automatically create >> full vm snapshots lively with a screen image which seems cool, so I want to >> introduce it to qemu. >> >> Limitations: >> currently only implemented "snapshotvm with_state internal live" case. >> no screen captured in the time of creating snapshots. >> no good integration with existing savevm, migration, snapshot_blkdev code. >> no test case yet. >> hmp/qmp API not added. >> >> Although there are so many gaps, but I want to send these patch first to >> make sure I am in the right direction, esp the implemention of savevm lively >> with vmstate, to see if there is potentional problem, such as creating >> snapshots takes too long? Other cases would be simpler if this case have no >> major problem found. >> >> Wenchao Xia (2): >> live backup vm, export functions >> live backup vm, snapshots all lively >> >> block.c | 21 ++++++ >> block.h | 2 + >> buffered_file.c | 106 +++++++++++++++++++++++++++ >> buffered_file.h | 1 + >> migration.c | 215 >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> migration.h | 13 ++++ >> savevm.c | 37 +++------- >> sysemu.h | 2 + >> 8 files changed, 371 insertions(+), 26 deletions(-) >> >> > > > -- Best Regards Wenchao Xia