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

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

To: "Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] [VT] Fix for python breakge
From: Khoa Huynh <khoa@xxxxxxxxxx>
Date: Fri, 21 Oct 2005 12:15:55 -0500
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>, xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 21 Oct 2005 17:13:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E305A4AFB7947540BC487567B5449BA8083F8401@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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
"Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx> wrote on 10/20/2005 07:31:45
PM:

> 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;

I think this patch was included in a patch submitted by Xin Li a couple
days ago.  I applied Li's patch and it fixed the problem for me.
Thanks.

Regards,

Khoa



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