From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46909 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCr0p-0003ji-OH for qemu-devel@nongnu.org; Fri, 14 May 2010 05:16:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCr0n-0001uT-Om for qemu-devel@nongnu.org; Fri, 14 May 2010 05:16:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16104) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCr0n-0001uN-Fq for qemu-devel@nongnu.org; Fri, 14 May 2010 05:16:53 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH 2/2] Add flush=off parameter to -drive References: <1273528310-7051-1-git-send-email-agraf@suse.de> <1273528310-7051-2-git-send-email-agraf@suse.de> <1273528310-7051-3-git-send-email-agraf@suse.de> <4BE91708.7050307@redhat.com> <20100511105559.GA21363@lst.de> Date: Fri, 14 May 2010 11:16:47 +0200 In-Reply-To: <20100511105559.GA21363@lst.de> (Christoph Hellwig's message of "Tue, 11 May 2010 12:55:59 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Kevin Wolf , Alexander Graf , qemu-devel@nongnu.org Christoph Hellwig writes: [...] > Markus was looking into separating the block device state in host/ > guest portions lately, and splitting cache= would help with this. > Driver cache enabled or not (fsync means enabled, O_DSYNC disabled, > and none probably disabled given that we don't care), while O_DIRECT > vs normal cached I/O is host state. Let me provide a bit more context. -drive is a happy mix of guest and host parameters. Some parameters are clearly host, some clearly guest, and some are... complicated. For instance, I'd argue that "readonly" applies to both host and guest. I'm working on turning all guest parameters proper qdev properties, and collect the host parameters in a new -blockdev. -drive stays for compatibility and convenience (I'd like to deprecate if=none, though). If you change -drive, please keep the coming separation in mind, and avoid parameters that mix up guest and host.