File 002-addhardware-network-adjust-supported-network-devices-for-bhyve.patch of Package virt-manager

Subject: addhardware: network: adjust supported network devices for bhyve
From: Roman Bogorodskiy bogorodskiy@gmail.com Wed Jul 30 08:00:51 2025 +0200
Date: Fri Sep 26 14:12:38 2025 -0400:
Git: ecd280d592b93dea2778f2c2146dc68c624caff3

 - Add bhyve to a list of guest types that support virtio device type
 - Do not include rtl8139 for bhyve

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>

diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 941dc82bb..7ce8db23c 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -613,13 +613,14 @@ class vmmAddHardware(vmmGObjectUI):
             return []
 
         ret = []
-        if guest.type in ["kvm", "qemu", "vz", "test"]:
+        if guest.type in ["bhyve", "kvm", "qemu", "vz", "test"]:
             ret.append("virtio")
         if guest.os.is_x86():
             if guest.os.is_q35():
                 ret.append("e1000e")
             else:
-                ret.append("rtl8139")
+                if guest.type not in ["bhyve"]:
+                    ret.append("rtl8139")
                 ret.append("e1000")
         if guest.type in ["xen", "test"]:
             ret.append("netfront")
openSUSE Build Service is sponsored by