virtio: cull virtio_bus_set_vdev_features
commita590fd5ba8f01724eee169f097f65603f0c3a8f8
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 11 Dec 2014 13:25:04 +0000 (11 14:25 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 12:04:07 +0000 (26 13:04 +0100)
treef5fc91effb532fffd34de7079e9f28ef0005919c
parentad67a0f278ff9ad036a986384f1e3e94717af08e
virtio: cull virtio_bus_set_vdev_features

The only user of this function was virtio-ccw, and it should use
virtio_set_features() like everybody else: We need to make sure
that bad features are masked out properly, which this function did
not do.

Reviewed-by: Thomas Huth <thuth@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
hw/virtio/virtio-bus.c
include/hw/virtio/virtio-bus.h