Signed-off-by: Li Yang <[email protected]>
---
virttest/virsh.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/virttest/virsh.py b/virttest/virsh.py
index 21c6922..17d4a64 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -1622,3 +1622,15 @@ def cpu_stats(name, options, **dargs):
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.7.1
--
Regards,
--------------------------------------------------
Li Yang
TEL:+86+25-86630566-8526
EMail:[email protected]
--------------------------------------------------
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel