From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbvbe-0000g2-8m for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbvbc-0002qb-OJ for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:19:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbvbc-0002qW-7L for Qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:19:04 -0400 Message-ID: <4E0B34F6.8080406@redhat.com> Date: Wed, 29 Jun 2011 16:21:42 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <4E0B1399.4050807@redhat.com> <4E0B152B.1000201@codemonkey.ws> <4E0B1787.30709@redhat.com> <4E0B1943.4090400@codemonkey.ws> <4E0B32A9.3010809@redhat.com> <20110629141206.GA16311@lst.de> In-Reply-To: <20110629141206.GA16311@lst.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Default cache mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Qemu-devel@nongnu.org, Stefan Hajnoczi , Frediano Ziglio , Avi Kivity Am 29.06.2011 16:12, schrieb Christoph Hellwig: > On Wed, Jun 29, 2011 at 04:11:53PM +0200, Kevin Wolf wrote: >> If the guest is acting correctly, then this assumption is definitely >> true with cache=none/writeback. What needs to happen is that the guest >> issues a disk flush before sending your "transaction ok" message. If it >> doesn't do that it can fail even on real hardware. cache=writethrough >> makes things safe that aren't even safe on real hardware, that's why I >> consider it extremely conservative. > > Depends on your defintion of real hardware. Traditionally disks always > had WCE=0 semantics. When ATA disks added volatile writecaches and people > started seeing problems due to it the advertisement of cache modes and > cache flush commands were added. For non-ATA disks like SAS or FC > WCE=1 still is the typical delivery setting. Sure, I'm not saying that it definitely breaks on any hardware, just that it can break. Kevin