diff options
| author | Paolo Bonzini | 2014-06-11 10:52:32 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-07-01 10:20:41 +0200 |
| commit | b5c2c3d0c81ea97ac8443113b9a7a0c0ce25368e (patch) | |
| tree | d3e2e0e70d70c37083ff8167dd7d9474ebfbca5e /memory.c | |
| parent | libqtest: escape strings in QMP commands, fix leak (diff) | |
| download | qemu-b5c2c3d0c81ea97ac8443113b9a7a0c0ce25368e.tar.gz qemu-b5c2c3d0c81ea97ac8443113b9a7a0c0ce25368e.tar.xz qemu-b5c2c3d0c81ea97ac8443113b9a7a0c0ce25368e.zip | |
memory: MemoryRegion: use /machine as default owner
This will be added (after QOMification) as the QOM parent.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
| -rw-r--r-- | memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
