From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43451 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBu49-0006jf-Ef for qemu-devel@nongnu.org; Tue, 11 May 2010 14:20:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBu48-0005gS-0r for qemu-devel@nongnu.org; Tue, 11 May 2010 14:20:25 -0400 Received: from mail2.shareable.org ([80.68.89.115]:59339) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBu46-0005gA-5p for qemu-devel@nongnu.org; Tue, 11 May 2010 14:20:23 -0400 Date: Tue, 11 May 2010 19:20:20 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH 2/2] Add flush=off parameter to -drive Message-ID: <20100511182020.GB30446@shareable.org> References: <1273528310-7051-1-git-send-email-agraf@suse.de> <4BE91708.7050307@redhat.com> <20100511105559.GA21363@lst.de> <201005111315.08897.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201005111315.08897.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Kevin Wolf , Alexander Graf , Christoph Hellwig , qemu-devel@nongnu.org, armbru@redhat.com Paul Brook wrote: > cache=none: > No host caching. Reads and writes both go directly to underlying storage. > Useful to avoid double-caching. > > cache=writethrough > Reads are cached. Writes go directly to underlying storage. Useful for > broken guests that aren't aware of drive caches. These are misleading descriptions - because cache=none does not push writes down to powerfail-safe storage, while cache=writethrough might. > cache=always (or a more scary name like cache=lie to defend against idiots) > Reads and writes are cached. Guest flushes are ignored. Useful for dumb > guests in non-critical environments. cache=unsafe would tell it like it is. Even non-idiots could be excused for getting the wrong impression from cache=always. -- Jamie