From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?6ams56OK?= Subject: Re: =?utf-8?q?=5BBUG=5D=3A_when_using_=60xl_restore=60?= =?utf-8?q?=EF=BC=8Cxc=5Fevtchn=5Falloc=5Funbound_will_raise_this_e?= =?utf-8?q?rror?= Date: Sat, 5 Jan 2013 12:03:16 +0800 Message-ID: References: <20121226134131.GA25087@iceland> <20121226193312.GA28152@iceland> <1356612077.19238.20.camel@iceland> <1356691575.2917.13.camel@iceland> <1356955395.2917.41.camel@iceland> <1357291252.10611.15.camel@zakaz.uk.xensource.com> <1357299746.10611.35.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8095192431535506314==" Return-path: In-Reply-To: <1357299746.10611.35.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Wei Liu List-Id: xen-devel@lists.xenproject.org --===============8095192431535506314== Content-Type: multipart/alternative; boundary=e89a8f502b920064e904d282adf2 --e89a8f502b920064e904d282adf2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Jan 4, 2013 at 7:42 PM, Ian Campbell wrote= : > On Fri, 2013-01-04 at 11:34 +0000, =E9=A9=AC=E7=A3=8A 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. --e89a8f502b920064e904d282adf2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Jan 4, 2013 at 7:42 PM, Ian Camp= bell <Ian.Campbell@citrix.com> wrote:
On Fri, 2013-01-04 at 11:34 +0000, =E9=A9=AC=E7=A3=8A wro= te:

> 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() -->=C2=A0=C2=A0libxl_create.c:do_domain_c= reate() -->=C2=A0=C2=A0libxl_create.c:domain_restore()
--> libxl_create.c:libxl__build_pre() --> libxc/xc_evtchn.c:xc_e= vtchn_alloc_unbound() -->=C2=A0=C2=A0libxc/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 re= al error code is set by ioctl() and =C2=A0 -1 has no value of reference!
But -1 is the return value of src/xe= n/common/event_channel.c:do_event_channel_op(), we can trace it to find tha= t 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.
--e89a8f502b920064e904d282adf2-- --===============8095192431535506314== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8095192431535506314==--