From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzmHQ-00045R-Pk for qemu-devel@nongnu.org; Wed, 25 Jun 2014 08:26:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzmHK-0001IQ-PQ for qemu-devel@nongnu.org; Wed, 25 Jun 2014 08:26:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzmHK-0001IG-Hx for qemu-devel@nongnu.org; Wed, 25 Jun 2014 08:26:18 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5PCQHQC012540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 25 Jun 2014 08:26:18 -0400 Received: from playground.com (ovpn-112-70.ams2.redhat.com [10.36.112.70]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5PCQ06Z026682 for ; Wed, 25 Jun 2014 08:26:16 -0400 From: Paolo Bonzini Date: Wed, 25 Jun 2014 14:25:52 +0200 Message-Id: <1403699158-4344-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1403699158-4344-1-git-send-email-pbonzini@redhat.com> References: <1403699158-4344-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH for 2.1 08/14] memory: MemoryRegion: use /machine as default owner List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This will be added (after QOMification) as the QOM parent. Reviewed-by: Peter Crosthwaite Signed-off-by: Paolo Bonzini --- 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