virtio-scsi: handle virtio_scsi_set_config() error
commitad14a46a36c6a17bd3d3445a8b0e1f6d421feac2
authorGreg Kurz <groug@kaod.org>
Fri, 30 Sep 2016 15:13:48 +0000 (30 17:13 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Oct 2016 22:16:59 +0000 (10 01:16 +0300)
tree0757f9099686b65fc99a97a6fec7e030a640c4c5
parent661e32fb3cb71c7e019daee375be4bb487b9917c
virtio-scsi: handle virtio_scsi_set_config() error

This error is caused by a buggy guest: let's switch the device to the
broken state instead of terminating QEMU.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/virtio-scsi.c