From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLTi-00011R-3R for qemu-devel@nongnu.org; Tue, 01 May 2012 18:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPLTg-0002UL-FR for qemu-devel@nongnu.org; Tue, 01 May 2012 18:23:25 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:40168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPLTg-0002Ti-8k for qemu-devel@nongnu.org; Tue, 01 May 2012 18:23:24 -0400 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 May 2012 16:23:19 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id EBF513E4004F for ; Tue, 1 May 2012 16:23:15 -0600 (MDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q41MNFtX169664 for ; Tue, 1 May 2012 16:23:15 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q41MNqna030822 for ; Tue, 1 May 2012 16:23:52 -0600 Message-ID: <4FA06251.3060400@us.ibm.com> Date: Tue, 01 May 2012 17:23:13 -0500 From: Anthony Liguori 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> <4FA05FCA.2040408@redhat.com> In-Reply-To: <4FA05FCA.2040408@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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: Paolo Bonzini Cc: qemu-devel@nongnu.org, Peter Maydell , Wanpeng Li , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= On 05/01/2012 05:12 PM, Paolo Bonzini wrote: > 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. Yes, I mispoke. All legacy properties are static properties but not all static properties are legacy (IIUC). The exception is PROP_PTR which is always a legacy but never a static. So there is quite a bit of magic. Regards, Anthony Liguori > > Paolo >