From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np5Ds-0008RZ-TO for qemu-devel@nongnu.org; Tue, 09 Mar 2010 14:36:09 -0500 Received: from [199.232.76.173] (port=52319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np5Do-0008Bc-5A for qemu-devel@nongnu.org; Tue, 09 Mar 2010 14:36:04 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Np54F-0003l3-6Y for qemu-devel@nongnu.org; Tue, 09 Mar 2010 14:26:12 -0500 Received: from mail2.shareable.org ([80.68.89.115]:50309) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Np54E-0003kh-RM for qemu-devel@nongnu.org; Tue, 09 Mar 2010 14:26:11 -0500 Date: Tue, 9 Mar 2010 19:26:06 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: bs->enable_write_cache and the guest ABI Message-ID: <20100309192606.GD11042@shareable.org> References: <4B93BB4A.8090605@redhat.com> <4B94D60A.7070006@redhat.com> <20100308230022.GC16057@shareable.org> <4B961B33.1000909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B961B33.1000909@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Christoph Hellwig , qemu-devel , Juan Quintela Avi Kivity wrote: > On 03/09/2010 01:00 AM, Jamie Lokier wrote: > >Avi Kivity wrote: > > > >>I think we have to go with a qdev property as Christoph suggests. Then > >>it becomes the management's responsibility to set it right. > >> > >How can the management be expected to know or follow dynamically > >changing guest state? There guests which disable a drive's write > >cache in some application scripts, and others which enable it in boot > >scripts. That's not something management should be knowing about. > > > > The flag indicates whether the drive has a write cache or not. Ok, thanks, I was confused by the name saying "enable" not "has". I presume the dynamic actually-enabled-write-cache guest device state is dealt with properly, then? -- Jamie