Fam Zheng a818a4b69d scsi-bus: Convert DeviceClass init to realize
Replace "init/destroy" with "realize/unrealize" in SCSIDeviceClass,
which has errp as a parameter. So all the implementations now use
error_setg instead of error_report for reporting error.

Also in scsi_bus_legacy_handle_cmdline, report the error when
initializing the if=scsi devices, before returning it, because in the
callee, error_report is changed to error_setg. And the callers don't
have the right locations (e.g. "-drive if=scsi").

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-08-26 13:20:44 +02:00
..
2013-06-07 14:55:33 +02:00
2013-12-17 20:12:51 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-08-14 13:22:25 +02:00
2014-02-26 17:20:00 +00:00
2014-02-14 16:22:31 +01:00
2013-07-29 21:06:27 +02:00
2014-06-19 18:44:22 +03:00
2014-06-27 13:48:23 +02:00
2014-02-27 10:01:40 +00:00
2014-03-05 03:06:46 +01:00
2014-02-10 10:23:35 +02:00
2013-06-27 15:38:35 -05:00
2014-07-01 04:12:48 +02:00
2014-05-28 17:36:21 +02:00
2013-05-01 20:55:21 +04:00