Skip to content

Commit

Permalink
Merge pull request avocado-framework#3960 from xiaodwan/add_ras_suppo…
Browse files Browse the repository at this point in the history
…rt_in_vm_xml

Add RAS feature for libvirt xml
  • Loading branch information
chunfuwen authored Aug 29, 2024
2 parents a79a328 + d01b123 commit b7ca5fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions virttest/libvirt_xml/vm_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3835,6 +3835,7 @@ class VMFeaturesXML(base.LibvirtXMLBase):
"ioapic",
"kvm_dirty_ring_state",
"kvm_dirty_ring_size",
"ras",
)

def __init__(self, virsh_instance=base.virsh):
Expand Down Expand Up @@ -3928,6 +3929,13 @@ def __init__(self, virsh_instance=base.virsh):
tag_name="dirty-ring",
attribute="size",
)
accessors.XMLAttribute(
property_name="ras",
libvirtxml=self,
parent_xpath="/",
tag_name="ras",
attribute="state",
)
accessors.AllForbidden(property_name="feature_list", libvirtxml=self)
super(VMFeaturesXML, self).__init__(virsh_instance=virsh_instance)
self.xml = "<features/>"
Expand Down

0 comments on commit b7ca5fd

Please sign in to comment.