From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ39K-000568-W9 for qemu-devel@nongnu.org; Mon, 14 Nov 2011 15:29:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQ39J-0004GT-Sd for qemu-devel@nongnu.org; Mon, 14 Nov 2011 15:29:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQ39J-0004G1-LA for qemu-devel@nongnu.org; Mon, 14 Nov 2011 15:29:01 -0500 From: Juan Quintela In-Reply-To: <4EC17610.3000401@codemonkey.ws> (Anthony Liguori's message of "Mon, 14 Nov 2011 14:12:00 -0600") References: <1321113420-3252-1-git-send-email-aliguori@us.ibm.com> <1321113420-3252-5-git-send-email-aliguori@us.ibm.com> <4EC1214B.8050105@us.ibm.com> <4EC170C9.5060202@codemonkey.ws> <4EC175D5.1000906@redhat.com> <4EC17610.3000401@codemonkey.ws> Date: Mon, 14 Nov 2011 21:28:55 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 5/7] block: allow migration to work with image files (v2) Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Lucas Meneghel Rodrigues , Stefan Hajnoczi , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Avi Kivity Anthony Liguori wrote: > > Michael basically was trying to avoid having a VM's state change after > you stopped the guest. > > With something like cache=unsafe that periodically flushes based on a > timer (I think), you want to make sure that that doesn't happen after > stop occurs. Even then, we want to have "qcow2_flush_dirty_buffer_to_disk()" or whatever is going to be called the method. Doing a full "drop all cache" and "reread" it is using a cannon to fight flies IMHO. Especially because there are "lots" of uses of stop, and only a minority of them want this flushed to disk (if ever). My recount of mst problems were with networking (vhost) than something touch the guest image while VM is stopped. This is not the case here, as we are not doing anything with the guest memory, no? Later, Juan.