From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl3iA-00061M-9E for qemu-devel@nongnu.org; Thu, 03 Feb 2011 13:15:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl3i9-0002yv-0d for qemu-devel@nongnu.org; Thu, 03 Feb 2011 13:15:18 -0500 Received: from e37.co.us.ibm.com ([32.97.110.158]:37668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl3i8-0002yf-Na for qemu-devel@nongnu.org; Thu, 03 Feb 2011 13:15:16 -0500 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e37.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p13ICip8008707 for ; Thu, 3 Feb 2011 11:12:44 -0700 Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p13IFE2O114758 for ; Thu, 3 Feb 2011 11:15:14 -0700 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p13IJnRD027437 for ; Thu, 3 Feb 2011 11:19:50 -0700 Message-ID: <4D4AF0B0.3040705@linux.vnet.ibm.com> Date: Thu, 03 Feb 2011 12:15:12 -0600 From: Michael Roth MIME-Version: 1.0 References: <1296636160-991-1-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1296636160-991-1-git-send-email-Jes.Sorensen@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v2 0/2] virtagent - fsfreeze support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes.Sorensen@redhat.com Cc: lcapitulino@redhat.com, badari@us.ibm.com, qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com, agl@us.ibm.com Hi Jes, Can you add Badari (CC'd) to the next round? He's looked at potentially using virtagent for snapshots in the past and might have some insights here. Thanks. On 02/02/2011 02:42 AM, Jes.Sorensen@redhat.com wrote: > From: Jes Sorensen > > Hi > > This is a first attempt to add fsfreeze support to virtagent. The idea > is for the guest agent to walk the list of locally mounted file > systems in the guest, and issuing an ioctl to freeze them. The host > can then do a live snapshot of the guest, obtaining stable file > systems. After the snapshot, the host then calls the thaw function in > virtagent, which goes through the list of previously frozen file > systems and unfreezes them. > > The list walking ignores remote file systems such as NFS and CIFS as > well as all pseudo file systems. > > The guest agent code is in the first patch, and host agent code is in > the second patch. For now there is only human monitor support, but it > should be pretty straight forward to add QMP support as well. > > Comments and suggestions welcome! > > v2 of the patch addresses the issues pointed out by Stefan and Michael. > > Cheers, > Jes > > > Jes Sorensen (2): > Add virtagent file system freeze/thaw > Add monitor commands for fsfreeze support > > hmp-commands.hx | 48 +++++++++++ > virtagent-common.h | 9 ++ > virtagent-server.c | 190 ++++++++++++++++++++++++++++++++++++++++++ > virtagent.c | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > virtagent.h | 9 ++ > 5 files changed, 491 insertions(+), 0 deletions(-) >