Hello, I would like to test difference (mostly in performance) between bridged ethernet and direct access to ethernet card in xen (2.0.6, kernel 2.4.30-xenU). Machine has several on-board ethernet cards, so I can leave one ethernet for domO and second for domU. How can I compile ethernet driver into domU kernel? I have tried CONFIG_XEN_PHYSDEV_ACCESS=y CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +ethernet driver itself but when linking vmlinux, I have got arch/xen/drivers/blkif/drv.o: In function `blkif_connect'': arch/xen/drivers/blkif/drv.o(.text+0x3601): undefined reference to `direct_remap_area_pages'' arch/xen/drivers/netif/drv.o: In function `netif_connect'': arch/xen/drivers/netif/drv.o(.text+0x3832): undefined reference to `direct_remap_area_pages'' arch/xen/drivers/netif/drv.o(.text+0x386f): undefined reference to `direct_remap_area_pages'' Does it means that I have to allow also CONFIG_XEN_PRIVILEGED_GUEST=y With this I''m able to compile kernel, but is it correct way? -- Mirek Ruda _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2005-Jul-03 00:11 UTC
Re: [Xen-users] direct access to ethernet card from domU
> but when linking vmlinux, I have got > > > arch/xen/drivers/blkif/drv.o: In function `blkif_connect'': > arch/xen/drivers/blkif/drv.o(.text+0x3601): undefined reference to > `direct_remap_area_pages'' > arch/xen/drivers/netif/drv.o: In function `netif_connect'': > arch/xen/drivers/netif/drv.o(.text+0x3832): undefined reference to > `direct_remap_area_pages'' > arch/xen/drivers/netif/drv.o(.text+0x386f): undefined reference to > `direct_remap_area_pages'' > > Does it means that I have to allow also > CONFIG_XEN_PRIVILEGED_GUEST=y > > With this I''m able to compile kernel, but is it correct way?Yes. You could just use the xen0 kernel in your guest, though - then it''d automatically support all the same devices that dom0 does. Cheers, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users