mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
addhardware: Don't show pci-bridge devices
These aren't assignable
This commit is contained in:
@@ -2409,6 +2409,7 @@ ba</description>
|
||||
<function>0</function>
|
||||
<product id='0x2448'>82801 Mobile PCI Bridge</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -2645,6 +2646,7 @@ ba</description>
|
||||
<function>0</function>
|
||||
<product id='0x283f'>82801H (ICH8 Family) PCI Express Port 1</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -2662,6 +2664,7 @@ ba</description>
|
||||
<function>1</function>
|
||||
<product id='0x2841'>82801H (ICH8 Family) PCI Express Port 2</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -2679,6 +2682,7 @@ ba</description>
|
||||
<function>2</function>
|
||||
<product id='0x2843'>82801H (ICH8 Family) PCI Express Port 3</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -2696,6 +2700,7 @@ ba</description>
|
||||
<function>3</function>
|
||||
<product id='0x2845'>82801H (ICH8 Family) PCI Express Port 4</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -2713,6 +2718,7 @@ ba</description>
|
||||
<function>4</function>
|
||||
<product id='0x2847'>82801H (ICH8 Family) PCI Express Port 5</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
@@ -3351,6 +3357,7 @@ ba</description>
|
||||
<function>0</function>
|
||||
<product id='0x25f8'>5000 Series Chipset PCI Express x8 Port 4-5</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<capability type='pci-bridge'/>
|
||||
</capability>
|
||||
</device>
|
||||
|
||||
|
||||
@@ -542,6 +542,9 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
for dev in devs:
|
||||
if devtype == "usb_device" and dev.xmlobj.is_linux_root_hub():
|
||||
continue
|
||||
if (devtype == "pci" and
|
||||
dev.xmlobj.capability_type == "pci-bridge"):
|
||||
continue
|
||||
prettyname = dev.xmlobj.pretty_name()
|
||||
|
||||
if devtype == "pci":
|
||||
|
||||
Reference in New Issue
Block a user