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

[RFE] Support InfiniBand PCI passthrough devices in a libvirt network

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.5
    • libvirt
    • None
    • rhel-virt-core-libvirt-1
    • ssg_virtualization
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

      We want to consume InfiniBand SR-IOV devices from a network pool in the same way Ethernet devices are consumed, for example:

       

      <network>
        <name>infiniband-sriov</name>
        <uuid>1a3e28fa-97ea-43d4-a82b-5923fa1a2a4f</uuid>
        <forward mode='hostdev' managed='yes'>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x1'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x2'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x3'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x4'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x5'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x6'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x00' function='0x7'/>
          <address type='pci' domain='0x0000' bus='0xc1' slot='0x01' function='0x0'/>
        </forward>
      </network>

      Then consume a device from the domain XML definition with:

      <interface type='network'>
        <source network='infiniband-sriov'/>
      </interface>

      This currently doesn't work because it always tries to set an ethernet MAC address instead of an InfiniBand address:

      error: Failed to start domain 'rhel9'
      error: Cannot set interface MAC to aa:bb:cc:dd:ee:ff for ifname ibp193s0 vf 0: Operation not supported
      

              virt-maint virt-maint
              rhn-support-jortialc Juan Orti
              virt-maint virt-maint
              Meina Li Meina Li
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: