virtio-ccw should now have everything in place to operate virtio 1.0 devices, so let's enable revision 1.
Signed-off-by: Cornelia Huck <cornelia.h...@de.ibm.com> Reviewed-by: Michael S. Tsirkin <m...@redhat.com> --- hw/s390x/virtio-ccw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 692ddd7..2c31399 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -104,7 +104,7 @@ struct VirtioCcwDevice { /* The maximum virtio revision we support. */ static inline int virtio_ccw_rev_max(VirtIODevice *vdev) { - return 0; + return vdev->host_features & (1ULL << VIRTIO_F_VERSION_1) ? 1 : 0; } /* virtual css bus type */ -- 2.3.8