From: Ian Jackson Subject: Re: qemu write cacheing and DMA IDE writes Date: Mon, 25 Feb 2008 17:06:05 +0000 Message-ID: <18370.62845.766734.521948@mariner.uk.xensource.com> References: <18370.61781.669132.772706@mariner.uk.xensource.com> <20080225170051.GJ2614@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080225170051.GJ2614@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Daniel P. Berrange" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Daniel P. Berrange writes ("Re: [Xen-devel] qemu write cacheing and DMA IDE writes"): > AFAICT, the DMA write is done by ide_write_dma_cb() in hw/ide.c. At the > point the DMA transfer completes that method does > > if (!s->write_cache) > bdrv_flush(s->bs); > > Which should flush the data to disk, if the guest has done hdparm -W 0 > on their device. Oh, yes, sorry, I missed that. I'll add an error check for it to my merge, though. Ian.