Received: from eggs.gnu.org ([2001:4830:134:3::10]:45062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnU9e-0002uA-2P for qemu-devel@nongnu.org; Thu, 22 May 2014 10:39:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnU9X-00058A-NC for qemu-devel@nongnu.org; Thu, 22 May 2014 10:39:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnU9X-000584-FN for qemu-devel@nongnu.org; Thu, 22 May 2014 10:39:27 -0400 Date: Thu, 22 May 2014 16:39:22 +0200 From: Stefan Hajnoczi Message-ID: <20140522143922.GB21238@stefanha-thinkpad.redhat.com> References: <1400703772-3324-1-git-send-email-stefanha@redhat.com> <1400703772-3324-2-git-send-email-stefanha@redhat.com> <20140522160546.08502c7b@nial.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140522160546.08502c7b@nial.usersys.redhat.com> 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: Igor Mammedov Cc: Paolo Bonzini , Peter Crosthwaite , Frederic Konrad , qemu-devel@nongnu.org, Andreas Faerber On Thu, May 22, 2014 at 04:05:46PM +0200, Igor Mammedov wrote: > 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. Yes > > > > 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 Okay, will fix.