Gerd Hoffmann 81a322d4a1 qdev: add return value to init() callbacks.
Sorry folks, but it has to be.  One more of these invasive qdev patches.

We have a serious design bug in the qdev interface:  device init
callbacks can't signal failure because the init() callback has no
return value.  This patch fixes it.

We have already one case in-tree where this is needed:
Try -device virtio-blk-pci (without drive= specified) and watch qemu
segfault.  This patch fixes it.

With usb+scsi being converted to qdev we'll get more devices where the
init callback can fail for various reasons.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-08-27 20:43:28 -05:00
..
2009-08-27 20:30:22 -05:00
2009-06-29 14:18:08 -05:00
2009-08-27 20:35:30 -05:00
2009-05-08 02:35:15 +01:00
2009-05-14 22:35:08 +01:00
2009-05-12 12:33:04 +01:00
2009-06-13 19:17:11 -05:00
2008-04-08 06:01:02 +00:00
2009-07-27 08:39:28 -05:00
2008-12-13 09:32:43 +00:00
2009-08-27 20:30:20 -05:00
2009-07-27 14:08:23 -05:00
2009-05-14 22:35:09 +01:00
2009-06-29 14:18:08 -05:00
2009-05-10 01:44:56 +01:00
2009-01-14 14:47:56 +00:00
2009-07-27 14:08:23 -05:00
2009-08-27 20:30:11 -05:00
2009-03-28 16:17:50 +00:00
2009-05-10 01:44:56 +01:00
2004-11-07 18:04:02 +00:00
2009-07-27 14:08:23 -05:00
2009-07-27 14:08:23 -05:00
2009-08-27 20:30:21 -05:00
2009-08-24 08:01:42 -05:00
2009-08-27 20:30:20 -05:00
2009-03-04 07:20:40 +00:00
2009-07-27 14:08:23 -05:00
2009-05-10 01:44:56 +01:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2009-08-27 20:30:11 -05:00
2009-08-27 20:30:11 -05:00
2009-05-13 17:56:25 +01:00
2009-06-24 09:09:14 -05:00
2009-07-27 14:08:23 -05:00
2009-08-27 20:35:24 -05:00
2009-08-24 08:01:42 -05:00
2009-07-27 14:08:13 -05:00
2009-08-27 20:30:22 -05:00
2009-05-10 01:44:56 +01:00
2009-08-15 14:27:05 +00:00
2009-08-15 14:27:05 +00:00
2009-08-10 13:05:28 -05:00
2009-08-15 14:27:05 +00:00
2009-06-17 15:49:37 +00:00
2009-07-26 06:31:32 +00:00
2009-08-16 11:54:37 +00:00
2009-08-27 20:30:11 -05:00
2009-08-25 18:29:31 +00:00
2009-08-10 13:05:28 -05:00
2009-06-03 15:16:49 +01:00
2009-08-27 20:30:22 -05:00
2008-12-13 09:32:43 +00:00
2009-03-31 17:18:10 +00:00
2009-05-14 22:35:09 +01:00
2009-07-16 17:28:51 -05:00
2009-08-13 16:26:52 +00:00
2009-08-25 18:29:31 +00:00
2009-08-27 20:30:20 -05:00
2009-05-14 22:35:07 +01:00
2009-05-14 22:35:09 +01:00
2009-05-10 01:44:56 +01:00
2009-07-16 17:28:51 -05:00
2009-05-13 20:54:26 +01:00
2009-05-10 01:44:56 +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-08-10 13:05:28 -05:00
2009-08-27 20:35:24 -05:00
2009-08-27 20:35:24 -05:00
2009-07-27 14:08:23 -05:00
2009-04-23 18:29:47 +00:00
2009-07-27 14:08:23 -05:00
2009-06-13 16:18:31 +03:00
2009-07-16 17:28:51 -05:00