From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYyXi-0004R8-7y for qemu-devel@nongnu.org; Fri, 09 Dec 2011 06:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYyXh-0004Hu-8K for qemu-devel@nongnu.org; Fri, 09 Dec 2011 06:23:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYyXg-0004Hh-Ky for qemu-devel@nongnu.org; Fri, 09 Dec 2011 06:23:05 -0500 Message-ID: <4EE1F052.1020703@redhat.com> Date: Fri, 09 Dec 2011 12:26:10 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1322857256-14951-1-git-send-email-aliguori@us.ibm.com> <1322857256-14951-16-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1322857256-14951-16-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 15/18] rtc: add a dynamic property for retrieving the date List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , Stefan Hajnoczi , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Gerd Hoffman , Markus Armbruster Am 02.12.2011 21:20, schrieb Anthony Liguori: > This really shows the power of dynamic object properties compared to qdev > static properties. > > This property represents a complex structure who's format is preserved over the > wire. This is enabled by visitors. > > It also shows an entirely synthetic property that is not tied to device state. > > Signed-off-by: Anthony Liguori There's one thing that I was hoping to find answered when I would have reviewed the whole series, but it hasn't happened: There is no doubt that dynamic properties (in the sense of being able to modify them after constructions) are a useful thing. But you also claim that class-based properties are not enough for QOM and that we need object-based ones, which is a requirement not immediately obvious to me. Can you provide some examples where we would explicitly need object-based properties? Kevin