s390x/virtio-ccw: fix vhost-scsi intialization
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 <thuth@linux.vnet.ibm.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
ef1df13087
commit
4b7757bae7
@ -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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user