X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=memory.c;h=ee3f2a8a954ef3cc3c15871e8e9d17608c46c0ab;hb=6a460ed18a3fda0eb2d9c96b8b01817b4dcbded4;hp=20f6d9eeac737609c3d47da7f01cde7d237c390c;hpb=c5c6d7f81a6950d8e32a3b5a0bafd37bfa5a8e88;p=mirror_qemu.git 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);