mirror of
https://github.com/qemu/qemu.git
synced 2025-10-27 22:03:47 +00:00
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>
|
||
|---|---|---|
| .. | ||
| codir.c | ||
| cofile.c | ||
| cofs.c | ||
| coxattr.c | ||
| Makefile.objs | ||
| virtio-9p-coth.c | ||
| virtio-9p-coth.h | ||
| virtio-9p-device.c | ||
| virtio-9p-handle.c | ||
| virtio-9p-local.c | ||
| virtio-9p-posix-acl.c | ||
| virtio-9p-proxy.c | ||
| virtio-9p-proxy.h | ||
| virtio-9p-synth.c | ||
| virtio-9p-synth.h | ||
| virtio-9p-xattr-user.c | ||
| virtio-9p-xattr.c | ||
| virtio-9p-xattr.h | ||
| virtio-9p.c | ||
| virtio-9p.h | ||