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] HVM domain with write caching going on somewheretodisk

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] HVM domain with write caching going on somewheretodisk
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Fri, 9 Nov 2007 13:25:18 +1100
Delivery-date: Thu, 08 Nov 2007 18:25:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01249E73@trantor>
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: <AEC6C66638C05B468B556EA548C1A77D01249E63@trantor><C358A24F.18199%Keir.Fraser@xxxxxxxxxxxx><AEC6C66638C05B468B556EA548C1A77D01249E64@trantor> <AEC6C66638C05B468B556EA548C1A77D01249E73@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acgh89hmOjf1UcT/R7S91fG2xpfbEgAAJyu6AAAMH9AAAKHtpAAACubgAACgnTIAALk2gAAcQ/ewAAJdyeA=
Thread-topic: [Xen-devel] HVM domain with write caching going on somewheretodisk
More testing... there is one write done by windows via the BIOS
interface on boot, and that is to sector 2958215 on my system. By using
dd, I only finally see the results of that write after I have flushed
out the page cache by doing a few big file transfers. That is even after
I got O_DIRECT working...

Something strange is going on I think.

James

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of James Harper
> Sent: Friday, 9 November 2007 12:17
> To: Keir Fraser; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-devel] HVM domain with write caching going on
> somewheretodisk
> 
> >
> > I just changed the open in block.c to include O_DIRECT, but it fails
> to
> > boot. The VNC session flashes up very quickly and I can definitely
see
> > the BIOS there but nothing else.
> >
> > I'll have a look a bit further tomorrow...
> >
> 
> The reason it was failing was that O_DIRECT requires the buffer to the
> read() and write() function to be page aligned. I have put some bounce
> buffer code into raw_read() and raw_write() in block.c, which does
this
> (very inefficiently of course), and still get the same error, so maybe
> this isn't the problem after all...
> 
> Any other suggestions?
> 
> Thanks
> 
> James
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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

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