virtio: allow to fail setting status
commit0b352fd680e1ca7827ddea47b5e9b603320913b6
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 4 Jun 2015 10:34:15 +0000 (4 12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:04 +0000 (10 18:15 +0200)
tree2bceeeada8b354bac0e3be5de94fe5d07783d1d4
parent6c0196d702e8482a17638ee79f45ce27cdd1ef5d
virtio: allow to fail setting status

virtio-1 allow setting of the FEATURES_OK status bit to fail if
the negotiated feature bits are inconsistent: let's fail
virtio_set_status() in that case and update virtio-ccw to post an
error to the guest.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/s390x/virtio-ccw.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h