]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Drop volatile qualifiers from virtio rings
authorMark Johnston <markj@FreeBSD.org>
Fri, 11 Nov 2022 15:02:10 +0000 (10:02 -0500)
committerMark Johnston <markj@FreeBSD.org>
Fri, 11 Nov 2022 15:02:10 +0000 (10:02 -0500)
commit593200c23b57ea6977bf5084b91fc5c63dacbb80
tree7b83b2a594031e41b848b0ee6ac54cda709d2d50
parent691e23e6c5d9f46828cafbce156909d14bce635c
bhyve: Drop volatile qualifiers from virtio rings

The qualifiers are there presumably because these rings are mapped into
the guest, but they do not appear to be required for correctness, and
bhyve generally doesn't qualify accesses to guest memory this way.
Moreover, the qualifiers are discarded by snapshot code, causing clang
to emit warnings.  Just stop using volatile here.

MFC after: 2 weeks
Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D37291
usr.sbin/bhyve/virtio.c
usr.sbin/bhyve/virtio.h