qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT
@ 2007-11-28 14:02 Laurent Vivier
  2007-11-28 14:02 ` [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Laurent Vivier
  2007-11-28 14:27 ` [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT Daniel P. Berrange
  0 siblings, 2 replies; 13+ messages in thread
From: Laurent Vivier @ 2007-11-28 14:02 UTC (permalink / raw)
  Cc: qemu-devel


These patches allow to open file using O_DIRECT and bypass the host I/O cache.

[PATCH 1/2] Add "directio" parameter to "-drive"

    Using "directio=on" with "-drive" will open the disk image 
    file using "O_DIRECT".

[PATCH 2/2] Direct IDE I/O

    This patch enhances the "-drive ,directio=on" mode with IDE drive emulation
    by removing the buffer used in the IDE emulation.

Laurent

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"
@ 2007-11-29 17:03 Balazs Attila-Mihaly (Cd-MaN)
  0 siblings, 0 replies; 13+ messages in thread
From: Balazs Attila-Mihaly (Cd-MaN) @ 2007-11-29 17:03 UTC (permalink / raw)
  To: qemu-devel


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/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-11-29 17:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 14:02 [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT Laurent Vivier
2007-11-28 14:02 ` [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Laurent Vivier
2007-11-28 14:02   ` [Qemu-devel] [PATCH 2/2] Direct IDE I/O Laurent Vivier
2007-11-28 14:24   ` [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Samuel Thibault
2007-11-28 15:00     ` Laurent Vivier
2007-11-28 15:08       ` Samuel Thibault
2007-11-29  9:40     ` Laurent Vivier
2007-11-28 14:27 ` [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT Daniel P. Berrange
2007-11-28 14:34   ` Samuel Thibault
2007-11-28 14:58     ` Anthony Liguori
2007-11-28 15:08     ` Daniel P. Berrange
2007-11-28 15:17       ` Samuel Thibault
  -- strict thread matches above, loose matches on Subject: below --
2007-11-29 17:03 [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive" Balazs Attila-Mihaly (Cd-MaN)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).