From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47403 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF26y-0006LP-5e for qemu-devel@nongnu.org; Thu, 20 May 2010 05:32:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF26w-0003Mx-Su for qemu-devel@nongnu.org; Thu, 20 May 2010 05:32:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57755) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF26w-0003Ml-JY for qemu-devel@nongnu.org; Thu, 20 May 2010 05:32:14 -0400 From: Jes.Sorensen@redhat.com Date: Thu, 20 May 2010 11:32:03 +0200 Message-Id: <1274347924-9188-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH] QEMU: change default disk cache behavior List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: hch@infradead.org, Jes Sorensen , qemu-devel@nongnu.org, crobinso@redhat.com From: Jes Sorensen We seem to get into the discussion of what is the correct default setting disk images in QEMU. The libvirt team is reluctant to change specified for newly created images without the default setting matching it, and everybody seems to agree that the current setting of WT is the worse possible option. 'nocache' seems to be the preferred option, but it doesn't work for all cases, like images on ramfs, NFS etc. Therefore, here is a patch that does two things: - default to "nocache" - in case of failure with nocache, retry with "write-back" Jes Sorensen (1): QEMU: Change default disk caching to nocache vl.c | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-)