From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCAGH-0001KW-0N for qemu-devel@nongnu.org; Mon, 26 Mar 2012 09:47:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCAGB-0003fS-TE for qemu-devel@nongnu.org; Mon, 26 Mar 2012 09:47:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:41056 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCAGB-0003d9-Mu for qemu-devel@nongnu.org; Mon, 26 Mar 2012 09:46:59 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 26 Mar 2012 15:46:49 +0200 Message-Id: <1332769612-4247-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 RFC 0/3] qom: Generalize qdev init to "realize" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori , Wanpeng Li Hello Anthony, Here's a mini series introducing ObjectClass::realize(Object *) and forwarding it to existing DeviceClass::init(DeviceState *). I've also added a convenience wrapper for setting the "realized" property and doing error checking and exit, tested with the SH7750 SoC. Regards, Andreas Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Wanpeng Li Andreas F=C3=A4rber (3): qom: Add "realized" property to Object qom: Introduce object_realize() qdev: Hook up DeviceClass::init to ObjectClass::realize hw/qdev.c | 13 +++++++++++++ include/qemu/object.h | 11 +++++++++++ qom/object.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 0 deletions(-) --=20 1.7.7