Received: from eggs.gnu.org ([2001:4830:134:3::10]:51288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbSTw-0007m6-Tz for qemu-devel@nongnu.org; Tue, 07 Oct 2014 06:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbSTl-0007hY-JG for qemu-devel@nongnu.org; Tue, 07 Oct 2014 06:59:04 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:51655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbSTl-0007hL-91 for qemu-devel@nongnu.org; Tue, 07 Oct 2014 06:58:53 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Oct 2014 11:58:52 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 8DA192190046 for ; Tue, 7 Oct 2014 11:58:28 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s97Awo5s59506694 for ; Tue, 7 Oct 2014 10:58:50 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s97AwoCu021229 for ; Tue, 7 Oct 2014 04:58:50 -0600 From: Cornelia Huck Date: Tue, 7 Oct 2014 12:58:35 +0200 Message-Id: <1412679515-19330-9-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1412679515-19330-1-git-send-email-cornelia.huck@de.ibm.com> References: <1412679515-19330-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 8/8] s390x/virtio-ccw: fix vhost-scsi intialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, agraf@suse.de The vhost-scsi-ccw backend is of type VHostSCSICcw, not VirtIOSCSICcw. This fixes a segfault when invoking qemu-system-s390x -device vhost-scsi-ccw,? Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- hw/s390x/virtio-ccw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index e7d3ea1..18ba29f 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -1528,7 +1528,7 @@ static void vhost_ccw_scsi_class_init(ObjectClass *klass, void *data) static const TypeInfo vhost_ccw_scsi = { .name = TYPE_VHOST_SCSI_CCW, .parent = TYPE_VIRTIO_CCW_DEVICE, - .instance_size = sizeof(VirtIOSCSICcw), + .instance_size = sizeof(VHostSCSICcw), .instance_init = vhost_ccw_scsi_instance_init, .class_init = vhost_ccw_scsi_class_init, }; -- 1.7.9.5