From: liyang <[email protected]>

Signed-off-by: Li Yang <[email protected]>
---
 virttest/virsh.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/virttest/virsh.py b/virttest/virsh.py
index 2819947..c2c7bd0 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -1726,3 +1726,14 @@ def change_media(name, device, options, **dargs):
     if options:
         cmd += " %s " % options
     return command(cmd, **dargs)
+
+
+def cpu_compare(xml_file, **dargs):
+    """
+    Compare host CPU with a CPU described by an XML file
+
+    @param xml_file: file containing an XML CPU description.
+    @param dargs: standardized virsh function API keywords
+    @return: CmdResult instance
+    """
+    return command("cpu-compare %s" % xml_file, **dargs)
-- 
1.8.2

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to