WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Xen 3.1 build of 64-bit uniprocessor xenU kernel broken
From: Steve Dobbelstein <steved@xxxxxxxxxx>
Date: Wed, 19 Dec 2007 16:47:39 -0600
Delivery-date: Wed, 19 Dec 2007 14:48:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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
<Prev in Thread] Current Thread [Next in Thread>