diff --git a/virttest/libvirt_xml/nodedev_xml.py b/virttest/libvirt_xml/nodedev_xml.py index 20a5dc715f..f75ee0f662 100644 --- a/virttest/libvirt_xml/nodedev_xml.py +++ b/virttest/libvirt_xml/nodedev_xml.py @@ -126,22 +126,42 @@ class for capability whose type is pci. """ # Example: - # - # 0 - # 7 - # 0 - # 0 - # I350 Gigabit Network Connection - # Intel Corporation - # - #
- #
- # - # - # + # + # 0 + # 7 + # 0 + # 0 + # I350 Gigabit Network Connection + # Intel Corporation + # + #
+ #
+ # + # + # + + # or the Example of iommu: + # + # 0 + # 4 + # 0 + # 1 + # NetXtreme II BCM5709 Gigabit Ethernet + # Broadcom Limited + # + #
+ #
+ # + # + # + # + # + # + # __slots__ = ('domain', 'bus', 'slot', 'function', 'product_id', - 'vendor_id', 'virt_functions', 'numa_node') + 'vendor_id', 'virt_functions', 'numa_node', + 'iommuGroup_number', 'iommuGroup_address') def __init__(self, virsh_instance=base.virsh): accessors.XMLElementInt('domain', self, parent_xpath='/', @@ -158,6 +178,12 @@ def __init__(self, virsh_instance=base.virsh): tag_name='vendor', attribute='id') accessors.XMLAttribute('numa_node', self, parent_xpath='/', tag_name='numa', attribute='node') + accessors.XMLAttribute('iommuGroup_number', self, parent_xpath='/', + tag_name='iommuGroup', attribute='number') + accessors.XMLElementList('iommuGroup_address', self, + parent_xpath='/iommuGroup', + marshal_from=self.marshal_from_address, + marshal_to=self.marshal_to_address) accessors.XMLElementList('virt_functions', self, parent_xpath='/capability', marshal_from=self.marshal_from_address,