Am 10.06.2011 um 14:51 schrieb Anthony Liguori:
The trouble is that I don't think we have a reasonable way to refer
to properties of other devices and we don't have names for all
devices. I think if we fix the later problem, the former problem
becomes easier.
For the former issue I sent a patch "qdev: Add helpers for reading
properties" yesterday:
http://patchwork.ozlabs.org/patch/99536/
That allows to access properties of arbitrary DeviceState by name,
e.g., qdev_prop_get_uint32(dev, "irq").
It currently depends on the open question of how to model bool
properties but I can reorder the two if needed.
Andreas