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

[rhel9.5][qemu-kvm-9.0.50][upstream] The PF/VF can not be hot-unplug from the VM with virtio iommu device

    • None
    • Important
    • rhel-sst-virtualization
    • ssg_virtualization
    • 300
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • Linux
    • None

      What were you trying to do that didn't work?
      The VM (with virtio device + PF/VF) will crash when hot-unplug the PF/VF

      Please provide the package NVR for which bug is seen:
      host:
      5.14.0-471.el9.x86_64
      qemu-kvm-9.0.50-5.el9.legoater202406261048.x86_64
      libvirt-10.4.0-1.el9.x86_64

      How reproducible:
      100%

      Steps to reproduce
      1. start a VM with virtio iommu + MT2892 VF or PF

      2. hot-unplug the VF from the VM

      # /bin/virsh detach-device rhel10 /tmp/device/0000:60:01.2.xml
      error: Failed to detach device from /tmp/device/0000:60:01.2.xml
      error: internal error: End of file from qemu monitor (vm='rhel10')
      

      3. check the qemu-kvm log

      # cat /var/log/libvirt/qemu/rhel10.log 
      malloc_consolidate(): invalid chunk size
      2024-07-02 08:38:51.340+0000: shutting down, reason=crashed
      

      Expected results
      The PF/VF can be hot-unplug from the VM with virtio iommu device

      Actual results
      The VM crashes

              rh-ee-clegoate Cédric Le Goater
              yanghliu@redhat.com YangHang Liu
              virt-maint virt-maint
              YangHang Liu YangHang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: