I strongly disagree with the way this bug was (not) handled. This is
likely also a bug with the "binary" package linux-source-2.6.22 which is
included in your main distribution. The intended (and sole) usage of
this package (which is also stated in the description) is to allow the
user to create kernel packages with a custom config. So using it with a
different config is intended and therefore shall work. If you think
otherwise, please explain me the purpose of including the package (the
"binary" one, not the source) into the distribution.

I have however prepared a fix for the problem against the source package
which solves it at least on x86_64 (i don't know if the bug even occurs
on i386 compiles). The patch makes three changes to the debian/binary-
custom.d/xen/patchset/001.patch. The first fix changes the patch for
arch/x86_64/Kconfig file. Here X86_XEN_GENAPIC is set statically to "y"
(instead of XEN_PRIVILEGED_GUEST || SMP) as xen always uses some of the
APIC-code, even if compiling for a domU and without SMP. This patch is
therefore needed to make the kernel compilable without SMP.

The other two fixes could also be used without the former fix. They
change the patch for the include/mach-xen/asm/smp.h and
arch/x86_64/kernel/traps-xen.c files. Here two preprocessor conditional
directives ("#ifdef CONFIG_X86_LOCAL_APIC") are changed (to "#if
defined(CONFIG_X86_LOCAL_APIC) || defined(CONFIG_X86_XEN_GENAPIC)").
This allows the kernel to be compiled without support for running as
dom0 enabled. However one might notice that another fix would be to just
remove the two preprocessor directives, because due to my first fix they
will always be true because CONFIG_X86_XEN_GENAPIC will always be true.
I still think it is more clean to make it this way.

The patch was (shortly) tested by me with both SMP enabled and SMP
disabled is attached.


** Attachment added: "fix compile for XEN_PRIVILEGED_GUEST=n and SMP=n"
   http://launchpadlibrarian.net/11847095/linux-source-2.6.22-xenfix.patch

-- 
unresolved symbols when compiling xen kernel with custom config
https://bugs.launchpad.net/bugs/157925
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to