virtio: Fix handling of feature bits >= 32
authorsf <sf@openbsd.org>
Sat, 2 Dec 2023 10:01:35 +0000 (10:01 +0000)
committersf <sf@openbsd.org>
Sat, 2 Dec 2023 10:01:35 +0000 (10:01 +0000)
commitc0ea3bd1e6801244e065cf90f8a4247feb3cf3d6
treeea8ff14d17036d017399029df30a73cafecb5505
parent651f1b45a770aa26f1fbc833b81d0ae43021a533
virtio: Fix handling of feature bits >= 32

Fix handling of feature bits >= 32.  This does not yet affect any driver
as no high feature bit besides VERSION_1 is used, and that one has
special handling.

Also, with VIRTIO_DEBUG, simply walk through all transport and device
feature names, so that we don't need to adjust the if clause whenever
the standard introduces new transport features.

ok jan@ bluhm@
sys/dev/pv/virtio.c
sys/dev/pv/virtiovar.h