Virt-manager has this code:

virtManager/object/nodedev.py:34:
return "%s %s %s" % (devstr, xmlobj.vendor_name, xmlobj.product_name)

virtinst/nodedev.py:147:
product_name = XMLProperty("./capability/product")

So it is expecting an XML protperty to provide the PCI product name.

But the information provided by libvirt looks like this:

Device: pci_0000_00_1f_3
<device>
  <name>pci_0000_00_1f_3</name>
  <path>/sys/devices/pci0000:00/0000:00:1f.3</path>
  <parent>computer</parent>
  <driver>
    <name>sof-audio-pci-intel-mtl</name>
  </driver>
  <capability type='pci'>
    <class>0x040100</class>
    <domain>0</domain>
    <bus>0</bus>
    <slot>31</slot>
    <function>3</function>
    <product id='0x7728'/>
    <vendor id='0x8086'/>
    <iommuGroup number='14'>
      <address domain='0x0000' bus='0x00' slot='0x1f' function='0x0'/>
      <address domain='0x0000' bus='0x00' slot='0x1f' function='0x5'/>
      <address domain='0x0000' bus='0x00' slot='0x1f' function='0x3'/>
      <address domain='0x0000' bus='0x00' slot='0x1f' function='0x6'/>
      <address domain='0x0000' bus='0x00' slot='0x1f' function='0x4'/>
    </iommuGroup>
  </capability>
</device>

I have appended pci_dev_list.c which can be compiled with 
gcc -o pci_dev_list pci_dev_list.c -lvirt

It is libvirt that creates the XML and not virt-manager. Virt-manager
cannot display information that libvirt does not provide. So this bug
should be filed against libvirt.

** Attachment added: "pci_dev_list.c"
   
https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/2145797/+attachment/5976044/+files/pci_dev_list.c

** Also affects: libvirt (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: virt-manager (Ubuntu)
       Status: Confirmed => Invalid

** Changed in: libvirt (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2145797

Title:
  [Ubuntu26.04] PCI device descriptions missing in virt-manager

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2145797/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to