Received: from eggs.gnu.org ([208.118.235.92]:49048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrvHG-0002ZP-7t for qemu-devel@nongnu.org; Sun, 06 Jan 2013 13:49:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrvHE-0004mM-O7 for qemu-devel@nongnu.org; Sun, 06 Jan 2013 13:48:58 -0500 Received: from cantor2.suse.de ([195.135.220.15]:55986 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrvHE-0004mG-F2 for qemu-devel@nongnu.org; Sun, 06 Jan 2013 13:48:56 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 6 Jan 2013 19:48:40 +0100 Message-Id: <1357498122-1129-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/2] QOM realize, device-only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , anthony@codemonkey.ws, Igor Mammedov , pbonzini@redhat.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello Anthony, Here's a rebased version of device-only QOM realization, otherwise unchan= ged. This is based on master now and drops all general-purpose qdev cleanups t= hat potentially conflict with Paolo's reference counting change proposal. It will trivially conflict with my qdev unparenting fix, pending to be ad= ded to the qom-cpu queue (touches k->unparent in class_init). Same as v1, this is not the big throw of a recursive, central realization= model. The immediate purpose of this series is to allow CPUs, which partially al= ready have realizefns prepared, to adjust to the new DeviceState signature (bei= ng a device on qom-cpu branch) and hook them up to DeviceClass::realize rather= than exposing as a function through cpu.h. Please review and apply to qemu.git= . As discussed in the last cover letter, doing realization at DeviceState l= evel does not allow for trivial [un]realize_children as proposed by Paolo for = Object. An idea how to implement this as a follow-up would be to do a deep search= for child<> properties dynamic_cast'able to DeviceState. Or to simply try set= ting a "realized" property and it that fails check for children (but how to di= ffer between "realized" that failed and "realized" that doesn't exist then?). Available from: https://github.com/afaerber/qemu-cpu/commits/realize-qdev.v2 git://github.com/afaerber/qemu-cpu.git realize-qdev.v2 Regards, Andreas Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Eduardo Habkost Cc: Igor Mammedov Cc: Peter Maydell Andreas F=C3=A4rber (2): qdev: Fold state enum into bool realized qdev: Prepare "realized" property hw/qdev-addr.c | 2 +- hw/qdev-core.h | 11 ++--- hw/qdev-properties-system.c | 4 +- hw/qdev-properties.c | 24 +++++----- hw/qdev.c | 106 +++++++++++++++++++++++++++++++------= ------ 5 Dateien ge=C3=A4ndert, 97 Zeilen hinzugef=C3=BCgt(+), 50 Zeilen entfer= nt(-) --=20 1.7.10.4