qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC][PATCH] File-backed memory maps


From: Jamie Lokier
Subject: Re: [Qemu-devel] [RFC][PATCH] File-backed memory maps
Date: Fri, 18 Sep 2009 14:59:07 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Nathan Baum wrote:
> makes two files named "prefix.vga" and "prefix.bios" which contain the
> respective memory regions. The maps I've named are 640k, before_4g,
> after_4g, vga, bios and option_rom.
> 
> I'm mainly interested in the idea of moving the VNC server into its own
> process. It would listen for connections as usual and then send
> framebuffer updates from the file. Doing that also requires a
> side-channel for communicating graphics mode updates and peripheral
> input between QEMU and the VNC server. (Something like "-mouse
> <char-dev-spec> -keyboard <char-dev-spec>", perhaps?)

Are there any cache coherency issues?

On architectures other than x86, sometimes data written by one process
is not visible to another process mapping the same file, until the
writing process flushes it's cache for those pages.  Whether that's
necessary depends on the address that pages are mapped to.  Afaik,
normally Linux chooses an address where this issue is avoided, but if
you specify it with MAP_FIXED (or whatever KVM does to map pages),
then there's cache coherency to deal with.

-- Jamie




reply via email to

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