HomeFreeBSD

bhyve: Drop volatile qualifiers from virtio rings

Description

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

(cherry picked from commit 593200c23b57ea6977bf5084b91fc5c63dacbb80)

Details

Provenance
markjAuthored on Nov 11 2022, 3:02 PM
Reviewer
corvink
Differential Revision
D37291: bhyve: Drop volatile qualifiers from virtio rings
Parents
rG385e330c1c5d: bhyve: Drop volatile qualifiers from snapshot code
Branches
Unknown
Tags
Unknown