From: 马磊 <aware.why@gmail.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [BUG]: when using `xl restore`,xc_evtchn_alloc_unbound will raise this error
Date: Sat, 5 Jan 2013 12:03:16 +0800 [thread overview]
Message-ID: <CA+ePHTCwuA2Kux7GwK5s+Mn5PSh3JRwT=_H6fP5S1o2__Ck2Pg@mail.gmail.com> (raw)
In-Reply-To: <1357299746.10611.35.camel@zakaz.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 1135 bytes --]
On Fri, Jan 4, 2013 at 7:42 PM, Ian Campbell <Ian.Campbell@citrix.com>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.
[-- Attachment #1.2: Type: text/html, Size: 1745 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-01-05 4:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-26 10:03 [BUG]: when using `xl restore`,xc_evtchn_alloc_unbound will raise this error 马磊
2012-12-26 10:19 ` 马磊
2012-12-26 13:41 ` Wei Liu
2012-12-26 14:45 ` 马磊
2012-12-26 19:33 ` Wei Liu
2012-12-27 2:12 ` 马磊
2012-12-27 12:41 ` Wei Liu
2012-12-28 3:13 ` 马磊
2012-12-28 10:46 ` Wei Liu
2012-12-31 3:10 ` 马磊
2012-12-31 12:03 ` Wei Liu
2013-01-04 3:23 ` 马磊
2013-01-04 6:27 ` 马磊
2013-01-04 9:20 ` Ian Campbell
2013-01-04 11:34 ` 马磊
2013-01-04 11:42 ` Ian Campbell
2013-01-05 4:03 ` 马磊 [this message]
2013-01-05 6:44 ` 马磊
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+ePHTCwuA2Kux7GwK5s+Mn5PSh3JRwT=_H6fP5S1o2__Ck2Pg@mail.gmail.com' \
--to=aware.why@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).