-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.4, rhel-9.5
-
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-8.1.0-4.el9.x86_64
edk2-ovmf-20230524-4.el9_3.noarch
L1:
qemu-kvm-8.1.0-4.el9.x86_64
edk2-ovmf-20230524-4.el9_3.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:
2023-11-29T07:13:39.203443Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:39.204238Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -2 (No such file or directory) 2023-11-29T07:13:39.204909Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:39.204929Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:39.658446Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:39.658485Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:39.659175Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:39.659196Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.006640Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.006837Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.006848Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.006855Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.010626Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.010657Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.010665Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.010673Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.017543Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.017570Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.017578Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.017585Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.020694Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.020732Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.020741Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.020748Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.355044Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.355081Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.355667Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.355683Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.367180Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.367211Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.367841Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.367859Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.378574Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.378601Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.379242Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.379264Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.388739Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.388772Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.389429Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.389446Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:57.399569Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.399594Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:13:57.400253Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:57.400270Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:58.055515Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:58.055669Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:13:58.055679Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:13:58.055686Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000004000, 0x4000, 0x7fd048003000) = -22 (Invalid argument) 2023-11-29T07:14:15.777486Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:14:15.777552Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x1000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T07:14:15.777561Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:14:15.777568Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000003000, 0x1000, 0x7fd04000f000) = -22 (Invalid argument) 2023-11-29T07:14:15.786156Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T07:14:15.786184Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:04:48.130403Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:04:48.131581Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x1000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:04:48.131675Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:04:48.131784Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000003000, 0x1000, 0x7fd04000f000) = -22 (Invalid argument) 2023-11-29T08:04:48.136146Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:04:48.136208Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:05:17.237727Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:05:17.237925Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x1000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:05:17.238016Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:05:17.238103Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000003000, 0x1000, 0x7fd04000f000) = -22 (Invalid argument) 2023-11-29T08:05:17.242119Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:05:17.242151Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:06:17.646387Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:06:17.646422Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x1000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:06:17.646430Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:06:17.646437Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000003000, 0x1000, 0x7fd04000f000) = -22 (Invalid argument) 2023-11-29T08:06:17.650578Z qemu-kvm: VFIO_MAP_DMA failed: Invalid argument 2023-11-29T08:06:17.650610Z qemu-kvm: vfio_dma_map(0x55f4cb84f6e0, 0x383000001000, 0x3000, 0x7fd04000d000) = -22 (Invalid argument) 2023-11-29T08:25:33.699187Z qemu-kvm: terminating on signal 15 from pid 1636 (/usr/sbin/virtqemud) 2023-11-29 08:25:33.902+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.
- is cloned by
-
RHEL-54117 [rhel10-beta] The Q35 + OVMF L2 VM with a igbvf throws "VFIO_MAP_DMA failed: Invalid argument, vfio_dma_map= -22 (Invalid argument)" error
- Planning