From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrjVi-0004Iq-Mz for qemu-devel@nongnu.org; Tue, 03 Jun 2014 03:52:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrjVc-0008DI-IO for qemu-devel@nongnu.org; Tue, 03 Jun 2014 03:51:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrjVc-0008D2-Ab for qemu-devel@nongnu.org; Tue, 03 Jun 2014 03:51:48 -0400 Message-ID: <538D7E8D.5060803@redhat.com> Date: Tue, 03 Jun 2014 09:51:41 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <95099c6d2c53520148512094676ca637f53eabd6.1401181024.git.peter.crosthwaite@xilinx.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH memory v2 7/9] memory: MemoryRegion: Add container and addr props List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite , "qemu-devel@nongnu.org Developers" Cc: Peter Maydell , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 02/06/2014 04:40, Peter Crosthwaite ha scritto: >> > { >> > MemoryRegion *mr = MEMORY_REGION(obj); >> > + gchar *container_link_type = g_strdup_printf("link<%s>", >> > + TYPE_MEMORY_REGION); > Since TYPE_MEMORY_REGION is a literal string constant, this can be > done with regular "" "" style string concatenation. Dropped the strdup > in V3. Note that object_resolve_path_component expects link properties to have a LinkProperty stored in prop->opaque. Does this hold in your case? Perhaps we can instead add a new ->resolve function pointer to properties. Paolo