]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
virtio_mmio: Negotiate the upper half of the feature bits too
authorjrtc27 <jrtc27@FreeBSD.org>
Mon, 8 Jun 2020 21:49:42 +0000 (21:49 +0000)
committerjrtc27 <jrtc27@FreeBSD.org>
Mon, 8 Jun 2020 21:49:42 +0000 (21:49 +0000)
commit342a2fa0ebadf412e3491aa2dd043a2efbb9630a
tree1b9561219d5e677eacac8000e1fc2b2271ffd689
parent7d94c999fc4326086ce3ad68bb5755cf6bd376be
virtio_mmio: Negotiate the upper half of the feature bits too

The feature bits are exposed as a 32-bit register with 2 banks, so we
should negotiate both halves. Notably, VIRTIO_F_VERSION_1 is in the
upper half, and will be used in an upcoming commit.

The PCI bus driver also has this bug, but the legacy BAR layout did not
include selector registers and is rather different from the modern
layout, so it remains solely as legacy.

Reviewed by: br, brooks (mentor), jhb (mentor)
Approved by: br, brooks (mentor), jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D25131
sys/dev/virtio/mmio/virtio_mmio.c