-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
rhel-10.2
-
None
-
Yes
-
None
-
rhel-virt-networking-core
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
x86_64
-
None
What were you trying to do that didn't work?
start a VM with a direct macvtap interface which is built based an VF , the QEMU-KVM throws an error "Issue while setting TUNSETSTEERINGEBPF: Invalid argument with fd: 36, prog_fd: -1"
Please provide the package NVR for which the bug is seen:
Host: qemu-kvm-10.1.0-1.el10.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
- create a VF from an SR-IOV NIC
# echo 1 > /sys/bus/pci/devices/0000\:3b\:00.1/sriov_numvfs'
- start a VM with a direct interface which is built based on the VF
# virsh dumpxml rhel102 ... <interface type='direct'> <mac address='b6:13:5a:45:0a:2a'/> <source dev='ens1f1v0' mode='passthrough'/> <target dev='macvtap1'/> <model type='virtio'/> <driver name='vhost'/> <alias name='net1'/> </interface> ...
- check the qemu-kvm log
# cat /var/log/libvirt/qemu-kvm/rhel02.log
...
/usr/libexec/qemu-kvm \
-name guest=rhel102,debug-threads=on \
...
-netdev '{"type":"tap","fd":"36","vhost":true,"vhostfd":"37","id":"hostnet1"}' \
-device '{"driver":"virtio-net-pci","netdev":"hostnet1","id":"net1","mac":"b6:13:5a:45:0a:2a","bus":"pci.4","addr":"0x0"}' \
...
2025-09-15T09:05:51.425047Z qemu-kvm:
-device {"driver":"virtio-net-pci","netdev":"hostnet1","id":"net1","mac":"b6:13:5a:45:0a:2a","bus":"pci.4","addr":"0x0"}: Issue while setting TUNSETSTEERINGEBPF: Invalid argument with fd: 36, prog_fd: -1
2025-09-15T09:05:51.425085Z qemu-kvm:
-device {"driver":"virtio-net-pci","netdev":"hostnet1","id":"net1","mac":"b6:13:5a:45:0a:2a","bus":"pci.4","addr":"0x0"}: Issue while setting TUNSETSTEERINGEBPF: Invalid argument with fd: 36, prog_fd: -1
Expected results
No QEMU-KVM error
Actual results
The QEMU-KVM throws an error "Issue while setting TUNSETSTEERINGEBPF: Invalid argument with fd: 36, prog_fd: -1"