[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Xen 3.1 build of 64-bit uniprocessor xenU kernel broken


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Steve Dobbelstein <steved@xxxxxxxxxx>
  • Date: Wed, 19 Dec 2007 16:47:39 -0600
  • Delivery-date: Wed, 19 Dec 2007 14:48:11 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

I am trying to build a 64-bit uniprocessor unprivileged Xen kernel on the latest xen-3.1-testing tree. I copied the buildconfigs/linux-defconfig_xenU_x86_64 to build-linux-2.6.18-xenU_x86_64/.config and ran make menuconfig making only on change to turn SMP off. The build fails with:

arch/x86_64/kernel/built-in.o: In function `identify_cpu':
/usr/src/xen/xen-3.1-testing.hg-15559/linux-2.6.18-xen/arch/x86_64/kernel/setup-xen.c:1406: undefined reference to `genapic'
make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [_all] Error 2
make: Leaving directory `/usr/src/xen/xen-3.1-testing.hg-15559/linux-2.6.18-xen'

/linux-2.6.18-xen/arch/x86_64/kernel/setup-xen.c makes a reference to the genapic variable via the phys_pkg_id(0) macro. The genapic variable does not exist because it is declared in linux-2.6.18-xen/arch/x86_64/kernel/genapic.c, which is not built because CONFIG_X86_XEN_GENAPIC is not defined. (See linux-2.6.18-xen/arch/x86_64/kernel/Makefile where genapic.o and genapic_xen.o are only built if CONFIG_X86_XEN_GENAPIC is defined.) In linux-2.6.18-xen/arch/x86_64/Kconfig X86_XEN_GENAPIC is defined only if XEN_PRIVILEGED_GUEST || SMP is set. In my case--unpriviliedged, uniprocessor--neither is set, so X86_XEN_GENAPIC does not get set.

Steve D.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.