History | View | Annotate | Download (9.5 kB)
qdev: change first argument of qbus_create_inplace to void *
Make it clear that no BUS macro is needed in the callers (in fact itwouldn't work because the object has not been initialized yet with theright class).
Suggested-by: Andreas Faerber <afaerber@suse.de>...
qdev: add a maximum device allowed field for the bus.
Add a max_dev field to BusClass to specify the maximum amount of devices allowedon the bus (has no effect if max_dev=0)
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
qom: Extend documentation on QOM method concepts
Add a documentation section "Methods" and discuss among others how tohandle overriding virtual methods.
Clarify DeviceClass::realize documentation and refer to the above.
Signed-off-by: Andreas Färber <afaerber@suse.de>...
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 thatjust wraps DeviceClass::init, which it deprecates....
qdev: Fold state enum into bool realized
Whether the device was initialized or not is QOM-level information andcurrently unused. Drop it from device. This leaves the boolean state ofwhether or not DeviceClass::init was called or not, a.k.a. "realized"....
qdev: add qbus_reset_all
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom: move include files to include/qom/
qapi: move include files to include/qobject/
Create qemu-types.h for struct typedefs
Instead of keeping all those struct typedefs in qemu-common.h, move itto a header that can be safely included by other headers, containingonly the struct typedefs and not pulling in other dependencies.
Also, move some of the qdev-core.h typedefs to the new file, too, so...
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 latterwith a direct assignment of the @free function pointer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
qdev: Split up header so it can be used in cpu.h
Header file dependency is a frickin' nightmare right now. cpu.h tendsto get included in our 'include everything' header files but qdev alsoneeds to include those headers mainly for qdev-properties since it knows...