From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Baptiste Favre Subject: Re: PCI passthrough issue Date: Thu, 03 Mar 2011 23:47:53 +0100 Message-ID: <4D701A99.10207@jbfavre.org> References: <4D4BFBE4.6080809@jbfavre.org> <1296827449.13091.670.camel@zakaz.uk.xensource.com> <4D4C06BB.8010907@jbfavre.org> <4D52658E.9060907@jbfavre.org> <4D5EE125.6040208@jbfavre.org> <20110225144035.GA7228@dumpdata.com> <4D6B9285.9090903@jbfavre.org> <20110228150141.GD10846@dumpdata.com> <4D6BBC70.5070109@jbfavre.org> <4D6CB851.40103@jbfavre.org> <20110303221247.GA12175@dumpdata.com> Reply-To: xen-devel@lists.xensource.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110303221247.GA12175@dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, Le 03/03/2011 23:12, Konrad Rzeszutek Wilk a =E9crit : >>>> Lets do both. Do you know where the sources for OpenWRT are located? >>> >>> Openwrt .img and PV kernel are available at >>> http://downloads.jbfavre.org/openwrt.tar.gz >=20 > Using that, and this xm file >=20 > kernel=3D"/mnt/tmp/openwrt/openwrt-x86-xen_domu-vmlinuz" > root=3D'/dev/xvda2 rw' > memory=3D256 > vcpus=3D1 > localtime=3D0 > disk=3D['phy:/dev/sdc,xvda,w'] > extra=3D"console=3Dhvc0 debug loglevel=3D10 iommu=3Dsoft" > name=3D"openwrt" > on_crash=3D"preserve" > vfb =3D [ 'vnc=3D1, vnclisten=3D0.0.0.0,vncunused=3D1'] > pci =3D ['04:00.0'] >=20 > where > 04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-= E Gigabit Ethernet Controller (rev 13) >=20 > I can't get the sky2 adapter to work at all. >=20 > Just to make sure it wasn't your build ... >>> >>> I'm making dd from my debian DomU and will upload it as debian.tar.gz= at >>> the same place. Will update you when completed. >>> >>> Openwrt source tree is available here: >>> svn://svn.openwrt.org/openwrt/trunk >>> >>> You have all information to build it here: >>> http://wiki.openwrt.org/doc/howto/build >>> >>> Or you have all steps I followed here: >>> http://publications.jbfavre.org/virtualisation/xen_openwrt_domu_pci_p= assthrough.en >=20 > ... I tried to follow those directions and found that it would not work= . > I can't get the xen-pcifront.ko file at all on any of the *combined.img= images. >=20 >=20 > I made this patch thinking it was due to the name of the module being d= ifferent: >=20 > Index: target/linux/x86/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- target/linux/x86/Makefile (revision 25855) > +++ target/linux/x86/Makefile (working copy) > @@ -12,7 +12,7 @@ > FEATURES:=3Dsquashfs jffs2 ext4 vdi vmdk pcmcia targz > SUBTARGETS=3Dgeneric olpc xen_domu ep80579 net5501 kvm_guest geos > =20 > -LINUX_VERSION:=3D2.6.32.29 > +LINUX_VERSION:=3D2.6.37 > =20 > include $(INCLUDE_DIR)/target.mk > =20 > Index: package/kernel/modules/virtual.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- package/kernel/modules/virtual.mk (revision 25855) > +++ package/kernel/modules/virtual.mk (working copy) > @@ -168,7 +168,7 @@ > TITLE:=3DXen PCI device frontend > DEPENDS:=3D@TARGET_x86_xen_domu @LINUX_2_6_37||LINUX_2_6_38 > KCONFIG:=3DCONFIG_XEN_PCIDEV_FRONTEND > - FILES:=3D$(LINUX_DIR)/drivers/xen/platform-pci.ko > + FILES:=3D$(LINUX_DIR)/drivers/pci/xen-pcifront.ko > AUTOLOAD:=3D$(call AutoLoad,10,xen-pcifront) > endef >=20 > but it still would not include the xen-pcifront.ko file on the *combine= d-ext4.img.gz > file. Any ideas what I am doing wrong? I don't remember such problem. Could this module be BTW, I'm checking that rebuilding OpenWRT. When you execute make menuconfig, choose Target=3Dx86 and SubTarget=3D"Xe= n paravirt Guest". Then go to Kernel Modules -> Virtualisation Support Xen PCI frontend is disabled by default. Did you activated it ? OpenWRT global config cat be found in .config: # grep xen -i .config CONFIG_TARGET_x86_xen_domu=3Dy CONFIG_TARGET_x86_xen_domu_Default=3Dy CONFIG_DEFAULT_kmod-xen-evtchn=3Dy CONFIG_DEFAULT_kmod-xen-fs=3Dy CONFIG_DEFAULT_kmod-xen-kbddev=3Dy CONFIG_DEFAULT_kmod-xen-netdev=3Dy CONFIG_X86_GRUB_BOOTOPTS=3D"xencons=3Dhvc" CONFIG_PACKAGE_kmod-xen-evtchn=3Dy # CONFIG_PACKAGE_kmod-xen-fbdev is not set CONFIG_PACKAGE_kmod-xen-fs=3Dy CONFIG_PACKAGE_kmod-xen-kbddev=3Dy CONFIG_PACKAGE_kmod-xen-netdev=3Dy CONFIG_PACKAGE_kmod-xen-pcidev=3Dy Other way may be to fill target/linux/x86/xen_domu/config-default with Xen CONFIG_* values. This will be used as kernel config Regards, JB