Signed-off-by: Alex Jia <[email protected]>
---
virttest/virsh.py | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/virttest/virsh.py b/virttest/virsh.py
index f847d92..19afba0 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -1557,3 +1557,22 @@ def cpu_stats(name, options, **dargs):
cmd += " %s" % options
return command(cmd, **dargs)
+
+
+def numatune(name, mode=None, nodeset=None, options=None, **dargs):
+ """
+ Set or get a domain's numa parameters
+ @param name: name of domain
+ @param options: options may be live, config and current
+ @param dargs: standardized virsh function API keywords
+ @return: CmdResult instance
+ """
+ cmd = "numatune %s" % name
+ if options:
+ cmd += " --%s" % options
+ if mode:
+ cmd += " --mode %s" % mode
+ if nodeset:
+ cmd += " --nodeset %s" % nodeset
+
+ return command(cmd, **dargs)
--
1.7.1
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel