Statistics
| Branch: | Revision:

root / hw / core / qdev.c @ 52190422

History | View | Annotate | Download (23.3 kB)

# Date Author Comment
99a0b036 08/16/2013 07:44 pm Eduardo Habkost

qdev: Set globals in instance_post_init function

This way, properties registered in the instance_init function of
child classes will be handled properly by qdev_prop_set_globals(), too.

Includes a unit test for the new functionality.

Signed-off-by: Eduardo Habkost <>...

bbfa18fc 05/30/2013 07:44 pm Amos Kong

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 bus
of 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...

b1fe9bcb 05/06/2013 08:40 pm Andreas Färber

qdev: Let qdev_prop_parse() pass through Error

Move error reporting to callers.

Reviewed-by: Eduardo Habkost <>
Signed-off-by: Andreas Färber <>

120dc38f 05/03/2013 08:05 pm Igor Mammedov

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 is
unplugged it will dereference NULL parent_bus in qdev_unplug().

Fix it by taking in account that parent_bus might be NULL and...

cffc5113 04/30/2013 05:52 pm Jan Kiszka

qdev: Report errors collected during device realization

Better than just releasing the error object silently.

Signed-off-by: Jan Kiszka <>
Reviewed-by: Andreas Färber <>
Message-id:
Signed-off-by: Anthony Liguori <>

a7ddba52 04/16/2013 02:19 am Igor Mammedov

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...

fe6c2117 04/16/2013 01:05 am Andreas Färber

qdev: Fix QOM unrealize behavior

Since commit 249d41720b7dfbb5951b430b9eefdbee7464f515 (qdev: Prepare
"realized" property) setting realized = true would register the device's
VMStateDescription, but realized = false would not unregister it. Fix that.

Moving the code from unparenting also revealed that we were calling...

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>