qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH for 2.1 08/14] memory: MemoryRegion: use /machine as


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH for 2.1 08/14] memory: MemoryRegion: use /machine as default owner
Date: Wed, 25 Jun 2014 14:25:52 +0200

This will be added (after QOMification) as the QOM parent.

Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/memory.c b/memory.c
index b91a60a..7eaa1e9 100644
--- a/memory.c
+++ b/memory.c
@@ -849,7 +849,7 @@ void memory_region_init(MemoryRegion *mr,
 {
     mr->ops = &unassigned_mem_ops;
     mr->opaque = NULL;
-    mr->owner = owner;
+    mr->owner = owner ? owner : qdev_get_machine();
     mr->iommu_ops = NULL;
     mr->container = NULL;
     mr->size = int128_make64(size);
-- 
1.8.3.1





reply via email to

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