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

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

To: Steve Dobbelstein <steved@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Xen 3.1 build of 64-bit uniprocessor xenU kernel broken
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <OF2E640DF0.1FE35FE4-ON862573B6.007AE0D6-862573B6.007D3A7A@xxxxxxxxxx>
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
Thread-index: AchC+H5mvTVpda7rEdyLnAAX8io7RQ==
Thread-topic: [Xen-devel] Xen 3.1 build of 64-bit uniprocessor xenU kernel broken
User-agent: Microsoft-Entourage/11.3.6.070618
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
<Prev in Thread] Current Thread [Next in Thread>