From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpnek-0001fx-Cd for qemu-devel@nongnu.org; Tue, 24 Jan 2012 16:11:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpnei-0002ha-I5 for qemu-devel@nongnu.org; Tue, 24 Jan 2012 16:11:54 -0500 Message-ID: <4F1F1E91.50609@codemonkey.ws> Date: Tue, 24 Jan 2012 15:11:45 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1327433600-7403-1-git-send-email-aliguori@us.ibm.com> <1327433600-7403-28-git-send-email-aliguori@us.ibm.com> <4F1F0E2D.2020706@web.de> <4F1F12E7.2020309@us.ibm.com> <4F1F1C28.4040600@web.de> In-Reply-To: <4F1F1C28.4040600@web.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 27/28] sysbus: apic: ioapic: convert to QEMU Object Model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Peter Maydell , Anthony Liguori , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , =?ISO-8859-15?Q?Andreas_F=E4rber?= , qemu-ppc@nongnu.org, Paul Brook , Aurelien Jarno , Gerd Hoffmann On 01/24/2012 03:01 PM, Jan Kiszka wrote: > On 2012-01-24 21:21, Anthony Liguori wrote: >>> Also, I see a lot of programmatic initialization and a lot of repeating >>> patterns (specifically regarding trivial class initialization) - there >>> is no better alternative? >> >> Not really, no. It looks bad now because you have DeviceInfo still. >> Once DeviceInfo goes away, all of the initialization will happen in the >> class_init function. >> >> The design of QOM is such that a lot of what was previously done via >> declarative structures is now done imperatively. But the code bloat >> that came in this patch series will decrease significantly with the next >> series as we eliminate DeviceInfo. > > Are there examples of fully converted devices to get an impression? https://github.com/aliguori/qemu/tree/qom-rebase.8 Has everything fully converted (including BusState). If you look at qdev.[ch], you'll notice the remaining qdev infrastructure becomes greatly simplified. Regards, Anthony Liguori > > Jan >