https://bugs.dpdk.org/show_bug.cgi?id=2067
Bug ID: 2067
Summary: [dpdk-26.11]vm2vm_virtio_pmd/vm2vm_vhost_user_virtio95
_pmd_with_mergeable_path_with_payload_valid_check:
start dpdk-pdump in VM with virtio-0.95 protocol
failed
Product: DPDK
Version: 26.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: vhost/virtio
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
--------------------------------------------------------------------------------
DPDK version: dpdk 9a45341f18 (HEAD -> main, tag: v26.11-rc1, origin/main,
origin/HEAD) version: 26.11-rc1
Other software versions: QEMU emulator version 11.1.2
OS: Ubuntu26.04.1 LTS/7.0.0-38-generic
Compiler: gcc version 13.3.0
Hardware platform: Intel(R) Xeon(R) Platinum 8468H
--------------------------------------------------------------------------------
Test Setup
Steps to reproduce
1. Use the following command to build DPDK:
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc
-Dmax_lcores=160
ninja -C x86_64-native-linuxapp-gcc
2.Use the following command to launch dpdk-testpmd in Host:
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4
--file-prefix=vhost-user --no-pci \
--vdev 'net_vhost0,iface=vhost-net0,queues=1' \
--vdev 'net_vhost1,iface=vhost-net1,queues=1' \
-- -i --nb-cores=1 --txd=1024 --rxd=1024
testpmd> set fwd mac
testpmd> start
3.Use the following command to launch VM by QEMU with virtio95:
taskset -c 20,21,22,23,24,25,26,27 /home/qemu-11.1/bin/qemu-system-x86_64 -name
vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize \
-monitor unix:/tmp/vm0_monitor.sock,server,nowait \
-netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6000-:22 \
-device e1000,netdev=nttsip1 \
-chardev socket,id=char0,path=/root/dpdk/vhost-net0 \
-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \
-device
virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on
\
-cpu host -smp 8 -m 8192 \
-object memory-backend-file,id=mem,size=8192M,mem-path=/dev/hugepages,share=on
\
-numa node,memdev=mem -mem-prealloc \
-chardev socket,path=/tmp/vm0_qga0.sock,server,nowait,id=vm0_qga0 \
-device virtio-serial \
-device virtserialport,chardev=vm0_qga0,name=org.qemu.guest_agent.0 -vnc :4 \
-drive file=/home/image/ubuntu1.img
4.Use the following command to enter the VM, bind virtio-net-pci to vfio-pci
and start dpdk-testpmd in VM:
ssh [email protected] -p 6000
cd dpdk;./usertools/dpdk-hugepages.py -p 2M --setup 2G
modprobe vfio-pci
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
./usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:00:04.0
dpdk# ./usertools/dpdk-devbind.py -s
Network devices using DPDK-compatible driver
============================================
0000:00:04.0 'Virtio network device 1000' drv=vfio-pci unused=virtio_pci
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 4 -a 0000:00:04.0
--file-prefix=virtio_898526_20261020104610 \
-- -i --rx-offloads=0x00002000 --txd=1024 --rxd=1024 --max-pkt-len=9600
testpmd> set fwd rxonly
testpmd> start
5.Use the following command to create a new SSH connection and start dpdk-pdump
APP in VM:
ssh [email protected] -p 6000
x86_64-native-linuxapp-gcc/app/dpdk-pdump -v
--file-prefix=virtio_898526_20261020104610 -- --pdump
'port=0,queue=*,rx-dev=/root/pdump-rx.pcap,mbuf-size'
Show the output from the previous commands::
dpdk# x86_64-native-linuxapp-gcc/app/dpdk-pdump -v
--file-prefix=virtio_898526_20261020104610 -- --pdump
'port=0,queue=*,rx-dev=/root/pdump-rx.pcap,mbuf-size=8000'
EAL: Detected CPU lcores: 8
EAL: Detected NUMA nodes: 1
EAL: RTE Version: 'DPDK 26.11.0-rc0'
EAL: Detected static linkage of DPDK
EAL: Multi-process socket
/var/run/dpdk/virtio_898526_20261020104610/mp_socket_1513_42ae79e13e
EAL: VFIO support initialized: group mode, IOVA as PA
EAL: Selected IOVA mode 'PA'
VIRTIO_INIT: eth_virtio_pci_init(): Failed to remap PCI device
EAL: Failed to probe device 0000:00:04.0
EAL: Error - exiting with code: 1
No Ethernet ports - bye
root@ubuntu26:~/dpdk#
--------------------------------------------------------------------------------
Expected Result
start dpdk-pdump successfully
--------------------------------------------------------------------------------
Is this issue a regression: (Y/N) Y
Version the regression was introduced:
commit 63a0dbf661e5b92ab1bef9c1b22f3477520e63c2 (HEAD ->
8-63a0dbf661-F-badcommit)
Author: David Marchand <[email protected]>
Date: Wed Oct 14 18:43:10 2026 +0200
interrupts: mark FDs invalid on allocation
Initialize fd, dev_fd, and all efds array elements as invalid in
rte_intr_instance_alloc().
This follows Unix convention, avoiding confusion with fd 0
which could result from zero-initialization.
Update the API documentation to reflect this behavior and add a
unit test check to verify the fd is invalid after allocation.
Update the FreeBSD PCI implementation that checked against a 0 FD.
Add a hack in the unit test to let the UIO simulated tests pass.
Remove now-redundant initialization calls that were setting the fd
invalid right after allocation.
Signed-off-by: David Marchand <[email protected]>
--
You are receiving this mail because:
You are the assignee for the bug.