From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwuAX-0007Vs-Lb for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwuAO-0005Jf-J0 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:15:25 -0400 Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:63308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwuAO-0005J7-DI for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:15:16 -0400 Received: by mail-qc0-f182.google.com with SMTP id m20so10172370qcx.27 for ; Tue, 17 Jun 2014 07:15:16 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53A04D6E.7040103@redhat.com> Date: Tue, 17 Jun 2014 16:15:10 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1402505369-12526-1-git-send-email-pbonzini@redhat.com> <1402505369-12526-5-git-send-email-pbonzini@redhat.com> <53A04B79.808@redhat.com> In-Reply-To: <53A04B79.808@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] qom: allow creating an alias of an object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Marcelo Tosatti , "qemu-devel@nongnu.org Developers" , Stefan Hajnoczi , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 17/06/2014 16:06, Paolo Bonzini ha scritto: >> >> For instance - could you unparent then reparent an object and have >> it's aliases survive? I think the best implementation is to simply >> place your original alias logic here under if (!target_name) and >> return. > > Ok, so that would mean special casing target_prop == NULL. Let's wait for Andreas's opinion. Paolo