Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

Re: [Xen-devel] Problem in adding a function to tools/python/xen/lowleve

To: sanjay kushwaha <sanjay.kushwaha@xxxxxxxxx>
Subject: Re: [Xen-devel] Problem in adding a function to tools/python/xen/lowlevel/xc/xc.c
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Mon, 28 Apr 2008 08:40:46 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 28 Apr 2008 08:41:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2717599f0804280833q8da2f05xfc5e6c4f16980238@xxxxxxxxxxxxxx>
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>
Mail-followup-to: sanjay.kushwaha@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <2717599f0804280833q8da2f05xfc5e6c4f16980238@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2008-04-09)
On Monday, 28 April 2008 at 11:33, sanjay kushwaha wrote:
...
> +static PyObject *pyxc_register_domm_xen(XcObject *self, PyObject *args)
> +{
> +    uint32_t dom;
> +
> +    if (!PyArg_ParseTuple(args, "i", &dom))
> +        return NULL;
> +
> +    if (xc_register_domm_xen(self->xc_handle, dom) != 0)
> +        return NULL;
> +
> +    Py_INCREF(zero);
> +    return zero;
> +}
> +
...
> The /var/log/xen/xend.log shows the following error
> 
> [2008-04-28 11:27:17 4132] ERROR (XendDomainInfo:443) VM start failed
> Traceback (most recent call last):
>   File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/
> XendDomainInfo.py", line 423, in start
>     XendTask.log_progress(31, 60, self._initDomain)
>   File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/
> XendTask.py", line 209, in log_progress
>     retval = func(*args, **kwds)
>   File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/
> XendDomainInfo.py", line 2175, in _initDomain
>     xc.register_domm_xen(self.domid)
> SystemError: error return without exception set

I believe this exception means you're returning NULL. When you do this, you need
to set an exception message (e.g. using PyErr_Set*) first. Looking at your
code, the culprit is probably the 'return NULL' after your call to
xc_register_domm_xen.

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

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