Statistics
| Branch: | Revision:

root / hw / qdev-core.h @ 53111180

History | View | Annotate | Download (9.5 kB)

# Date Author Comment
39355c38 02/01/2013 11:53 pm Paolo Bonzini

qdev: change first argument of qbus_create_inplace to void *

Make it clear that no BUS macro is needed in the callers (in fact it
wouldn't work because the object has not been initialized yet with the
right class).

Suggested-by: Andreas Faerber <>...

1395af6f 01/21/2013 09:23 pm KONRAD Frederic

qdev: add a maximum device allowed field for the bus.

Add a max_dev field to BusClass to specify the maximum amount of devices allowed
on the bus (has no effect if max_dev=0)

Signed-off-by: KONRAD Frederic <>

Reviewed-by: Peter Maydell <>...

782beb52 01/17/2013 03:33 pm Andreas Färber

qom: Extend documentation on QOM method concepts

Add a documentation section "Methods" and discuss among others how to
handle overriding virtual methods.

Clarify DeviceClass::realize documentation and refer to the above.

Signed-off-by: Andreas Färber <>...

249d4172 01/16/2013 02:27 am Andreas Färber

qdev: Prepare "realized" property

Introduce the QOM realizefn suggested by Anthony.
Detailed documentation is supplied in the qdev header.

For now this implements a default DeviceClass::realize callback that
just wraps DeviceClass::init, which it deprecates....

7983c8a3 01/16/2013 02:26 am Andreas Färber

qdev: Fold state enum into bool realized

Whether the device was initialized or not is QOM-level information and
currently unused. Drop it from device. This leaves the boolean state of
whether or not DeviceClass::init was called or not, a.k.a. "realized"....

d0508c36 01/10/2013 11:22 pm Paolo Bonzini

qdev: add qbus_reset_all

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

14cccb61 12/19/2012 09:31 am Paolo Bonzini

qom: move include files to include/qom/

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

394e1bb7 12/06/2012 10:17 am Eduardo Habkost

Create qemu-types.h for struct typedefs

Instead of keeping all those struct typedefs in qemu-common.h, move it
to a header that can be safely included by other headers, containing
only the struct typedefs and not pulling in other dependencies.

Also, move some of the qdev-core.h typedefs to the new file, too, so...

64b625f4 11/26/2012 09:41 pm Paolo Bonzini

qdev: simplify (de)allocation of buses

All conditional deallocation can now be done with object_delete.
Remove the @qom_allocated and @glib_allocated fields; replace the latter
with a direct assignment of the @free function pointer.

Signed-off-by: Paolo Bonzini <>...

074a86fc 11/15/2012 03:18 am Anthony Liguori

qdev: Split up header so it can be used in cpu.h

Header file dependency is a frickin' nightmare right now. cpu.h tends
to get included in our 'include everything' header files but qdev also
needs to include those headers mainly for qdev-properties since it knows...