Received: from eggs.gnu.org ([2001:4830:134:3::10]:37224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTdd-0007Zg-QJ for qemu-devel@nongnu.org; Thu, 22 May 2014 10:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnTdW-00029C-4W for qemu-devel@nongnu.org; Thu, 22 May 2014 10:06:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnTdV-00028z-RB for qemu-devel@nongnu.org; Thu, 22 May 2014 10:06:22 -0400 Date: Thu, 22 May 2014 16:05:46 +0200 From: Igor Mammedov Message-ID: <20140522160546.08502c7b@nial.usersys.redhat.com> In-Reply-To: <1400703772-3324-2-git-send-email-stefanha@redhat.com> References: <1400703772-3324-1-git-send-email-stefanha@redhat.com> <1400703772-3324-2-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Paolo Bonzini , Peter Crosthwaite , Frederic Konrad , qemu-devel@nongnu.org, Andreas Faerber On Wed, 21 May 2014 22:22:46 +0200 Stefan Hajnoczi wrote: > Sometimes an object needs to present a property which is actually on > another object, or it needs to provide an alias name for an existing > property. > > Examples: > a.foo -> b.foo > a.old_name -> a.new_name this could be used for x86 cpu features where the same CPUID bit has different names depending whether CPU is Intel or AMD based. > > The new object_property_add_alias() API allows objects to alias a > property on another object. The source and target names can be ^^^ the same or > different.