WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] qemu write cacheing and DMA IDE writes

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-devel] qemu write cacheing and DMA IDE writes
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 25 Feb 2008 17:06:05 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 25 Feb 2008 09:07:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080225170051.GJ2614@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <18370.61781.669132.772706@xxxxxxxxxxxxxxxxxxxxxxxx> <20080225170051.GJ2614@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>