On 04/03/2013 06:19 PM, Lucas Meneghel Rodrigues wrote:
From: liyang <[email protected]>
Oops, I've sent the wrong version, re-sending...
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)
_______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
