qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Align file accesses with cache=off (O_DIRECT)


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] Align file accesses with cache=off (O_DIRECT)
Date: Wed, 30 Apr 2008 23:05:42 +0200
User-agent: KMail/1.9.6 (enterprise 20070904.708012)

Am Mittwoch, 30. April 2008 16:30:27 schrieb Blue Swirl:
> Maybe the alignment could be handled like AIO and synchronous IO
> emulation layers are added in bdrv_register, but at open stage?

You mean to preserve the original pread if the file is opened without O_DIRECT 
and replace it by the emulation function only if O_DIRECT is really used? 
Certainly possible in some way (having a function pointer in BDRVRawState), 
but this won't save us anything.

But maybe I'm just missing your point. How exactly do you want to handle 
things and what does it improve?

Kevin




reply via email to

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