From mboxrd@z Thu Jan 1 00:00:00 1970 From: Big Strong Subject: Re: xc_altp2m_set_vcpu_enable_notify fail Date: Sat, 7 May 2016 15:34:34 +0800 Message-ID: References: <20160502104759.GA26982@citrix.com> <20160504104304.GK2111@citrix.com> <20160504104829.GM2111@citrix.com> <20160506111011.GH2111@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0947708384294386250==" Return-path: In-Reply-To: <20160506111011.GH2111@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Wei Liu Cc: Tamas Lengyel , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org --===============0947708384294386250== Content-Type: multipart/alternative; boundary=001a1141080455aafc05323b9b5d --001a1141080455aafc05323b9b5d Content-Type: text/plain; charset=UTF-8 > > libxc functions always return -1 when it fails. You need the specific > errno to know what went wrong. Yeah, I know it means a failure. Actually, I noticed that there is a comment at the source code of xen , which says : "This is a bit odd to me that it acts on current.. it return -1 directly" which is exactly about xc_altp2m_set_vcpu_enable_notify. In my case, xc_altp2m_set_vcpu_enable_notify always return -1 just as the author comments.Besides, I've also found no existing usage about this function all over the Internet. So I'm wondering if this function actually works or not. Anyway, why would the author comments that? @Ian @Tamas Do you have any difficulty debugging Xen? We might be able to give some > pointers on how to do that. Yeah, I've enabled debug option when compiling xen, what else steps should I take to use a remote gdb to debug xen instead of dom0 or domU? --001a1141080455aafc05323b9b5d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
libxc func= tions always return -1 when it fails. You need the specific
errno to know what went wrong.

Yeah, I know it means a failure. Actually, I noticed t= hat there is a comment at the source code of xen, which says :
=C2= =A0
"This is a bit odd to me that it acts on current.. =C2= =A0it return -1 directly"

which is exactly ab= out=C2=A0xc_altp2m_set_vcpu_enable_notify.=C2=A0 In my case, xc_altp2m_set_= vcpu_enable_notify always return -1 just as the author comments.Besides, I&= #39;ve also found no existing usage about this function all over the Intern= et. So I'm wondering if this function actually works or not. Anyway, wh= y would the author comments that? @Ian @Tamas


=
Do you have any diffi= culty debugging Xen? We might be able to give some
pointers on how to do that.

Yeah, I've enabled debug option when compiling xen, what else = steps should I take to use a remote gdb to debug xen instead of dom0 or dom= U?=C2=A0
--001a1141080455aafc05323b9b5d-- --===============0947708384294386250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============0947708384294386250==--