From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiageng Yu Subject: Re: apic probe of 2.6.32.41 pv linux Date: Fri, 27 May 2011 22:44:05 +0800 Message-ID: References: <20110527135756.GB6734@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110527135756.GB6734@dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk , Stefano Stabellini Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 2011/5/27 Konrad Rzeszutek Wilk : > On Fri, May 27, 2011 at 05:58:51PM +0800, Jiageng Yu wrote: >> I have updated the pv linux kernel from 2.6.32.40 to 2.6.32.41. I >> found the generic_apic_probe always led to a kernel panic when I try >> to make the minimal DomU kernel. >> >> The 2.6.32.41 pv linux use the new apic probe mechanism: > > new..? What was it before? The linux kernel will invoke probe_default, which permanently returns 1. I wander to know may I just return 1 in 2.6.32.41 kernel? If there is no further problems. >> >> static __init int xen_safe_probe(void) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (!xen_initial_domain()) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 1; >> } >> >> #ifdef CONFIG_XEN_DOM0 >> #define xen_initial_domain() =C2=A0 =C2=A0(xen_pv_domain() && xen_start_= info->flags >> & SIF_INITDOMAIN) >> #else =C2=A0/* !CONFIG_XEN_DOM0 */ >> #define xen_initial_domain() =C2=A0 =C2=A0(0) >> #endif =C2=A0/* CONFIG_XEN_DOM0 */ >> >> >> If do not define the CONFIG_XEN_DOM0, xen_safe_probe will always >> return 0 which causes the kernel panic. For the minimal DomU kernel, >> the CONFIG_XEN_DOM0 is needless, and in this scenario, how to pass the >> apic probe safely? > >> >> Thanks! >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >