[Spice-devel] [Qemu-devel] viewing continuous guest virtual memory as continuous in qemu

Alon Levy alevy at redhat.com
Mon Oct 3 00:49:17 PDT 2011


On Sun, Oct 02, 2011 at 07:12:07PM +0200, Avi Kivity wrote:
> On 10/02/2011 04:31 PM, Alon Levy wrote:
> >On Sun, Oct 02, 2011 at 03:24:36PM +0200, Alon Levy wrote:
> >>  Hi,
> >>
> >
> >Converting qemu's ram allocation to a mmap and using remap_file_pages seems
> >like it could work. Any ideas why it wouldn't?
> >
> 
> It's linux-specific.  Also, does it work on anonymous memory?

Anonymous: I don't think so. I've done shm_open and mmap'ed it twice, one for the ram
and the other to do remap_file_pages on it. Couldn't figure out how to get two mmaps pointing
to the same physical memory without shm_open.

> 
> I suggest using scatter-gather, though it's annoying.
> 
> -- 
> error compiling committee.c: too many arguments to function
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list