From: Wei Liu <Wei.Liu2@citrix.com>
To: 马磊 <aware.why@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
wei.liu2@citrix.com
Subject: Re: [BUG]: when using `xl restore`,xc_evtchn_alloc_unbound will raise this error
Date: Fri, 28 Dec 2012 10:46:15 +0000 [thread overview]
Message-ID: <1356691575.2917.13.camel@iceland> (raw)
In-Reply-To: <CA+ePHTC4Fq0sqb5ie+YBiC5Ft_q6O2PkJxYqGXxbBbHSHxfbOA@mail.gmail.com>
On Fri, 2012-12-28 at 03:13 +0000, 马磊 wrote:
>
>
> On Thu, Dec 27, 2012 at 8:41 PM, Wei Liu <Wei.Liu2@citrix.com> wrote:
> On Thu, 2012-12-27 at 02:12 +0000, 马磊 wrote:
> >
> > I got it, but the error ` xc: error: do_evtchn_op:
> > HYPERVISOR_event_channel_op failed: -1 (3 = No such
> process): Internal
> > error. ` said no such process, the system error description
> > didn't seem has anything to do with the following lines wich
> raised
> > 85 state->store_port = xc_evtchn_alloc_unbound(ctx->xch,
> domid,
> > 0);
> > 86 state->console_port =
> xc_evtchn_alloc_unbound(ctx->xch, domid,
> > 0);
>
>
> The error code -1 is -EPERM, which means you don't have
> permission to
> issue this operation. I don't think this is a bug. There might
> be some
> problems with your setup.
>
> If you need any pointer in reading source code, I will be
> happy to help.
>
>
> Wei.
>
> Thanks for your kindness!
>
>
> I looked into the functions for logging, in this case, `3 = No
> such process` was from `errno` and the ` HYPERVISOR_event_channel_op
> failed: -1 ` was from hypervisor-level
> error(src/xen/common/event_channel.c).
> In my option, that's to say, error number of -1 was caused by
> hypervisor; but what was the error number of 3 caused by, dom0?
> Do both the two error numbers refer to the description defined in
> errno.h or else hypervisor has its own error description?
>
I think the two files are mostly the same, but to be sure you need to
look into the source file in both Linux and Xen. You should start from
the hypervisor level, find out why it returns -EPERM. Root user in Dom0
has nothing to do with privilege in hypervisor level.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-12-28 10:46 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 [this message]
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 ` 马磊
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=1356691575.2917.13.camel@iceland \
--to=wei.liu2@citrix.com \
--cc=aware.why@gmail.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).