From: Dan Magenheimer Subject: RE: upstream xen-ified kernel building challenge Date: Wed, 24 Jun 2009 09:49:49 -0700 (PDT) Message-ID: References: <1245837842.16606.32.camel@marc> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1245837842.16606.32.camel@marc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Marc - A. Dahlhaus [ Administration | Westermann GmbH ]" Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org Thanks Marc! It looks like the magic key I was missing is CONFIG_HIGHMEM64G. The following works for a 32-bit 2.6.30 kernel. It misses the frame buffer drivers and paravirtualized spinlocks but results in a kernel runnable on Xen. cat > .config << "EOF" CONFIG_PARAVIRT_GUEST=3Dy CONFIG_XEN=3Dy CONFIG_HIGHMEM64G=3Dy EOF yes '' | make oldconfig > -----Original Message----- > From: Marc - A. Dahlhaus [ Administration | Westermann GmbH ] > [mailto:mad@wol.de] > Sent: Wednesday, June 24, 2009 4:04 AM > To: Dan Magenheimer > Cc: Xen-devel > Subject: Re: [Xen-devel] upstream xen-ified kernel building challenge >=20 >=20 > Hello Dan, >=20 > it could look like this: >=20 > cat > .config << "EOF" > CONFIG_PARAVIRT_GUEST=3Dy > CONFIG_XEN=3Dy > CONFIG_PARAVIRT=3Dy > CONFIG_PARAVIRT_SPINLOCKS=3Dy > CONFIG_PARAVIRT_CLOCK=3Dy > CONFIG_X86_CMPXCHG64=3Dy > CONFIG_HIGHMEM64G=3Dy > CONFIG_X86_PAE=3Dy > CONFIG_ARCH_PHYS_ADDR_T_64BIT=3Dy > CONFIG_PHYS_ADDR_T_64BIT=3Dy > CONFIG_XEN_NETDEV_FRONTEND=3Dy > CONFIG_XEN_KBDDEV_FRONTEND=3Dy > CONFIG_FB_SYS_FILLRECT=3Dy > CONFIG_FB_SYS_COPYAREA=3Dy > CONFIG_FB_SYS_IMAGEBLIT=3Dy > CONFIG_FB_SYS_FOPS=3Dy > CONFIG_FB_DEFERRED_IO=3Dy > CONFIG_XEN_FBDEV_FRONTEND=3Dy > EOF > yes '' | make oldconfig >=20 > (the options could be shortened with a for loop but it would make it > unreadable...) >=20 > I think the oldconfig run will get and set your arch and shift options > if needed for x86_64 but i haven't testet that but it should work on > 32bit PAE systems... >=20 > have fun, >=20 > Marc >=20 > Am Dienstag, den 23.06.2009, 16:06 -0700 schrieb Dan Magenheimer: > > A fun challenge for those of you who eat raw upstream kernels > > for lunch: > >=20 > > 1) Untar an upstream (say 2.6.30) kernel.org kernel > > 2) From the bash command line ONLY, execute one or more > > commands to configure the kernel so "make" will build > > a fully xen-ified kernel. (Everything else can > > use the defconfig default.) > >=20 > > For extra credit: > > 3) Determine the shortest sequence of commands to do > > the above. > >=20 > > After many tries, I have not been able to do (2) at all. > > I always have to fall back to an existing .config file > > that was created using menuconfig. (I *suspect* this is > > because PARAVIRT_GUEST is defined in Kconfig using a > > menuconfig line rather than a config line, but am unsure.) > >=20 > > Dan > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 >