« Previous | Next » 

Revision a7ddba52

IDa7ddba527c0b9dd32dfa7e35fa41701f990a3db4

Added by Igor Mammedov about 11 years ago

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_device_add().

It will allow to set link<> properties in realize() method in classes
inherited from DEVICE.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences