This series mainly implements the conversions of ide, floppy and nvme device to realize. Add some error handling messages and remove the local variable local_err, use errp to propagate the error directly. Also fix the unusual function name.
v3: -patch1: update the test output in 051 [John Snow] -patch2: update the test putput in 172 [John Snow] v2: -use bool as the return type instead of int. [Markus Armbruster & Stefan Hajnoczi] Cc: John Snow <[email protected]> Cc: Kevin Wolf <[email protected]> Cc: Max Reitz <[email protected]> Cc: Keith Busch <[email protected]> Cc: Stefan Hajnoczi <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Markus Armbruster <[email protected]> Mao Zhongyi (6): hw/ide: Convert DeviceClass init to realize hw/block/fdc: Convert to realize hw/block/nvme: Convert to realize hw/block: Fix the return type hw/block: Use errp directly rather than local_err dev-storage: Fix the unusual function name hw/block/block.c | 15 ++++--- hw/block/dataplane/virtio-blk.c | 12 +++--- hw/block/dataplane/virtio-blk.h | 2 +- hw/block/fdc.c | 48 +++++++++------------ hw/block/nvme.c | 24 +++++------ hw/block/virtio-blk.c | 17 +++----- hw/ide/core.c | 7 +-- hw/ide/qdev.c | 94 +++++++++++++++++++---------------------- hw/scsi/scsi-disk.c | 13 ++---- hw/usb/dev-storage.c | 29 ++++++------- include/hw/block/block.h | 4 +- include/hw/ide/internal.h | 5 ++- tests/qemu-iotests/051.pc.out | 10 +---- tests/qemu-iotests/172.out | 8 ---- 14 files changed, 127 insertions(+), 161 deletions(-) -- 2.9.4
