From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Subject: Re: [Qemu-devel] KVM call agenda for tuesday 31 Date: Tue, 31 Jan 2012 17:23:24 +0100 Message-ID: <4F28157C.1000609@suse.de> References: <87ehuhrpel.fsf@elfo.elfo> <4F272A92.2010609@suse.de> <4F27F3DB.2040400@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Peter Maydell , KVM devel mailing list , =?UTF-8?B?6Zmz6Z+L5Lu7?= , quintela@redhat.com, Stefan Weil , Developers qemu-devel , Alex Bradbury To: Anthony Liguori Return-path: Received: from cantor2.suse.de ([195.135.220.15]:57527 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752270Ab2AaQZp (ORCPT ); Tue, 31 Jan 2012 11:25:45 -0500 In-Reply-To: <4F27F3DB.2040400@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Am 31.01.2012 14:59, schrieb Anthony Liguori: > On 01/30/2012 05:41 PM, Andreas F=C3=A4rber wrote: >> Am 30.01.2012 19:55, schrieb Juan Quintela: >>> Please send in any agenda items you are interested in covering. >> >> QOM roadmap update: >> * Series 3/4 is on the list. >> -> Please officially designate a merge date (Friday?). >> -> To make review sensible, I ask for a hard device freeze until me= rged. >> I.e., no new devices and no conflicting changes to DeviceInfo. >=20 > I put together a few slides to help this discussion: >=20 > http://www.codemonkey.ws/files/qom-overview.pdf So basically we barely managed to walk through the slides without getting into any of the requested agenda points. ;) Re slide 5 I could use a more detailed explanation. =46rom what I understand, ... =2E..types are registered through device_init() and module_call_init(). =2E..classes are lazily initialized, eventually calling class_init. =2E..objects are instantiated through object_new[_with_type](), eventua= lly calling instance_init, by convention named initfn. Up to here would be step 1. How does the realize step 2 fit in technically? What types does this apply to? All? Who calls realize? Where should class authors draw the line between the two? (DOs and DON'Ts) Then some conceptual questions: How is inheritance (virtual methods in C++) supposed to work? (in my case a reset function overwritten by each subclass) I've seen code in series 3/4 calling methods the parent class defines in its header, replacing the parent class' function pointer? Or should derived classes store their parent's function pointer in a new ObjectClass and invoke that? (i.e., are such parent functions supposed to be public or static) When you talk about setting properties, does that refer to using the property accessor functions moved to Object in series 3/4? Or should qdev devices that currently expose only arbitrary setup functions instead move their state to a header file so that it can be written int= o by the parent? If so, should such headers reside in hw/ or include/qemu= /? Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3= =BCrnberg