From: "dev001" <pgngw+dev001+xen-users@f-m.fm>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xensource.com
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 [thread overview]
Message-ID: <1296685579.3577.1418648875@webmail.messagingengine.com> (raw)
In-Reply-To: <1296683031.21707.1418639239@webmail.messagingengine.com>
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!
next prev parent reply other threads:[~2011-02-02 22:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 5:03 how to PCI-passthrough 1 card to a DomU when another @ Dom0 uses the same driver? dev001
2011-02-02 20:27 ` Konrad Rzeszutek Wilk
2011-02-02 21:43 ` dev001
2011-02-02 22:26 ` dev001 [this message]
2011-02-03 16:26 ` Konrad Rzeszutek Wilk
2011-02-03 17:12 ` dev001
2011-02-03 17:42 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296685579.3577.1418648875@webmail.messagingengine.com \
--to=pgngw+dev001+xen-users@f-m.fm \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.