-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-10.0.beta
-
None
-
Moderate
-
rhel-sst-virtualization
-
ssg_virtualization
-
5
-
QE ack
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
RegressionOnly
-
-
x86_64
-
Linux
-
None
What were you trying to do that didn't work?
The Q35 + OVMF L2 VM with a igbvf throws "VFIO_MAP_DMA failed: Invalid argument, vfio_dma_map= -22 (Invalid argument)" error
Please provide the package NVR for which bug is seen:
host:
qemu-kvm-9.0.0-6.el10
edk2-ovmf-20240524-1.el10.noarch
L1:
qemu-kvm-9.0.0-6.el10
edk2-ovmf-20240524-1.el10.noarch
How reproducible:
100%
Steps to reproduce
[1] start a Q35 + OVMF L1 VM with a emulated igb + intel iommu
[2] create a VF from the emulated igb in the L1 VM
[3] make sure the iommu is enabled in the L1 VM
[4] start a Q35 + OVMF L2 VM with a igbvf
[5] do ping tests
[6] check the qemu-kvm and kernel log
The L1 qemu-kvm throws the following error:
2024-08-05T11:00:52.774756Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:00:52.774832Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -2 (No such file or directory) 2024-08-05T11:00:52.775429Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:00:52.775450Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:00:53.078569Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:00:53.078605Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:00:53.079221Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:00:53.079244Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.398926Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.398973Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.398983Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.398991Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.405700Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.405729Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.405738Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.405745Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.410436Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.410477Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.410486Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.410493Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.414698Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.414721Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.414730Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.414736Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.818110Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.818149Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.818687Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.818705Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.825910Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.825936Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.826608Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.826630Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.834576Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.834610Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.835140Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.835158Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.842898Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.842931Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.843496Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.843514Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:06.851040Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.851066Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:06.851763Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:06.851796Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:07.595689Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:07.595731Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800001000, 0x3000, 0x7f4316618000) = -22 (Invalid argument) 2024-08-05T11:01:07.595740Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2024-08-05T11:01:07.595747Z qemu-kvm: vfio_container_dma_map(0x560995de4e40, 0x381800004000, 0x4000, 0x7f4316a76000) = -22 (Invalid argument) 2024-08-05T11:01:42.789602Z qemu-kvm: terminating on signal 15 from pid 2024 (/usr/sbin/virtqemud) 2024-08-05 11:01:43.020+0000: shutting down, reason=shutdown
Expected results
No qemu-kvm error
Actual results
The qemu-kvm throws the error"VFIO_MAP_DMA failed: Invalid argument. vfio_dma_map(0x56436cc15ae0, 0x383000004000, 0x4000, 0x7f2330000000) = -22 (Invalid argument)"
Additional info:
(1) After changing the L2 firmware from "efi" to "seabios", the qemu-kvm error gone.
(2) related test task:
https://issues.redhat.com/browse/XKVMNINE-4153
- clones
-
RHEL-17607 The Q35 + OVMF L2 VM with a igbvf throws "VFIO_MAP_DMA failed: Invalid argument, vfio_dma_map= -22 (Invalid argument)" error
- Planning