qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"


From: Balazs Attila-Mihaly \(Cd-MaN\)
Subject: Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"
Date: Thu, 29 Nov 2007 09:03:43 -0800 (PST)

Le mercredi 28 novembre 2007 à 14:24 +0000, Samuel Thibault a écrit :
> Hi,
> 
> Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit :
> > +    ret = posix_memalign((void**)&buf, 0x200, 512);
> 
> For making this more easily portable, maybe it should be a new
> qemu_memalign() function?  Also, the alignment may probably be better
 as
> a global macro, since the alignment requirements depend on the OS.

> I think O_DIRECT is linux specific

Windows has something similar (I think). Check out the FILE_FLAG_WRITE_THROUGH 
and FILE_FLAG_NO_BUFFERING flags for the CreateFile API call under Win32 
(http://msdn2.microsoft.com/en-us/library/aa363858.aspx)

Best regards.




      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]