[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] [VT] Fix for python breakge



Keir, Ian,

The VMX builder python code is broken due to recent changes. 
It gives this error while trying to start a VMX guest:
"Error: Error creating domain: function takes exactly 7 arguments (6 given)"

This patch to xen-upstream fixes the issue.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@xxxxxxxxx>
diff -r 7c951e3eb5ab4ab0a6de33a8f831c828d16b1ad4 
tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Oct 19 10:53:00 2005
+++ b/tools/python/xen/lowlevel/xc/xc.c Wed Oct 19 15:44:26 2005
@@ -426,7 +426,7 @@
     static char *kwd_list[] = { "dom", "control_evtchn", "store_evtchn",
                                 "memsize", "image", "flags", "vcpus", NULL };

-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiisii", kwd_list,
+    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ii", kwd_list,
                                       &dom, &control_evtchn, &store_evtchn,
                                       &memsize, &image, &flags, &vcpus) )
         return NULL;

Thanks & Regards,
Nitin
--------------------------------------------------------------------------
Open Source Technology Center, Intel Corp

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.