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

Error log printed when start a guest with vfio pci device

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.8, rhel-10.2
    • libvirt / General
    • None
    • None
    • None
    • rhel-virt-core-libvirt-1
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Start a guest with vfio pci device, then found error log printed

      Please provide the package NVR for which the bug is seen:

      On rhel 10.2
      # rpm -q libvirt qemu-kvm
      libvirt-11.10.0-10.el10.x86_64
      qemu-kvm-10.1.0-13.el10.x86_64

       

      On rhel9.8
      # rpm -q libvirt qemu-kvm
      libvirt-11.10.0-11.el9_8.x86_64
      qemu-kvm-10.1.0-15.el9.x86_64
      

      How reproducible is this bug?:100%

      Steps to reproduce

      1. Define a guest with below vfio pci devices:
      <hostdev mode='subsystem' type='pci' managed='yes'>
            <driver iommufd='yes'/>
            <source>
              <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
            </source>
          </hostdev>
           <hostdev mode='subsystem' type='pci' managed='yes'>
                  <driver iommufd='yes'/>
            <source>
              <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
            </source>
          </hostdev>

      2. Start the guest

      # virsh start vm2
      Domain 'vm2' started

      3. Check the libvirt log found below error:
      2026-03-09 13:09:47.838+0000: 49275: error : virProcessRunInFork:1396 : internal error: child reported (status=125): unable to set security context 'system_u:object_r:svirt_image_t:s0:c141,c617' on '/dev/vfio/devices/vfio0': No such file or directory
      2026-03-09 13:09:47.838+0000: 49275: error : virProcessRunInFork:1400 : unable to set security context 'system_u:object_r:svirt_image_t:s0:c141,c617' on '/dev/vfio/devices/vfio0': No such file or directory
      2026-03-09 13:09:47.839+0000: 49275: info : virObjectUnref:378 : OBJECT_UNREF: obj=0x7fc7f400e4b0
      2026-03-09 13:09:47.841+0000: 49275: error : virProcessRunInFork:1396 : internal error: child reported (status=125): unable to stat: /dev/vfio/devices/vfio0: No such file or directory
      2026-03-09 13:09:47.841+0000: 49275: error : virProcessRunInFork:1400 : unable to stat: /dev/vfio/devices/vfio0: No such file or directory

       

      Expected results

      No error log printed in log

      Actual results

      error log printed

        1. libvirtd.log
          4.52 MB
        2. vm2.log
          16 kB

              virt-maint virt-maint
              lcong@redhat.com Liang Cong
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: