virtio: assert 32 bit features in transports
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Nov 2014 11:45:58 +0000 (13:45 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:24 +0000 (12:05 +0200)
commit93d389f82078cf7197152fb10d21977da0883420
treec168e5be2acd4e257212006a710af14df2185d80
parentd025477368792b272802146a86e41f81a54d8a19
virtio: assert 32 bit features in transports

At this point, no transports set any of the high 32 feature bits.
Since transports generally can't (yet) cope with such bits, add BUG_ON
checks to make sure they are not set by mistake.

Based on rproc patch by Rusty.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/lguest/lguest_device.c
drivers/misc/mic/card/mic_virtio.c
drivers/remoteproc/remoteproc_virtio.c
drivers/s390/kvm/kvm_virtio.c
drivers/s390/kvm/virtio_ccw.c
drivers/virtio/virtio_mmio.c
drivers/virtio/virtio_pci.c