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