[Click] Integrating Click with Xen.

Egi, Norbert n.egi at lancaster.ac.uk
Wed Nov 22 09:26:57 EST 2006


Hi,
 
I was trying to install Click on a machine that is having Xen 3.0.3 on it. I installed Xen from the source (http://bits.xensource.com/oss-xen/release/3.0.3-0/src.tgz/xen-3.0.3_0-src.tgz) based on the kernel version 2.6.16.29 and after it I used Click's linux-2.6.16.13-patch to patch the domain0's kernel source (found in the XENDIR/linux-2.6.16.29-xen0/). I had to make some changes to the patch file as at first it failed to patch 2 or 3 files, but after that I was able to patch and rebuild the Xen dom0 kernel successfully. After configuring Click ( ./configure --with-linux=XENDIR/linux-2.6.16.29-xen0/ ) I ran 'make install' which stopped with the following error messages:
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In file included from include/asm-i386/mach-xen/asm/system.h:10,
                 from include/asm-i386/mach-xen/asm/processor.h:18,
                 from /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/asm/thread_info.h:17,
                 from /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/linux/thread_info.h:21,
                 from /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/asm/uaccess.h:9,
                 from /usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0/include/net/checksum.h:25,
                 from /usr/src/click-1.5.0/include/clicknet/ip.h:8,
                 from /usr/src/click-1.5.0/lib/in_cksum.c:12:
include/asm-i386/mach-xen/asm/hypervisor.h: In function `HYPERVISOR_poll':
include/asm-i386/mach-xen/asm/hypervisor.h:177: error: request for member `p' in something not a structure or union
make[3]: *** [/usr/src/click-1.5.0/linuxmodule/in_cksum.o] Error 1
make[2]: *** [_module_/usr/src/click-1.5.0/linuxmodule] Error 2
make[2]: Leaving directory `/usr/src/xen-3.0.3_0-src/linux-2.6.16.29-xen0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/click-1.5.0/linuxmodule'
make: *** [linuxmodule] Error 2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
The problem is that I cannot find this 'p' member anywhere, neither in 'hypervisor.h' nor in 'in_cksum.c', so I don't really know what to modify in the source code to avoid this error. In addition, I neither could find where this 'HYPERVISOR_poll' function is called in any of the header files referred to in this error message.
 
By the way, has anyone tried to install Click on Xen before, I hardly could find any documentation about it? Is it possible to do this at all? If yes, what changes have to be done to make it work?
 
Many thanks in advance,
Norbert



More information about the click mailing list