|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API |
Date: | Mon, 19 Jan 2009 17:29:37 +0200 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090105) |
Avi Kivity wrote:
Gerd Hoffmann wrote:Hmm, I'd like to see grant tables fit into this picture too. Using flags (instead of is_write) for map requests we can handle that too I think. We need a flag indicating we are passing a grant handle not a guest address, then we can stick the handle into addr (or make that a union).Grant handles should be handled by a different API.
That was terse... here's how I think it should be done: - step 1: map the grant handle into guest physical memory - step 2: use cpu_physical_memory_{read,write,map}() to access the memory This makes grant tables transparent to the actual memory access API. -- error compiling committee.c: too many arguments to function
[Prev in Thread] | Current Thread | [Next in Thread] |