From: Si-Wei Liu Date: Thu, 1 Oct 2020 20:09:45 +0000 (-0400) Subject: vhost-vdpa: negotiate VIRTIO_NET_F_STATUS with driver X-Git-Tag: v5.2.0-rc0~12^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9aa47edd4ee69fa0628c5f9adb52d5050a5bce6a;p=thirdparty%2Fqemu.git vhost-vdpa: negotiate VIRTIO_NET_F_STATUS with driver Vendor driver may not support or implement config interrupt delivery for link status notifications. In this event, vendor driver is expected to NACK the feature, but guest will keep link always up. Signed-off-by: Si-Wei Liu Message-Id: <1601582985-14944-1-git-send-email-si-wei.liu@oracle.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index e2b3ba85bf4..99c476db8cc 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -55,6 +55,7 @@ const int vdpa_feature_bits[] = { VIRTIO_F_IOMMU_PLATFORM, VIRTIO_F_RING_PACKED, VIRTIO_NET_F_GUEST_ANNOUNCE, + VIRTIO_NET_F_STATUS, VHOST_INVALID_FEATURE_BIT };