Fix stack dump on improper use of set-vcpus
PATCH 1/1 Fix stack dump on improper use of set-vcpus
This patch adds an arg_check into the set_vcpus code in xm, so that we don't output a stack trace if <2 arguments are passed.
Signed-off-by Dan Smith <[email protected]>
tools/python/xen/xm/main.py +2 -0
@@ -460,6 +460,8 @@ server.xend_domain_mem_target_set(dom, mem_target) def xm_set_vcpus(args): + arg_check(args, 2, "set-vcpus") + from xen.xend.XendClient import server server.xend_domain_set_vcpus(args[0], int(args[1]))
Signature · 5 lines
-- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel