when assigning devices using VFIO allows the guest to have direct access to the device of nvme, nvme0: I/O tag 4 (0004) QID 0 timeout · Issue #13 · kvmtool/kvmtool · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
when assigning devices using VFIO allows the guest to have direct access to the device of nvme, nvme0: I/O tag 4 (0004) QID 0 timeout #13
When SR-IOV capable NVMe PCIe device is passed through to the guest vm using lkvm VFIO functionality (--vfio-pci), "nvme0: I/O tag 4 (0004) QID 0 timeout" is observed.
the following is lkvm cmds and logs.
lkvm cmd
lkvm run -m 512 -c1 --console serial -p "console=ttyS0 earlycon" -k Image -d rootfs.ext2 --vfio-pci 0000:00:01.1
log
# lspci -v
00:00.0 Non-Volatile memory controller: Red Hat, Inc. QEMU NVM Express Controller (rev 02) (prog-if 02 [NVM Express])
Subsystem: Red Hat, Inc. Device 1100
Flags: fast devsel
Memory at 40000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [40] MSI-X: Enable- Count=1 Masked-
Capabilities: [80] Express Root Complex Integrated Endpoint, MSI 00
kernel log
[ 1.527082] pci 0000:00:00.0: BAR 0 [mem 0x40000000-0x40003fff]: assigned
[ 1.533870] pci 0000:00:01.0: BAR 2 [mem 0x40004000-0x400043ff]: assigned
[ 1.541026] pci 0000:00:02.0: BAR 2 [mem 0x40004400-0x400047ff]: assigned
[ 1.547329] pci 0000:00:01.0: BAR 0 [io 0x0100-0x01ff]: assigned
[ 1.553120] pci 0000:00:01.0: BAR 1 [mem 0x40004800-0x400048ff]: assigned
[ 1.559346] pci 0000:00:02.0: BAR 0 [io 0x0200-0x02ff]: assigned
[ 1.566536] pci 0000:00:02.0: BAR 1 [mem 0x40004900-0x400049ff]: assigned
[ 1.586236] nvme nvme0: pci function0000:00:00.0
[ 1.771708] nvme nvme0: failed to register the CMB
[ 62.601763] nvme nvme0: I/O tag 4 (0004) QID 0 timeout, disable controller
[ 62.614979] nvme nvme0: Identify Controller failed (-4)
[ 62.633939] nvme 0000:00:00.0: probe with driver nvme failed with error -5
But save device behavaves correctly using qemu utils.
The following is logs.
00:01.0 Non-Volatile memory controller: Red Hat, Inc. QEMU NVM Express Controller (rev 02) (prog-if 02 [NVM Express])
Subsystem: Red Hat, Inc. Device 1100
Flags: bus master, fast devsel, latency 0
Memory at 400000000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] MSI-X: Enable+ Count=1 Masked-
Capabilities: [80] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [60] Power Management version 3
Kernel driver in use: nvme
Activity