[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] PCI passthrough issue



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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.