diff --git a/virttest/libvirt_xml/nodedev_xml.py b/virttest/libvirt_xml/nodedev_xml.py index 20a5dc715f4..136378ce4bb 100644 --- a/virttest/libvirt_xml/nodedev_xml.py +++ b/virttest/libvirt_xml/nodedev_xml.py @@ -140,8 +140,27 @@ class for capability whose type is pci. # # + # 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', 'iommuGroup_number', 'numa_node') def __init__(self, virsh_instance=base.virsh): accessors.XMLElementInt('domain', self, parent_xpath='/', @@ -162,6 +181,10 @@ def __init__(self, virsh_instance=base.virsh): parent_xpath='/capability', marshal_from=self.marshal_from_address, marshal_to=self.marshal_to_address) + accessors.XMLElementList('iommuGroup_number', self, + parent_xpath='/iommuGroup', + marshal_from=self.marshal_from_address, + marshal_to=self.marshal_to_address) super(PCIXML, self).__init__(virsh_instance=virsh_instance) self.xml = (' ')