From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnQzy-0000Jn-1l for qemu-devel@nongnu.org; Thu, 22 May 2014 07:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnQzq-0004m6-Dm for qemu-devel@nongnu.org; Thu, 22 May 2014 07:17:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnQzq-0004m1-4h for qemu-devel@nongnu.org; Thu, 22 May 2014 07:17:14 -0400 Message-ID: <537DDC9F.4030403@redhat.com> Date: Thu, 22 May 2014 13:16:47 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1400703772-3324-1-git-send-email-stefanha@redhat.com> <1400703772-3324-2-git-send-email-stefanha@redhat.com> <537D2342.3000300@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/7] qom: add object_property_add_alias() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Peter Crosthwaite , Frederic Konrad , qemu-devel , Stefan Hajnoczi , Andreas Faerber Il 22/05/2014 12:23, Stefan Hajnoczi ha scritto: > I had an intermediate version of this patch with a flag so you could > tell object_property_add_alias() whether or not to ref the target > object. But in the end it seems like overengineering since the > refcount case is rare or non-existent. The refcount is a convenience > feature just for the case where you want to alias to a random object > that you don't otherwise hold a refcount on (I couldn't think of an > example). > > Do you see what I mean? Yes, and it makes sense. Perhaps add a comment for v2. Paolo