From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkdzY-0006gB-4y for qemu-devel@nongnu.org; Wed, 02 Feb 2011 09:47:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkYOF-0001bR-LR for qemu-devel@nongnu.org; Wed, 02 Feb 2011 03:48:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkYOF-0001a4-DE for qemu-devel@nongnu.org; Wed, 02 Feb 2011 03:48:39 -0500 Message-ID: <4D491A5A.5020008@redhat.com> Date: Wed, 02 Feb 2011 09:48:26 +0100 From: Jes Sorensen MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/2] Add virtagent file system freeze/thaw References: <1296557928-30019-1-git-send-email-Jes.Sorensen@redhat.com> <1296557928-30019-2-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: agl@us.ibm.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On 02/02/11 08:57, Stefan Hajnoczi wrote: > On Tue, Feb 1, 2011 at 10:58 AM, wrote: >> From: Jes Sorensen >> >> Implement freeze/thaw support in the guest, allowing the host to >> request the guest freezes all it's file systems before a live snapshot >> is performed. >> - fsfreeze(): Walk the list of mounted local real file systems, >> and freeze them. > > Does this add a requirement that guest agent code issues no disk I/O > in its main loop (e.g. logging)? Otherwise we might deadlock > ourselves waiting for I/O which is never issued. Yes very much so[1] - one reason why it would be nice to have virtagent use threads to execute the actual commands. We should probably add a flag to agent commands indicating whether they issue disk I/O or not, so we can block attempts to execute commands that do so, while the guest is frozen. Cheers, Jes [1] speaking from experience ... a Linux desktop gets really upset if you freeze the file systems from a command in an xterm.... ho hum