-
Bug
-
Resolution: Done
-
Normal
-
None
-
rhel-9.0.0
-
edk2-ovmf-20230524-2.el9.noarch
-
None
-
Moderate
-
rhel-sst-virt-firmware
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
Automated
-
If docs needed, set a value
-
-
x86_64
-
None
Description of problem:
The MT2892 PF(mlx5_core) can not find enough free resources that it can use after it is hot-plugged into a Q35 + OVMF windows vm
Version-Release number of selected component (if applicable):
qemu-kvm-6.1.0-6.el9.x86_64
edk2-ovmf-20210527gite1999b264f1f-6.el9.noarch
5.14.0-17.el9.x86_64
seabios-bin-1.14.0-7.el9.noarch
How reproducible:
100%
Steps to Reproduce:
1. import a Q35 + OVMF Windows domain
- virt-install --machine=q35 --noreboot --name=win2022 --boot=uefi --network bridge=switch,model=virtio,mac=52:54:00:01:22:22 --memory=4096 --vcpus=4 --graphics type=vnc,port=5922,listen=0.0.0.0 --import --noautoconsole --disk path=/home/images/win2022-64-virtio.qcow2,bus=virtio,cache=none,format=qcow2,io=threads,size=20
2. hot-plug a MT2892(mlx5_core) into the Windows domain
- virsh attach-device $windows_vm 0000\:3b\:00.0.xml
- cat 0000\:3b\:00.0.xml
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x3b' slot='0x00' function='0x0'/>
</source>
</hostdev>
The related qmp:
> {"execute":"device_add","arguments":
,"id":"libvirt-389"}
< {"return": {}, "id": "libvirt-389"}
3. check the device info in Windows domain "Device Manager"
The "Device Manager" shows "The device cannot find enough free resources that it can use(code 12)"
Actual results:
The hot-plugged MT2892 PF can not find enough free resources that it can use
Expected results:
The hot-plugged MT2892 PF works well.
Additional info:
(1) This problem can be reproduced by:
Hotplug 6 MT2892 VFs(mlx5_core) into the vm
Hotplug 6 QL41112 VFs(qede) into the vm
Hotplug 2 QL41112 PFs(qede) into the vm
(2) The driver:
MT2892 Driver : https://www.mellanox.com/products/adapter-software/ethernet/windows/winof-2
SFC9220 Driver: https://support-nic.xilinx.com/wp/drivers
(3) This problem can still be reproced when adding "-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off" into the domain