From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38089 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuP2f-0000I7-Df for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuP2a-0003IS-Jm for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:51:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuP2a-0003I8-6v for qemu-devel@nongnu.org; Tue, 01 Mar 2011 07:51:00 -0500 Message-ID: <4D6CEC24.8090102@redhat.com> Date: Tue, 01 Mar 2011 13:52:52 +0100 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC][PATCH 0/2] Allow cache settings for block devices to be changed at runtime. References: <20110228171956.05a84fb9@zephyr> <4D6BBB72.6040205@redhat.com> <20110301124254.GA29485@lst.de> In-Reply-To: <20110301124254.GA29485@lst.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: Anthony Liguori , Stefan Hajnoczi , Stefan Hajnoczi , qemu-devel , Ananth Narayan , Prerna Saxena Am 01.03.2011 13:42, schrieb Christoph Hellwig: > > The only way to change the cache settings is from the guest. Without > that we're guranteed to lose data when going from WCE=0 to WCE=1. > > 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. We can re-open the file for now, and we need an implementation for older kernels/other host OSes anyway, so I don't think we have to wait for the kernel patch to be accepted. Kevin