Received: from eggs.gnu.org ([2001:4830:134:3::10]:34430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du5xK-0002mp-Jr for qemu-devel@nongnu.org; Mon, 18 Sep 2017 20:00:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1du5xF-0007GY-VV for qemu-devel@nongnu.org; Mon, 18 Sep 2017 20:00:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47386) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1du5xF-0007Dr-Nt for qemu-devel@nongnu.org; Mon, 18 Sep 2017 19:59:57 -0400 References: From: John Snow Message-ID: <7f98890b-ee32-d539-0823-06544849457a@redhat.com> Date: Mon, 18 Sep 2017 19:59:48 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/6] Convert to realize and improve error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mao Zhongyi , qemu-devel@nongnu.org Cc: Kevin Wolf , "Michael S. Tsirkin" , Markus Armbruster , Max Reitz , Keith Busch , Gerd Hoffmann , Stefan Hajnoczi , Paolo Bonzini On 09/18/2017 10:05 AM, Mao Zhongyi wrote: > 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 > Cc: Kevin Wolf > Cc: Max Reitz > Cc: Keith Busch > Cc: Stefan Hajnoczi > Cc: "Michael S. Tsirkin" > Cc: Paolo Bonzini > Cc: Gerd Hoffmann > Cc: Markus Armbruster > > 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(-) > Hi Mao Zhongyi: I've staged patches one and two here for my IDE pull request. I think patches 3-6 here would belong to Kevin. Thanks, John