virtio-ccw: feature bits > 31 handling
commitb4f8f9df152fca0e79b7a3ca40a3eea700a40855
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 11 Sep 2015 13:16:43 +0000 (11 15:16 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Sep 2015 10:42:17 +0000 (24 13:42 +0300)
tree76dbd80abf6d613093e28ed7f350cc5bda016bc8
parent79cd0c80f82215a32890e3d30ff621b32ece5156
virtio-ccw: feature bits > 31 handling

We currently switch off the VERSION_1 feature bit if the guest has
not negotiated at least revision 1. As no feature bits beyond 31 are
valid however unless VERSION_1 has been negotiated, make sure that
legacy guests never see a feature bit beyond 31.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
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>
hw/s390x/virtio-ccw.c