Virtualization

KVM guests lose incoming packets under sustained throughput when SR‑IOV VFs are bound with VFIO — guests keep interface up but RX halts

Environment

Environment

KVM/QEMU host on Ubuntu 22.04 with kernel 5.15, Intel NIC that supports SR‑IOV. SR‑IOV enabled and VFs bound to guest VMs via vfio-pci. Guests run Debian 11 and see VF as a virtio-like passthrough device. Issue observed after enabling SR‑IOV and VFIO following a host driver/firmware update.

Symptoms

Symptoms

Guest VMs can establish connections and transmit (TX) but under sustained high incoming throughput (large downloads or many concurrent connections) the guest's RX stops — counters for RX stop increasing while TX still works. Interface stays administratively up inside the guest; restarting the guest NIC or re-binding VF temporarily restores traffic.

Observations

Observations

Host dmesg shows vfio and igb/ixgbe driver messages indicating VF reset or 'link state changed' around the time of stalls. ethtool -S on host VF shows ring overruns and queue drops during the incident. Disabling offloads on guest (ethtool -K) reduces the frequency of stalls. Migrating the affected VM to a host without the recent driver/firmware change eliminates the problem for the same workload.

Already attempted

Already attempted

Updated kernel and NIC driver to latest packaged versions; re-applied VFIO binding and ensured iommu enabled; disabled various guest offloads (TSO/GSO); allocated additional host CPU to the VM; moved VF to a different PCIe slot temporarily. None produced a durable fix; disabling SR‑IOV on host removes the issue.

Question

Question

What are the most likely root causes for RX stopping in VFIO-bound SR‑IOV VFs under sustained I/O, and what reversible diagnostic and mitigation steps should I run before involving NIC vendor support?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Host NIC driver or firmware bug affecting SR‑IOV VFs under high inbound load, causing VF resets or missed interrupts. 70%
IOMMU or VFIO misconfiguration (iommu=pt vs. iommu=on) causing DMA remapping failures under heavy load. 45%
PCIe/PHY hardware issue or firmware regression introduced by recent NIC firmware upgrade causing packet flow to drop for VFs. 35%

Summary

The evidence (dmesg VF resets, ring overruns, improvement when offloads disabled, and reproduction only on hosts with new driver/firmware) points toward a NIC driver or firmware bug in combination with SR‑IOV/VF handling. IOMMU/VFIO configuration issues or MSI/MSI-X vector collisions are possible but less likely because the problem correlates with driver/firmware changes and high sustained traffic. Guest offload incompatibilities can aggravate but are unlikely to be the primary root cause.

Suggested Fixes

Diagnostic step 1
Reproduce the problem with controlled benchmarks (iperf3) and collect host and guest packet captures simultaneously (tcpdump on the host physical NIC and inside guest) to correlate missing packets to host events.
Diagnostic step 2
Collect detailed diagnostics: dmesg, journalctl -k, lspci -vvv for PF and VF, ethtool -S for PF and VF, and iommu groups (ls /sys/kernel/iommu_groups). Save timestamps to correlate with captures.
Diagnostic step 3
Temporarily disable NIC offloads on both host PF and guest VF (ethtool -K <if> tso off gso off gro off) to see if stalls stop; this is reversible and helps isolate offload involvement.

Continue troubleshooting

Matched from the title, description and tags