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

Re: [Xen-devel] [BUG]: when using `xl restore`ïxc_evtchn_alloc_unbound will raise this error





On Fri, Jan 4, 2013 at 7:42 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Fri, 2013-01-04 at 11:34 +0000, éç wrote:

> you said -1 only told there was an error occurring and 3 is the real
> reason?!

That is correct.

Ian.


The excution path is like this:
xl_cmdimpl.c:create_domain() --> libxl_create.c:libxl_domain_create_restore() -->ÂÂlibxl_create.c:do_domain_create() -->ÂÂlibxl_create.c:domain_restore()
--> libxl_create.c:libxl__build_pre() --> libxc/xc_evtchn.c:xc_evtchn_alloc_unbound() -->ÂÂlibxc/xc_evtchn.c:do_evtchn_op() --> libxc/xc_private.c:do_xen_hypercall()

so far, it raised an error and do_xen_hypercall return -1 and errno set to be 3.

You mean that 3 which is the real error code is set by ioctl() and  -1 has no value of reference!
But -1 is the return value of src/xen/common/event_channel.c:do_event_channel_op(), we can trace it to find that it was returned by src/xen/common/domain.c:rcu_lock_target_domain_by_id() and so it failed at this point.
Why did it fail there, I can't understand that and that blocked me. I'm greateful to be helped.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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