Re: [Qemu-devel] [PATCH v2 01/12] qdev: export and use qbus_init

2013-01-21 Thread Paolo Bonzini
Il 21/01/2013 14:01, Andreas Färber ha scritto: >> > BusState subclasses need to do their own allocation because >> > qbus_create_inplace calls object_initialize (which wipes out the >> > "free" callback). This patch separates the initialization of the object >> > (object_initialize) from its inse

[Qemu-devel] [PATCH v2 01/12] qdev: export and use qbus_init

2013-01-21 Thread Paolo Bonzini
BusState subclasses need to do their own allocation because qbus_create_inplace calls object_initialize (which wipes out the "free" callback). This patch separates the initialization of the object (object_initialize) from its insertion in the qdev tree (qbus_realize); to do so, it moves the remain

Re: [Qemu-devel] [PATCH v2 01/12] qdev: export and use qbus_init

2013-01-21 Thread Andreas Färber
Am 21.01.2013 13:30, schrieb Paolo Bonzini: > BusState subclasses need to do their own allocation because > qbus_create_inplace calls object_initialize (which wipes out the > "free" callback). This patch separates the initialization of the object > (object_initialize) from its insertion in the qde