]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
virtio_mmio: Fix feature negotiation copy-paste issue in r361943
authorJessica Clarke <jrtc27@FreeBSD.org>
Fri, 18 Dec 2020 15:07:14 +0000 (15:07 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Fri, 18 Dec 2020 15:07:14 +0000 (15:07 +0000)
commit50a6b28a31a03bed650d8eb05b48b8268bac8d95
treea963aa3d61a5f0871265c789c3213267be8aae68
parentb62ae61446ee19ab524fea4a066f585cbd7aa727
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