]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
virtio_mmio: Fix feature negotiation copy-paste issue in r361943
authorjrtc27 <jrtc27@FreeBSD.org>
Fri, 18 Dec 2020 15:07:14 +0000 (15:07 +0000)
committerjrtc27 <jrtc27@FreeBSD.org>
Fri, 18 Dec 2020 15:07:14 +0000 (15:07 +0000)
commit82d14de45ac9db35625b368e0bf3cdf4770bdc95
treea963aa3d61a5f0871265c789c3213267be8aae68
parentb5356223336d9a745b1ffe6a91e9c4f424a21a72
virtio_mmio: Fix feature negotiation copy-paste issue in r361943

This caused us to write to the low half of the feature word twice, once with
the high bits and once with the low bits. Common legacy device implementations
seem to be fairly lenient about being able to write to the feature bits
multiple times, but Arm's models use a stricter implementation that will ignore
the second write. This fixes using vtnet(4) on those models.

Reported by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Pointy hat: jrtc27
sys/dev/virtio/mmio/virtio_mmio.c