aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2015-03-12 15:37:07 +0100
committerAndreas Färber <afaerber@suse.de>2015-03-17 14:31:26 +0100
commit210eb9364be384e7c7f6ef106e6ac8c996dadffe (patch)
treec154d92ceafba6fb0d7fdc6407f54b7622e335b7 /memory.c
parenta01ff75fcdb4d91809ccdd2b95efda6ee1239cbb (diff)
downloadqemu-arm-210eb9364be384e7c7f6ef106e6ac8c996dadffe.tar.gz
memory: Move owner-less MemoryRegions to /machine/unattached
This cleans up the official /machine namespace. In particular /machine/system[0] and /machine/io[0], as well as entries with non-sanitized node names such as "/machine/qemu extended regs[0]". The actual MemoryRegion names remain unchanged. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index 20f6d9eeac..ee3f2a8a95 100644
--- a/memory.c
+++ b/memory.c
@@ -868,7 +868,7 @@ void memory_region_init(MemoryRegion *mr,
uint64_t size)
{
if (!owner) {
- owner = qdev_get_machine();
+ owner = container_get(qdev_get_machine(), "/unattached");
}
object_initialize(mr, sizeof(*mr), TYPE_MEMORY_REGION);