From d01b1231c01b115545b4bbf4e1d1205d0797392d Mon Sep 17 00:00:00 2001 From: Xiaodai Wang Date: Mon, 24 Jun 2024 10:57:55 +0800 Subject: [PATCH] Add RAS feature for libvirt xml Signed-off-by: Xiaodai Wang --- virttest/libvirt_xml/vm_xml.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/virttest/libvirt_xml/vm_xml.py b/virttest/libvirt_xml/vm_xml.py index 42c873d270..6283ef889d 100755 --- a/virttest/libvirt_xml/vm_xml.py +++ b/virttest/libvirt_xml/vm_xml.py @@ -3834,6 +3834,7 @@ class VMFeaturesXML(base.LibvirtXMLBase): "ioapic", "kvm_dirty_ring_state", "kvm_dirty_ring_size", + "ras", ) def __init__(self, virsh_instance=base.virsh): @@ -3927,6 +3928,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 = ""