Skip to content

Commit

Permalink
Merge pull request avocado-framework#3934 from nanli1/add_support_for…
Browse files Browse the repository at this point in the history
…_dynamic_memory_slots

add support for dynamic memory slots
  • Loading branch information
dzhengfy authored Jul 12, 2024
2 parents b00f448 + 9715da2 commit 3f6af08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virttest/libvirt_xml/devices/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Target(base.base.LibvirtXMLBase):
"block_unit",
"readonly",
"address",
"attrs",
)

def __init__(self, virsh_instance=base.base.virsh):
Expand Down Expand Up @@ -156,6 +157,7 @@ def __init__(self, virsh_instance=base.base.virsh):
subclass=Memory.Address,
subclass_dargs={"type_name": "pci", "virsh_instance": virsh_instance},
)
accessors.XMLElementDict("attrs", self, parent_xpath="/", tag_name="target")
super(self.__class__, self).__init__(virsh_instance=virsh_instance)
self.xml = "<target/>"

Expand Down

0 comments on commit 3f6af08

Please sign in to comment.