Received: from eggs.gnu.org ([2001:4830:134:3::10]:38048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH1Zw-0005Uw-DR for qemu-devel@nongnu.org; Mon, 11 Aug 2014 22:12:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XH1Zq-0002eP-8v for qemu-devel@nongnu.org; Mon, 11 Aug 2014 22:12:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH1Zq-0002ds-20 for qemu-devel@nongnu.org; Mon, 11 Aug 2014 22:12:42 -0400 From: Fam Zheng Date: Tue, 12 Aug 2014 10:12:53 +0800 Message-Id: <1407809575-24576-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v4 0/2] scsi: Change device init to realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, armbru@redhat.com, stefanha@redhat.com, afaerber@suse.de v4: Add Andreas' and Stefan's rev-by for patch 1. Retain the error message in patch 2. DeviceClass->init is the old interface, let's convert scsi devices to the new ->realize API. A user visible change is the error message shown in qemu-iotests reference output, but only redundant error messages dropped. Fam Fam Zheng (2): block: Pass errp in blkconf_geometry scsi-bus: Convert DeviceClass init to realize hw/block/block.c | 18 +++++----- hw/block/virtio-blk.c | 7 ++-- hw/ide/qdev.c | 11 ++++-- hw/scsi/lsi53c895a.c | 1 + hw/scsi/scsi-bus.c | 70 +++++++++++++++++++------------------- hw/scsi/scsi-disk.c | 83 +++++++++++++++++++++++++--------------------- hw/scsi/scsi-generic.c | 37 ++++++++++----------- include/hw/block/block.h | 6 ++-- include/hw/scsi/scsi.h | 7 ++-- tests/qemu-iotests/051.out | 2 -- 10 files changed, 127 insertions(+), 115 deletions(-) -- 2.0.3