Skip to contentSkip to conversation

vhost-vdpa: negotiate VIRTIO_NET_F_STATUS with driver

PATCH In review Si-Wei Liu 3 participants 3 messages Oct 1, 2020 – Oct 15, 2020 Networking

lore
Share & tools
lore

Si-Wei Liu

author
#0 lore raw

PATCH 1/1 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.

---
 net/vhost-vdpa.c | 1 +
 1 file changed, 1 insertion(+)
net/vhost-vdpa.c +1 -0
index bc0e0d2..55e01d9 100644
@@ -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
 };
 
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Si-Wei Liu

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.

---
  net/vhost-vdpa.c | 1 +
  1 file changed, 1 insertion(+)
net/vhost-vdpa.c +0 -0
index bc0e0d2..55e01d9 100644

net/vhost-vdpa.c const int vdpa_feature_bits[] = { · line 61

Quoted 7 lines
net/vhost-vdpa.c +1 -0
@@ -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
  };
 

Michael, do you want to pick this patch or I will do that?

Thanks

#2 lore raw
Quoted 27 lines · Jason Wang
Quoted 15 lines · Si-Wei Liu

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.

---
  net/vhost-vdpa.c | 1 +
  1 file changed, 1 insertion(+)
net/vhost-vdpa.c +0 -0
index bc0e0d2..55e01d9 100644

net/vhost-vdpa.c const int vdpa_feature_bits[] = { · line 60

Quoted 6 lines
net/vhost-vdpa.c +1 -0
@@ -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
  };
Quoted 3 lines

Michael, do you want to pick this patch or I will do that?

Thanks

Tagged, thanks!