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-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-06-20 05:13:29 +04:00
2009-06-11 13:47:36 +01:00
2009-07-16 20:47:01 +00:00
2009-05-21 08:47:55 -05:00
2009-07-21 08:53:35 +00:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-07-16 17:28:51 -05:00
2009-06-16 15:18:37 -05:00
2009-05-14 22:35:08 +01:00
2009-06-04 13:12:05 +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-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-27 08:39:28 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-20 17:19:25 +00:00
2009-05-18 22:24:22 +02:00
2009-07-16 17:28:51 -05:00
2009-06-29 14:18:08 -05:00
2009-06-29 14:18:08 -05:00
2009-07-09 16:58:07 -05:00
2009-05-14 22:35:09 +01:00
2009-06-29 14:18:08 -05:00
2009-07-16 20:47:01 +00:00
2009-06-16 15:18:37 -05:00
2009-05-21 08:47:55 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 17:28:54 -05:00
2009-07-17 11:01:50 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 17:28:53 -05:00
2009-07-17 11:01:49 +00:00
2009-07-16 17:28:51 -05:00
2009-06-16 15:18:37 -05:00
2009-06-15 21:00:50 +02:00
2009-07-09 16:58:07 -05:00
2009-07-16 17:28:51 -05:00
2009-06-16 15:18:37 -05:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:51 -05:00
2009-06-15 21:00:50 +02:00
2009-07-20 06:56:23 +00:00
2009-07-16 20:47:01 +00:00
2009-05-22 10:50:33 -05:00
2009-07-16 08:28:12 -05:00
2009-07-16 08:28:12 -05:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-05-21 08:47:55 -05:00
2009-05-14 03:20:43 +04:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:50 -05: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-20 17:19:25 +00:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 20:47:01 +00:00
2009-07-17 11:01:50 +00:00
2009-07-09 16:06:39 -05:00
2009-07-09 16:06:38 -05:00
2009-06-16 15:18:37 -05:00
2009-07-16 20:47:01 +00:00
2009-07-22 10:58:47 -05:00
2009-07-16 17:28:51 -05:00
2009-06-29 14:18:08 -05:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:38 -05:00
2009-05-21 08:47:55 -05:00
2009-06-11 13:47:36 +01:00
2009-06-11 13:47:36 +01:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-07-09 16:58:07 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-05-26 21:10:38 +02:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:51 -05:00
2009-06-29 14:18:08 -05:00
2009-06-29 14:18:08 -05:00
2009-05-19 14:52:42 +01:00
2009-05-13 17:56:25 +01:00
2009-07-09 16:58:07 -05:00
2009-06-16 15:18:37 -05:00
2009-07-10 13:44:30 -05:00
2009-06-24 09:09:14 -05:00
2009-06-16 15:18:37 -05:00
2009-07-16 17:28:51 -05:00
2009-07-09 16:58:07 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-20 17:19:25 +00:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-07-27 08:39:28 -05:00
2009-06-22 10:15:28 -05:00
2009-05-13 17:53:17 +00:00
2009-07-16 08:28:10 -05:00
2009-06-29 14:18:07 -05:00
2009-07-27 08:39:29 -05:00
2009-07-09 13:07:02 +01:00
2009-06-29 14:18:08 -05:00
2009-07-16 17:28:51 -05:00
2009-05-14 03:20:43 +04:00
2009-06-29 14:18:08 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-05-21 18:54:22 +03:00
2009-06-29 14:18:08 -05:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-06-29 14:18:08 -05:00
2009-06-22 10:15:29 -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-07-26 06:31:15 +00:00
2009-07-26 06:31:15 +00:00
2009-07-20 17:19:25 +00:00
2009-07-12 23:32:11 +02:00
2009-06-22 10:15:29 -05:00
2009-07-20 10:37:51 +00:00
2009-06-16 15:18:37 -05:00
2009-06-03 15:16:49 +01:00
2009-07-16 17:28:51 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05: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-27 08:39:29 -05:00
2009-06-22 10:15:29 -05:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-06-22 10:15:29 -05:00
2009-07-09 13:07:02 +01:00
2009-06-20 05:13:29 +04:00
2009-07-21 19:25:59 +00:00
2009-07-20 17:19:25 +00:00
2009-05-13 17:53:17 +00:00
2009-05-14 22:35:07 +01:00
2009-05-13 17:53:17 +00:00
2009-05-14 22:35:09 +01:00
2009-06-29 14:18:08 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-05-13 17:53:17 +00:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-06-16 15:18:37 -05:00
2009-05-21 20:54:40 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 17:28:51 -05:00
2009-07-20 17:19:25 +00:00
2009-06-16 15:18:37 -05:00
2009-07-16 17:28:51 -05:00
2009-06-11 13:47:36 +01:00
2009-06-11 13:47:36 +01:00
2009-07-16 17:28:51 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 17:28:51 -05:00
2009-07-15 20:45:19 +00:00
2009-06-16 15:18:37 -05:00
2009-06-11 13:47:36 +01:00
2009-06-11 13:47:36 +01:00
2009-06-11 13:47:36 +01:00
2009-07-09 13:07:03 +01:00
2009-06-11 13:47:36 +01:00
2009-06-16 15:18:37 -05:00
2009-07-16 17:28:51 -05:00
2009-07-21 19:57:32 +00:00
2009-07-21 19:57:32 +00:00
2009-07-21 19:57:32 +00:00
2009-07-21 11:20:11 +00: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-06-16 15:18:37 -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-05-14 23:11:09 +01:00
2009-07-16 20:47:01 +00:00
2009-07-16 14:15:34 +00:00
2009-07-16 20:47:01 +00:00
2009-06-16 15:18:37 -05:00
2009-05-13 20:54:26 +01:00
2009-07-16 17:28:51 -05:00
2009-07-16 20:47:01 +00:00
2009-06-11 13:47:36 +01:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-06-29 14:18:08 -05:00
2009-07-16 20:47:01 +00:00
2009-05-13 17:53:17 +00:00
2009-07-16 20:47:01 +00:00
2009-07-09 16:58:07 -05:00
2009-07-20 17:19:25 +00:00
2009-05-22 10:50:34 -05:00
2009-07-20 17:19:25 +00:00
2009-07-09 13:07:02 +01:00
2009-06-22 10:15:29 -05:00
2009-05-13 17:56:25 +01:00
2009-07-20 17:19:25 +00:00
2009-05-18 18:26:33 +01:00
2009-05-14 22:35:08 +01:00
2009-06-24 09:09:15 -05:00
2009-06-24 09:09:15 -05:00
2009-05-18 18:26:33 +01:00
2009-05-14 22:35:08 +01:00
2009-07-22 10:58:49 -05:00
2009-06-09 11:38:50 +01:00
2009-07-16 17:28:53 -05:00
2009-07-09 16:58:08 -05:00
2009-06-24 09:09:15 -05:00
2009-06-22 10:15:29 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-06-11 13:47:36 +01:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-06-13 16:18:13 +03:00
2009-07-16 20:47:01 +00:00
2009-06-13 16:18:31 +03:00
2009-07-16 20:47:01 +00: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-06-16 15:18:37 -05:00
2009-07-16 17:28:51 -05:00
2009-07-16 20:47:01 +00:00