Gerd Hoffmann 8ffb1bcf56 qdev: bus walker + qdev_device_add()
This patch implements a parser and qdev tree walker for bus paths and
adds qdev_device_add on top of this.

A bus path can be:
  (1) full path, i.e. /i440FX-pcihost/pci.0/lsi/scsi.0
  (2) bus name, i.e. "scsi.0".  Best used together with id= to make
      sure this is unique.
  (3) relative path starting with a bus name, i.e. "pci.0/lsi/scsi.0"

For the (common) case of a single child bus being attached to a device
it is enougth to specify the device only, i.e. "pci.0/lsi" will be
accepted too.

qdev_device_add() adds devices and accepts bus= parameters to find the
bus the device should be attached to.  Without bus= being specified it
takes the first bus it finds where the device can be attached to (i.e.
first pci bus for pci devices, ...).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-07-27 08:39:29 -05:00
..
2009-07-16 17:28:53 -05:00
2009-06-29 14:18:08 -05:00
2009-07-21 08:53:35 +00:00
2009-07-16 17:28:51 -05:00
2009-05-14 22:35:08 +01:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-06-13 19:17:11 -05:00
2009-07-27 08:39:28 -05:00
2009-07-16 17:28:51 -05:00
2009-06-29 14:18:08 -05:00
2009-05-14 22:35:09 +01:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:53 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-20 06:56:23 +00:00
2009-07-16 08:28:12 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:51 -05:00
2009-07-17 11:01:50 +00:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-05-13 17:56:25 +01:00
2009-07-10 13:44:30 -05:00
2009-06-24 09:09:14 -05:00
2009-07-16 17:28:51 -05:00
2009-07-27 08:39:29 -05:00
2009-07-09 13:07:02 +01:00
2009-07-16 17:28:51 -05:00
2009-06-17 15:49:37 +00:00
2009-06-17 15:49:37 +00:00
2009-07-26 06:31:32 +00:00
2009-06-03 15:16:49 +01:00
2009-05-14 22:35:09 +01:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-27 08:39:29 -05:00
2009-07-27 08:39:29 -05:00
2009-07-21 19:25:59 +00:00
2009-05-14 22:35:07 +01:00
2009-05-14 22:35:09 +01:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-05-13 20:54:26 +01:00
2009-07-16 17:28:51 -05:00
2009-05-13 17:56:25 +01:00
2009-05-18 18:26:33 +01:00
2009-05-18 18:26:33 +01:00
2009-05-14 22:35:08 +01:00
2009-07-09 16:58:08 -05:00
2009-06-22 10:15:29 -05:00
2009-06-13 16:18:31 +03:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00