qemu-devel
[Top][All Lists]
Advanced

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

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


From: Avi Kivity
Subject: Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_DIRECT)
Date: Wed, 21 May 2008 19:48:24 +0300
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Jamie Lokier wrote:
Anthony Liguori wrote:
Actually, this is precisely what I'd like to do. The key is to mmap(MAP_PRIVATE) from the underling file directly into the guest's memory. Should be just as applicable to QEMU as KVM (although for KVM we need mmu-notifiers first).

With QEMU, that would lead to a huge number of VMAs - different mmap
address regions.  Linux (or any host for all I know) doesn't handle
that well.

On Linux you could use remap_file_pages to avoid the VMA problem.


Hmm, if remap_file_pages() supports MAP_PRIVATE, that solves all the problems neatly.

Andrea, do you know if that combination works?

--
error compiling committee.c: too many arguments to function





reply via email to

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