Hi,
as now i want to insert PV driver in my HVM guest to get better network performance, so i should run the following steps as from the README in file:
xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/
---------------------------------------------------------------------
To build, run ./mkbuildtree and then
make -C /path/to/kernel/source M=$PWD modules
You get four modules, xen-evtchn-pci.ko, xenbus.ko, xen-vbd.ko, and
xen-vnif.ko. Load xen-evtchn-pci first, then xenbus, and then
whichever of xen-vbd and xen-vnif you happen to need.
----------------------------------------------------------------------
after ./mkbuildtree the 'make' will bring following errors. where could be the problem?
[root@localhost linux-2.6]# make -C /usr/src/kernels/2.6.19-1.2911.6.5.fc6xen-i686/ M=$PWD modules
make: Entering directory `/usr/src/kernels/2.6.19-1.2911.6.5.fc6xen-i686'
CC [M] /home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.o
:1:1: warning: "__XEN_INTERFACE_VERSION__" redefined
:1:1: warning: this is the location of the previous definition
In file included from /home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c:39:
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/block.h:38:26: error: linux/config.h: No such file or directory
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/block.h:50:35: error: linux/devfs_fs_kernel.h: No such file or directory
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c: In function âsetup_blkringâ:
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c:232: warning: passing argument 2 of âbind_evtchn_to_irqhandlerâ from incompatible pointer type
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c: In function âbackend_changedâ:
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c:275: error: âstruct block_deviceâ has no member named âbd_semâ
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c:281: error: âstruct block_deviceâ has no member named âbd_semâ
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c: In function âdo_blkif_requestâ:
/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.c:617: warning: format â%lxâ expects type âlong unsigned intâ, but argument 4 has type âsector_tâ
make[2]: *** [/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront/blkfront.o] Error 1
make[1]: *** [/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6/blkfront] Error 2
make: *** [_module_/home/songtao/Desktop/rpm/xen-3.0.3-8.fc6.src.rpm_FILES/xen-3.0.3_0-src/unmodified_drivers/linux-2.6] Error 2
make: Leaving directory `/usr/src/kernels/2.6.19-1.2911.6.5.fc6xen-i686'
[root@localhost linux-2.6]# ls /usr/src/kernels/2.6.19-1.2911.6.5.fc6xen-i686/
arch crypto fs init kabi_whitelist lib mm net security symsets-2.6.19-1.2911.6.5.fc6xen.tar.gz
block drivers include ipc kernel Makefile Module.symvers scripts sound usr
[root@localhost linux-2.6]# uname -a
Linux localhost.localdomain 2.6.19-1.2911.6.5.fc6xen #1 SMP Sun Mar 4 16:59:41 EST 2007 i686 i686 i386 GNU/Linux
[root@localhost linux-2.6]# rpm -qa | grep xen
xen-libs-3.0.3-8.fc6
kernel-xen-debuginfo-2.6.19-1.2911.6.5.fc6
kernel-xen-2.6.19-1.2911.6.5.fc6
xen-debuginfo-3.0.3-8.fc6
xen-3.0.3-8.fc6
Any hint will be highly appreciated. Thanks
Songtao