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
..
2014-07-11 21:31:55 +03:00
2014-08-15 19:12:48 +04:00
2013-12-24 18:02:18 +01:00
2014-06-30 21:13:30 +02:00
2014-08-26 13:20:44 +02:00
2014-08-15 18:54:06 +04:00
2014-08-14 13:22:00 +02:00
2014-05-28 17:36:21 +02:00
2014-06-27 13:48:22 +02:00
2014-06-30 21:13:30 +02:00
2014-07-08 15:08:03 +02:00
2014-06-30 21:13:30 +02:00
2014-08-18 12:06:21 +02:00