From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuP2R-00066Y-L0 for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:50:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuP2L-0003Dz-QM for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:50:46 -0500 Received: from verein.lst.de ([213.95.11.210]:53944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuP2L-0003DT-GF for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:50:45 -0500 Date: Tue, 1 Mar 2011 13:50:36 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] [RFC][PATCH 0/2] Allow cache settings for block devices to be changed at runtime. Message-ID: <20110301125036.GA29715@lst.de> References: <20110228171956.05a84fb9@zephyr> <4D6BBB72.6040205@redhat.com> <20110301124254.GA29485@lst.de> <20110301124834.GA10953@stefanha-thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110301124834.GA10953@stefanha-thinkpad.localdomain> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , qemu-devel , Ananth Narayan , Prerna Saxena , Christoph Hellwig On Tue, Mar 01, 2011 at 12:48:34PM +0000, Stefan Hajnoczi wrote: > On Tue, Mar 01, 2011 at 01:42:54PM +0100, Christoph Hellwig wrote: > > I have patches to do that, and to allow changing O_DIRECT via a monitor > > command, but to toggle O_SYNC via fcntl I first need to get a kernel > > patch in as that's currently not allowed to be changed at runtime. > > Great it sounds like you have already implemented the two cases (guest wce and > host O_DIRECT) that we're talking about. At least in theory. And for Linux I can add setting/clearing of O_SYNC via fcntl easily, but what do we do for other hosts? I'm not sure closing/reopening the backing file is easily feasible.