diff options
author | Andreas Färber <afaerber@suse.de> | 2015-03-12 15:37:07 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-03-17 14:31:26 +0100 |
commit | 210eb9364be384e7c7f6ef106e6ac8c996dadffe (patch) | |
tree | c154d92ceafba6fb0d7fdc6407f54b7622e335b7 /memory.c | |
parent | a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |