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

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

    • None
    • Important
    • 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:
      qemu-kvm-9.0.50-2.el10.legoater202406261024.x86_64
      6.10.0-0.rc4.11.el10.x86_64
      libvirt-10.4.0-1.el10.x86_64
      VM:
      6.9.0-7.el10.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:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: