qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] Convert to realize and improve error handling
@ 2017-07-26 12:02 Mao Zhongyi
  2017-07-26 12:02 ` [Qemu-devel] [PATCH 1/6] hw/ide: Convert DeviceClass init to realize Mao Zhongyi
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Mao Zhongyi @ 2017-07-26 12:02 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: John Snow, Kevin Wolf, Max Reitz, Keith Busch, Stefan Hajnoczi,
	Michael S. Tsirkin, Paolo Bonzini, Gerd Hoffmann,
	Markus Armbruster

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.

Cc: John Snow <jsnow@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>

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                | 21 +++++----
 hw/block/dataplane/virtio-blk.c | 16 ++++---
 hw/block/dataplane/virtio-blk.h |  6 +--
 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        | 10 ++---
 include/hw/ide/internal.h       |  5 ++-
 12 files changed, 135 insertions(+), 155 deletions(-)

-- 
2.9.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-08-02  8:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-26 12:02 [Qemu-devel] [PATCH 0/6] Convert to realize and improve error handling Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 1/6] hw/ide: Convert DeviceClass init to realize Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 2/6] hw/block/fdc: Convert " Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 3/6] hw/block/nvme: " Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 4/6] hw/block: Fix the return type Mao Zhongyi
2017-08-01 13:05   ` Stefan Hajnoczi
2017-08-01 14:29     ` Markus Armbruster
2017-08-02  7:51       ` Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 5/6] hw/block: Use errp directly rather than local_err Mao Zhongyi
2017-07-26 12:02 ` [Qemu-devel] [PATCH 6/6] dev-storage: Fix the unusual function name Mao Zhongyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).