From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: PCI passthrough issue Date: Thu, 3 Mar 2011 17:12:47 -0500 Message-ID: <20110303221247.GA12175@dumpdata.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4D6CB851.40103@jbfavre.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-devel@jbfavre.org List-Id: xen-devel@lists.xenproject.org > >> 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 Using that, and this xm file kernel="/mnt/tmp/openwrt/openwrt-x86-xen_domu-vmlinuz" root='/dev/xvda2 rw' memory=256 vcpus=1 localtime=0 disk=['phy:/dev/sdc,xvda,w'] extra="console=hvc0 debug loglevel=10 iommu=soft" name="openwrt" on_crash="preserve" vfb = [ 'vnc=1, vnclisten=0.0.0.0,vncunused=1'] pci = ['04:00.0'] where 04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 13) I can't get the sky2 adapter to work at all. 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_passthrough.en ... 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. I made this patch thinking it was due to the name of the module being different: Index: target/linux/x86/Makefile =================================================================== --- target/linux/x86/Makefile (revision 25855) +++ target/linux/x86/Makefile (working copy) @@ -12,7 +12,7 @@ FEATURES:=squashfs jffs2 ext4 vdi vmdk pcmcia targz SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos -LINUX_VERSION:=2.6.32.29 +LINUX_VERSION:=2.6.37 include $(INCLUDE_DIR)/target.mk Index: package/kernel/modules/virtual.mk =================================================================== --- package/kernel/modules/virtual.mk (revision 25855) +++ package/kernel/modules/virtual.mk (working copy) @@ -168,7 +168,7 @@ TITLE:=Xen PCI device frontend DEPENDS:=@TARGET_x86_xen_domu @LINUX_2_6_37||LINUX_2_6_38 KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND - FILES:=$(LINUX_DIR)/drivers/xen/platform-pci.ko + FILES:=$(LINUX_DIR)/drivers/pci/xen-pcifront.ko AUTOLOAD:=$(call AutoLoad,10,xen-pcifront) endef but it still would not include the xen-pcifront.ko file on the *combined-ext4.img.gz file. Any ideas what I am doing wrong?