From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoEqL-0006kB-E8 for qemu-devel@nongnu.org; Fri, 10 Oct 2008 06:03:33 -0400 Received: from [199.232.76.173] (port=59923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoEqK-0006jm-OO for qemu-devel@nongnu.org; Fri, 10 Oct 2008 06:03:32 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:52102) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoEqK-0006dp-AL for qemu-devel@nongnu.org; Fri, 10 Oct 2008 06:03:32 -0400 Message-ID: <48EF286D.3050200@bellard.org> Date: Fri, 10 Oct 2008 12:03:25 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU References: <48EE38B9.2050106@codemonkey.ws> In-Reply-To: <48EE38B9.2050106@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Chris Wright , Mark McLoughlin , Ryan Harper , Laurent Vivier , kvm-devel Anthony Liguori wrote: > [...] > So to summarize, I think we should enable O_DSYNC by default to ensure > that guest data integrity is not dependent on the host OS, and that > practically speaking, cache=off is only useful for very specialized > circumstances. Part of the patch I'll follow up with includes changes > to the man page to document all of this for users. > > Thoughts? QEMU is also used for debugging and arbitrary machine simulation. In this case, using uncached accesses is bad because you want maximum isolation between the guest and the host. For example, if the guest is a development OS not using a disk cache, I still want to use the host disk cache. So the "normal" caching scheme must be left as it is now. However, I agree that the default behavior could be modified. Regards, Fabrice.