qemu-e2k/hw/9pfs
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
..
codir.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
cofile.c hw/9pfs: fix P9_STATS_GEN handling 2014-02-02 22:09:16 +05:30
cofs.c hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
coxattr.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
Makefile.objs
virtio-9p-coth.c 9pfs: changed to use event_notifier instead of qemu_pipe 2015-01-09 23:41:11 +01:00
virtio-9p-coth.h 9pfs: changed to use event_notifier instead of qemu_pipe 2015-01-09 23:41:11 +01:00
virtio-9p-device.c virtio: feature bit manipulation helpers 2015-02-26 13:04:07 +01:00
virtio-9p-handle.c hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
virtio-9p-local.c hw/9pfs: Don't return type from host in readdir on local 9p filesystem 2014-09-04 10:51:13 -05:00
virtio-9p-posix-acl.c hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
virtio-9p-proxy.c virtio-9p-proxy: improve error messages in connect_namedsocket() 2014-11-02 10:04:34 +03:00
virtio-9p-proxy.h
virtio-9p-synth.c rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
virtio-9p-synth.h
virtio-9p-xattr-user.c hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
virtio-9p-xattr.c hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
virtio-9p-xattr.h hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
virtio-9p.c virtio: Drop superfluous conditionals around g_free() 2014-06-19 16:41:53 +03:00
virtio-9p.h virtio-9p: use standard headers 2015-02-26 13:04:04 +01:00