Severin Wiedemann
2007-Nov-16 11:45 UTC
[Xen-users] PCI Mapping of e1000 Dual-Port Adapter to DomU
Hello, I´m trying to map one network interface of a Dual-Port e1000 Server Adapter to a DomU (firewall). In Dom0 the adaper is seen with lspci as: 06:00.0 Ethernet controller: Intel Corporation 631xESB/632xESB DPT LAN Controller Copper (rev 01) 06:00.1 Ethernet controller: Intel Corporation 631xESB/632xESB DPT LAN Controller Copper (rev 01) My goal is to map only 06:00.1 to DomU so I used this script before the startup of xendomains: #!/bin/bash /sbin/modprobe pciback SLOT=0000:06:00.1 # Unbind a PCI network card from its network driver echo -n $SLOT > /sys/bus/pci/drivers/e1000/unbind # And now bind it to the PCI Backend echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind I can see that after executing the script above the adapter is bind to pciback correctly. When I start the DomU I can´t see the Adapter with lspci. I use XEN 3.1.0 with Kernel 2.6.18 (Source-Package) under Debian Etch. The frontend-Driver is compiled into the Kernel and the pciback-Driver is compiled as Module. I use the same Kernel/initrd for Dom0/DomU. Is it possible that I have to use a single e1000 Card to map it to DomU and that it is not possible to map only one Interface of the Dual-Card to DomU? Thanks for any hints on this topic ! Severin Wiedemann ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Severin Wiedemann
2007-Nov-16 15:27 UTC
[Xen-users] PCI Mapping of e1000 Dual-Port Adapter to DomU
Hello, I´m trying to map one network interface of a Dual-Port e1000 Server Adapter to a DomU (firewall). In Dom0 the adaper is seen with lspci as: 06:00.0 Ethernet controller: Intel Corporation 631xESB/632xESB DPT LAN Controller Copper (rev 01) 06:00.1 Ethernet controller: Intel Corporation 631xESB/632xESB DPT LAN Controller Copper (rev 01) My goal is to map only 06:00.1 to DomU so I used this script before the startup of xendomains: #!/bin/bash /sbin/modprobe pciback SLOT=0000:06:00.1 # Unbind a PCI network card from its network driver echo -n $SLOT > /sys/bus/pci/drivers/e1000/unbind # And now bind it to the PCI Backend echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind I can see that after executing the script above the adapter is bind to pciback correctly. When I start the DomU I can´t see the Adapter with lspci. I use XEN 3.1.0 with Kernel 2.6.18 (Source-Package) under Debian Etch. The frontend-Driver is compiled into the Kernel and the pciback-Driver is compiled as Module. I use the same Kernel/initrd for Dom0/DomU. Is it possible that I have to use a single e1000 Card to map it to DomU and that it is not possible to map only one Interface of the Dual-Card to DomU? Thanks for any hints on this topic ! Severin Wiedemann ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users