virtio: disallow late feature changes for virtio-1
commit6c0196d702e8482a17638ee79f45ce27cdd1ef5d
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 4 Jun 2015 10:34:14 +0000 (4 12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:04 +0000 (10 18:15 +0200)
treefa1acb490639089eaf69d9684f95b5b54ca877d5
parentf5a5628cf0b65b223fa0c9031714578dfac4cf04
virtio: disallow late feature changes for virtio-1

For virtio-1 devices, the driver must not attempt to set feature bits
after it set FEATURES_OK in the device status. Simply reject it in
that case.

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/virtio/virtio.c