Re: [PATCH v7 01/46] virtio: add low-level APIs for feature bits

Cornelia Huck
2014-12-01T09:09:11Z

On Sun, 30 Nov 2014 17:09:08 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> 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>
> ---
> include/linux/virtio_config.h | 53 ++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 50 insertions(+), 3 deletions(-)

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>