History | View | Annotate | Download (23.3 kB)
qdev: Set globals in instance_post_init function
This way, properties registered in the instance_init function ofchild classes will be handled properly by qdev_prop_set_globals(), too.
Includes a unit test for the new functionality.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>...
qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path
Recent virtio refactoring in QEMU made virtio-bus become the parent busof scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation,typename will be added to fw_dev_path by default, the new fw_dev_path...
qdev: Let qdev_prop_parse() pass through Error
Move error reporting to callers.
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
qdev: skip bus check for bus-less devices in qdev_unplug()
Since commit 2f7bd829db "qdev: Fix device_add bus assumptions" it's possible to device_add bus-less device, but if such device isunplugged it will dereference NULL parent_bus in qdev_unplug().
Fix it by taking in account that parent_bus might be NULL and...
qdev: Report errors collected during device realization
Better than just releasing the error object silently.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Reviewed-by: Andreas Färber <afaerber@suse.de>Message-id: 517E68FC.6030400@siemens.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev: Set device's parent before calling realize() down inheritance chain
Currently device_set_realized() sets parent only after device was realized,but qdev_device_add() sets it before device is realized.Make behavior consistent and alter device_set_realized() to behave like...
qdev: Fix QOM unrealize behavior
Since commit 249d41720b7dfbb5951b430b9eefdbee7464f515 (qdev: Prepare"realized" property) setting realized = true would register the device'sVMStateDescription, but realized = false would not unregister it. Fix that.
Moving the code from unparenting also revealed that we were calling...
hw: move target-independent files to subdirectories
This patch tackles all files that are compiled once, movingthem to subdirectories of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>