Skip to contentSkip to conversation

vfio-user: reject failover during init

PATCH Superseded Hugo Komatsu 3 participants 4 messages Aug 13 – Aug 14

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio-user: reject failover during init

Virtio-net failover is a networking feature that relies on a primary and standby device pair. This is not currently supported for vfio-user. Refuse initialization if this property is set.

Change-Id I80989ddb08a1cd3eba84bcf9b0edc26cb4a65669
---
 hw/vfio-user/pci.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/vfio-user/pci.c +5 -0
index ecc59a9642..34fa2f22b3 100644
@@ -251,6 +251,11 @@ static void vfio_user_pci_realize(PCIDevice *pdev, Error **errp)
         return;
     }
 
+    if (pdev->failover_pair_id) {
+        error_setg(errp, "vfio-user: failover is not supported");
+        return;
+    }
+
     sock_name = udev->socket->u.q_unix.path;
 
     vbasedev->name = g_strdup_printf("vfio-user:%s", sock_name);
Signature · 1 line
2.39.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Hugo Komatsu

Virtio-net failover is a networking feature that relies on a primary and standby device pair. This is not currently supported for vfio-user. Refuse initialization if this property is set.

Change-Id: I80989ddb08a1cd3eba84bcf9b0edc26cb4a65669

Please drop the Change-Id, that's a gerrit thing.

Otherwise,

regards
john

Reviewed-by on v1 1/1
#2 lore raw
In reply to Hugo Komatsu
Quoted 36 lines

-----Original Message-----
From: Hugo Komatsu <[email protected]>
Sent: 13 August 2026 12:31
To: John Levon <[email protected]>; Thanos Makatos <[email protected]>; Cédric Le Goater <[email protected]>; [email protected]
Cc: Hugo Komatsu <[email protected]>
Subject: [PATCH] vfio-user: reject failover during init

Virtio-net failover is a networking feature that relies on a primary and standby device pair. This is not currently supported for vfio-user. Refuse initialization if this property is set.

Change-Id I80989ddb08a1cd3eba84bcf9b0edc26cb4a65669
---
 hw/vfio-user/pci.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/vfio-user/pci.c +5 -0
index ecc59a9642..34fa2f22b3 100644
@@ -251,6 +251,11 @@ static void vfio_user_pci_realize(PCIDevice *pdev,
 Error **errp)
         return;
     }
 
+    if (pdev->failover_pair_id) {
+        error_setg(errp, "vfio-user: failover is not supported");
+        return;
+    }
+
     sock_name = udev->socket->u.q_unix.path;
 
     vbasedev->name = g_strdup_printf("vfio-user:%s", sock_name);
Quoted 2 lines

--
2.39.3

LGTM except the ChangeId John mentioned.

author Reviewed-by Thanos Makatos
#3 lore raw

Thanks Thanos and I actually fired off a v2 to the list yesterday that drops the Change-Id per John's feedback.
________________________________
From: Thanos Makatos <[email protected]>
Sent: Friday, August 14, 2026 7:29 AM
To: Hugo Komatsu <[email protected]>; John Levon <[email protected]>; Cédric Le Goater <[email protected]>; [email protected] <[email protected]>
Subject: RE: [PATCH] vfio-user: reject failover during init

Quoted 36 lines

-----Original Message-----
From: Hugo Komatsu <[email protected]>
Sent: 13 August 2026 12:31
To: John Levon <[email protected]>; Thanos Makatos <[email protected]>; Cédric Le Goater <[email protected]>; [email protected]
Cc: Hugo Komatsu <[email protected]>
Subject: [PATCH] vfio-user: reject failover during init

Virtio-net failover is a networking feature that relies on a primary and standby device pair. This is not currently supported for vfio-user. Refuse initialization if this property is set.

Change-Id I80989ddb08a1cd3eba84bcf9b0edc26cb4a65669
---
 hw/vfio-user/pci.c | 5 +++++
 1 file changed, 5 insertions(+)
hw/vfio-user/pci.c +5 -0
index ecc59a9642..34fa2f22b3 100644
@@ -251,6 +251,11 @@ static void vfio_user_pci_realize(PCIDevice *pdev,
 Error **errp)
         return;
     }
 
+    if (pdev->failover_pair_id) {
+        error_setg(errp, "vfio-user: failover is not supported");
+        return;
+    }
+
     sock_name = udev->socket->u.q_unix.path;
 
     vbasedev->name = g_strdup_printf("vfio-user:%s", sock_name);
Quoted 2 lines

--
2.39.3

LGTM except the ChangeId John mentioned.