virtio: add low-level APIs for feature bits
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Nov 2014 19:19:02 +0000 (21:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:23 +0000 (12:05 +0200)
commitd4024af56f7c6cdb7e721994204fb07b2cda8be9
treead4b88708d07b9e0bab862d31d8e39cfd4e8ef85
parentb2776bf7149bddd1f4161f14f79520f17fc1d71d
virtio: add low-level APIs for feature bits

Add low level APIs to test/set/clear feature bits.
For use by transports, to make it easier to
write code independent of feature bit array format.

Note: APIs is prefixed with __ and has _bit suffix
to stress its low level nature.  It's for use by transports only:
drivers should use virtio_has_feature and never need to set/clear
features.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
include/linux/virtio_config.h