qemu/include/hw/virtio
Cornelia Huck 0cd09c3a6c virtio: feature bit manipulation helpers
Add virtio_{add,clear}_feature helper functions for manipulating a
feature bits variable. This has some benefits over open coding:
- add check that the bit is in a sane range
- make it obvious at a glance what is going on
- have a central point to change when we want to extend feature bits

Convert existing code manipulating features to use the new helpers.

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>
2015-02-26 13:04:07 +01:00
..
dataplane virtio: use standard virtio_ring.h 2015-02-26 13:04:03 +01:00
vhost-backend.h virtio: Move extern declaration to header file 2014-08-09 00:06:32 +04:00
vhost-scsi.h vhost-scsi: add a property for booting 2015-02-11 21:47:52 +01:00
vhost.h vhost: block migration if backend does not log memory 2014-06-23 17:37:59 +03:00
virtio-9p.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-access.h virtio: memory accessors for endian-ambivalent targets 2014-06-29 19:39:42 +03:00
virtio-balloon.h virtio-balloon: use standard headers 2015-02-26 13:04:03 +01:00
virtio-blk.h virtio-blk: switch to standard-headers 2015-02-26 13:04:04 +01:00
virtio-bus.h virtio: cull virtio_bus_set_vdev_features 2015-02-26 13:04:07 +01:00
virtio-net.h virtio-net,tap: use standard-headers 2015-02-26 13:04:04 +01:00
virtio-rng.h virtio-rng: use standard-headers 2015-02-26 13:04:04 +01:00
virtio-scsi.h virtio-scsi: use standard-headers 2015-02-26 13:04:05 +01:00
virtio-serial.h virtio-serial: switch to standard-headers 2015-02-26 13:04:05 +01:00
virtio.h virtio: feature bit manipulation helpers 2015-02-26 13:04:07 +01:00