net/virtio-user: enable feature checking
authorAdrian Moreno <amorenoz@redhat.com>
Wed, 5 Aug 2020 14:45:17 +0000 (16:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commitce40b4a881c89403b42f53503f7258d2ac9d79bc
tree634cb8460d26fee5738835c2ab0ae1b9e198a83f
parent0b0dc66c72774fc5de721f1ecf726f6fcb102dbe
net/virtio-user: enable feature checking

virtio 1.0 introduced a mechanism for the driver to verify that the
feature bits it sets are accepted by the device. This mechanism consists
in setting the VIRTIO_STATUS_FEATURE_OK status bit and re-reading it,
which gives a chance for the device to clear it if the features
were not accepted.

This is currently being done only in modern virtio-pci devices but since
the appropriate vhost-user messages have been added, it can also be done
in virtio-user (vhost-user only).

This patch activates this mechanism on virtio-user.

Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
drivers/net/virtio/virtio_ethdev.c