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

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


  • To: Steve Dobbelstein <steved@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Thu, 20 Dec 2007 11:07:22 +0000
  • Delivery-date: Thu, 20 Dec 2007 03:13:58 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AchC+H5mvTVpda7rEdyLnAAX8io7RQ==
  • Thread-topic: [Xen-devel] Xen 3.1 build of 64-bit uniprocessor xenU kernel broken

Fixed by c/s 15563.

 -- Keir

On 19/12/07 22:47, "Steve Dobbelstein" <steved@xxxxxxxxxx> wrote:

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

_______________________________________________
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®.