[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 6/7] memory: Move owner-less MemoryRegions to /machin

From: Andreas Färber
Subject: [Qemu-devel] [PULL 6/7] memory: Move owner-less MemoryRegions to /machine/unattached
Date: Tue, 17 Mar 2015 16:08:11 +0100

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 <address@hidden>
Tested-by: Alistair Francis <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
 memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/memory.c b/memory.c
index 20f6d9e..ee3f2a8 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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]