Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-698

[Windows_vm][Q35+ OVMF] Some hot-plugged PF/VF can not find enough free resources that it can use

    • edk2-ovmf-20230524-2.el9.noarch
    • Normal
    • sst_virtualization
    • False
    • Hide

      None

      Show
      None
    • If docs needed, set a value

      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

      1. 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

      1. virsh attach-device $windows_vm 0000\:3b\:00.0.xml
      2. 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":

      {"driver":"vfio-pci","host":"0000:3b:00.0","id":"hostdev0","bus":"pci.4","addr":"0x0"}

      ,"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

            rhn-engineering-ghoffman Gerd Hoffmann
            yanghliu@redhat.com YangHang Liu
            virt-maint virt-maint
            YangHang Liu YangHang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: