You are not logged in.

#1 Today 01:14:04

naff
Member
Registered: Yesterday
Posts: 1

PCI passthrough of NVMe drive broken since 7.2.2

I've got a windows 11 vm, doing PCI passthrough with my GPU and NVMe drive. Since kernel 7.2.2 (including 7.2.3) passthrough of the NVMe has stopped working (GPU still works though).

My specs:
Samsung 990 EVO Plus 2TB
Ryzen 9 9900X
MSI MAG X670E TOMAHAWK WIFI (MS-7E12)
Nvidia 4070 super

Output of lcpci -nnk

02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller PM9C1a (DRAM-less) [144d:a80d]
    Subsystem: Samsung Electronics Co Ltd Device [144d:a801]
    Kernel driver in use: nvme
    Kernel modules: nvme

virt manager xml for the drive:

<hostdev mode="subsystem" type="pci" managed="yes">
  <source>
    <address domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  </source>
  <boot order="1"/>
  <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
</hostdev>

libvirtd.log for the error:

2026-09-01 23:28:09.529+0000: 1286: info : libvirt version: 12.7.0
2026-09-01 23:28:09.529+0000: 1286: info : hostname: arch, uid: 0
2026-09-01 23:28:09.529+0000: 1286: error : virNetSocketReadWire:1782 : End of file while reading data: Input/output error
2026-09-01 23:28:30.697+0000: 43062: error : qemuMonitorIORead:381 : Unable to read from monitor: Connection reset by peer
2026-09-01 23:28:30.697+0000: 43062: error : qemuProcessReportLogError:2151 : internal error: QEMU unexpectedly closed the monitor (vm='win11'): 2026-09-01T23:28:30.180307Z qemu-system-x86_64: -device {"driver":"v
fio-pci","host":"0000:02:00.0","id":"hostdev3","bus":"pci.4","addr":"0x0"}: vfio 0000:02:00.0: invalid PCI interrupt pin 255
2026-09-01 23:28:31.300+0000: 1391: error : virPCIGetHeaderType:3411 : internal error: Unknown PCI header type '127' for device '0000:02:00.0'
2026-09-01 23:28:31.300+0000: 1391: error : virHostdevResetAllPCIDevices:604 : Failed to reset PCI device: internal error: Unknown PCI header type '127' for device '0000:02:00.0'
2026-09-01 23:28:59.566+0000: 1286: error : virNetSocketReadWire:1782 : End of file while reading data: Input/output error
2026-09-01 23:29:17.234+0000: 1389: error : virPCIGetHeaderType:3411 : internal error: Unknown PCI header type '127' for device '0000:02:00.0'

I've got workarounds for now (downgrade kernel to 7.1.9, or just use the nvme as a block device) so it's not urgent, just posting here to see if anyone else has had problems, and to ask if I should file a bug report somewhere. First post here, sorry if I got something wrong smile

Offline

Board footer

Powered by FluxBB