diff options
author | Lin Ma <lma@suse.com> | 2017-03-27 10:22:32 +0800 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2017-03-27 17:15:17 -0400 |
commit | 262376d16f0739a00d794192aeeee4c4e1fd84d3 (patch) | |
tree | 59e17b61a403fd404bdc7fbfa155735e9193fec2 /virtinst/nodedev.py | |
parent | 899f53b99341075c8ee77a3602ca132f35860d56 (diff) | |
download | virt-manager-262376d16f0739a00d794192aeeee4c4e1fd84d3.tar.gz |
nodedev: Parse PCI capability_type for SR-IOV device
This will be used in the following patch to recognize SR-IOV capable
device.
Signed-off-by: Lin Ma <lma@suse.com>
Diffstat (limited to 'virtinst/nodedev.py')
-rw-r--r-- | virtinst/nodedev.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/virtinst/nodedev.py b/virtinst/nodedev.py index f27cfbb2..7796ca62 100644 --- a/virtinst/nodedev.py +++ b/virtinst/nodedev.py @@ -183,6 +183,8 @@ class PCIDevice(NodeDevice): vendor_name = XMLProperty("./capability/vendor") vendor_id = XMLProperty("./capability/vendor/@id") + capability_type = XMLProperty("./capability/capability/@type") + iommu_group = XMLProperty("./capability/iommuGroup/@number", is_int=True) def pretty_name(self): |