On 03/14/2012 10:54 AM, Gleb Natapov wrote:
On Wed, Mar 14, 2012 at 10:42:50AM -0500, Anthony Liguori wrote:

There's still a few places in QEMU that assume that
qemu_ram_get_ptr() returns a pointer that's good indefinitely.

We also don't have a mechanism to revoke cpu_physical_map()
pointers.  Maybe the answer is reference counting and relying on
being able to eventually release the memory...   Of course, then an
unplug followed by an immediate plug would be complicated.

Hmm, Avi assured me that with the memory API rework it should be easy :(
grep founds nothing about qemu_ram_get_ptr() and cpu_physical_map()
though. What should I look for?

memory_region_get_ptr() and cpu_memory_physical_map().

Regards,

Anthony Liguori

Reply via email to