[Fedora-xen] PV network driver

Songtao Liu songtao.liu at mytum.de
Fri Aug 17 15:24:08 UTC 2007


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 at 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 at 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 at 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 at 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


More information about the Fedora-xen mailing list