From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLJB-0002Zt-Ev for qemu-devel@nongnu.org; Tue, 01 May 2012 18:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPLJ9-00073n-HQ for qemu-devel@nongnu.org; Tue, 01 May 2012 18:12:33 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:40691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLJ9-00073b-8B for qemu-devel@nongnu.org; Tue, 01 May 2012 18:12:31 -0400 Received: by wgbds1 with SMTP id ds1so3641336wgb.4 for ; Tue, 01 May 2012 15:12:29 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FA05FCA.2040408@redhat.com> Date: Wed, 02 May 2012 00:12:26 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1335896294-9530-1-git-send-email-aliguori@us.ibm.com> <1335896294-9530-4-git-send-email-aliguori@us.ibm.com> <4FA033EC.1050800@suse.de> <4FA0497D.3060103@us.ibm.com> <4FA04B0E.5040500@suse.de> <4FA04C23.4070403@us.ibm.com> <4FA05D1D.7080905@us.ibm.com> In-Reply-To: <4FA05D1D.7080905@us.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/14] qdev: add qdev_add_properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Peter Maydell , Wanpeng Li , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 02/05/2012 00:01, Anthony Liguori ha scritto: > > There's magic in the qdev layer now to decide whether a Property in the > array of properties becomes a legacy or static property (it's only ever > exposed as one type). I don't think this is true: a legacy property always has a static counterpart. The magic (really just a fallback) is to decide whether -device ,= will use the legacy property or a string visitor + a static property. Paolo