summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Crosthwaite2014-08-26 05:10:24 +0200
committerPaolo Bonzini2014-08-28 16:09:44 +0200
commitd1dd32af6f37e5bb8e6b2024d07fce74f510a668 (patch)
tree9f706f24acca0363cee8640880771c829c59b540 /include
parentxen: hvm: Abstract away memory region name ref (diff)
downloadqemu-d1dd32af6f37e5bb8e6b2024d07fce74f510a668.tar.gz
qemu-d1dd32af6f37e5bb8e6b2024d07fce74f510a668.tar.xz
qemu-d1dd32af6f37e5bb8e6b2024d07fce74f510a668.zip
memory: Lazy init name from QOM name as needed
To support name retrieval of MemoryRegions that were created dynamically (that is, not via memory_region_init and friends). We cache the name in MemoryRegion's state as object_get_canonical_path_component mallocs the returned value so it's not suitable for direct return to callers. Memory already frees the name field, so this will be garbage collected along with the MR object. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions