From: Andreas Färber Date: Thu, 12 Mar 2015 14:37:07 +0000 (+0100) Subject: memory: Move owner-less MemoryRegions to /machine/unattached X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=210eb9364be384e7c7f6ef106e6ac8c996dadffe;p=qemu.git 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 Tested-by: Alistair Francis Signed-off-by: Andreas Färber --- 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);