From mboxrd@z Thu Jan 1 00:00:00 1970 From: "dev001" Subject: Re: how to PCI-passthrough 1 card to a DomU when another @ Dom0 uses the same driver? Date: Wed, 02 Feb 2011 14:26:19 -0800 Message-ID: <1296685579.3577.1418648875@webmail.messagingengine.com> References: <1296623011.3053.1418495679@webmail.messagingengine.com><20110202202705.GD19684@dumpdata.com> <1296683031.21707.1418639239@webmail.messagingengine.com> Reply-To: pgngw+dev001+xen-users@f-m.fm Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1296683031.21707.1418639239@webmail.messagingengine.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 hi, > > Did you follow the rules for doing it detailed in the VT-d howto? Just use the pciback instead of pci-stub in it. > i "followed the rules" for method 2 ... not at all sure why that was NOT working for me, but, the following: grep pci /boot/grub/menu.lst ... module /vmlinuz-xen ... pci=resource_aligment=0000:05:07.0;0000:02:00.0;0000:03:0.0 rm /etc/modprobe.d/99-local.conf cat /etc/init.d/boot.local #! /bin/sh DEV="0000:02:00.0 \ 0000:03:00.0 \ 0000:05:07.0 \ " for BDF in $DEV do [ ! -e /sys/bus/pci/devices/$BDF/driver/unbind ] || \ echo -n $BDF > /sys/bus/pci/devices/$BDF/driver/unbind echo -n $BDF > /sys/bus/pci/drivers/pciback/new_slot echo -n $BDF > /sys/bus/pci/drivers/pciback/bind echo -n $BDF > /sys/bus/pci/drivers/pciback/permissive done now, @ reboot, dmesg | grep -i seiz [ 33.277131] pciback 0000:02:00.0: seizing device [ 33.308782] pciback 0000:03:00.0: seizing device [ 33.358124] pciback 0000:05:07.0: seizing device apparently correctly seizes all the devices, as intended. (note the much later timestamps ...) and, in my DomU, lspci 00:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 00:01.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 20) thanks!