qdev: Add a get_dev_path() function to BusInfo
commit6772b9364a9ef8b44a7c4deef0544df95bf88741
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 25 Jun 2010 17:08:52 +0000 (25 11:08 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Jul 2010 15:36:28 +0000 (6 10:36 -0500)
treef933bd41b55cbdfdf9260774102f8c71b550ebf7
parent44ae28f3152138e71ccad66c201d730b93374bc2
qdev: Add a get_dev_path() function to BusInfo

This function is meant to provide a stable device path for buses
which are able to implement it.  If a bus has a globally unique
addresses scheme, one address level may be sufficient to provide
a path.  Other buses may need to recursively traverse up the
qdev tree.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.h