WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [VT] Fix for python breakge
From: "Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx>
Date: Thu, 20 Oct 2005 17:31:45 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>
Delivery-date: Fri, 21 Oct 2005 00:29:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXVB6HUI/JRK3/qTmmOod7gbjWtdQAzthKA
Thread-topic: [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

<Prev in Thread] Current Thread [Next in Thread>