Bruce Edge
2009-Oct-12 17:21 UTC
[Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
I used to be able to do this with the 2.6.30.3 dom0: pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) Now I get: Unknown boot option `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': ignoring Is there an equivalent boot arg for the PVOPS kernel for this? Where are the docs for what boot args this dom0 kernel supports? -Bruce _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bruce Edge
2009-Oct-12 18:21 UTC
Re: [Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
On Mon, Oct 12, 2009 at 11:04 AM, McNeal, Rick <Rick.McNeal@lsi.com> wrote:> Have you used the /sys/bus/pci/drivers/pciback to do the same thing? >Here''s what I tried: These are devices I wanted to pass through: lspci -n | grep 07:00 07:00.0 0c04: 11f8:8032 (rev 05) 07:00.1 0c04: 11f8:8032 (rev 05) 07:00.2 0c04: 11f8:8032 (rev 05) 07:00.3 0c04: 11f8:8032 (rev 05) I started following the instructions for the pv_ops VT_d here: http://wiki.xensource.com/xenwiki/VTdHowTo 0 #> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id 0 #> echo "0000:17:00.0" > /sys/bus/pci/devices/0000:17:00.0/driver/unbind 0 #> echo "0000:17:00.0" > /sys/bus/pci/drivers/pci-stub/bind Then, when I ran xm pci-attach dpm 0000:17:00.0 17 ( is that right? ) the console prints: (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 and the domU reboots. -Bruce> ---- > Rick > > Twenty years from now you will be more disappointed by the things you > didn''t do than by the ones you did do. So throw off the bowline. Sail > away from the safe harbor. Catch the trade winds in your sails. > Explore. Dream. Discover. -Mark Twain > > On Oct 12, 2009, at 11:26 AM, "Bruce Edge" <bruce.edge@gmail.com> wrote: > >> I used to be able to do this with the 2.6.30.3 dom0: >> pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) >> >> Now I get: >> Unknown boot option >> `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': ignoring >> >> Is there an equivalent boot arg for the PVOPS kernel for this? >> >> Where are the docs for what boot args this dom0 kernel supports? >> >> -Bruce >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bruce Edge
2009-Oct-12 18:34 UTC
Re: [Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
Forgot to add that after this> 0 #> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id > 0 #> echo "0000:17:00.0" > /sys/bus/pci/devices/0000:17:00.0/driver/unbind > 0 #> echo "0000:17:00.0" > /sys/bus/pci/drivers/pci-stub/bindxm reports the devices as assignable: #> xm pci-list-assignable-devices 0000:17:00.0 0000:17:00.1 0000:14:00.0 0000:14:00.1 0000:07:00.0 0000:07:00.1 0000:07:00.2 0000:07:00.3 On Mon, Oct 12, 2009 at 11:21 AM, Bruce Edge <bruce.edge@gmail.com> wrote:> On Mon, Oct 12, 2009 at 11:04 AM, McNeal, Rick <Rick.McNeal@lsi.com> wrote: >> Have you used the /sys/bus/pci/drivers/pciback to do the same thing? >> > Here''s what I tried: > > These are devices I wanted to pass through: > > lspci -n | grep 07:00 > > 07:00.0 0c04: 11f8:8032 (rev 05) > 07:00.1 0c04: 11f8:8032 (rev 05) > 07:00.2 0c04: 11f8:8032 (rev 05) > 07:00.3 0c04: 11f8:8032 (rev 05) > > I started following the instructions for the pv_ops VT_d here: > http://wiki.xensource.com/xenwiki/VTdHowTo > > 0 #> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id > 0 #> echo "0000:17:00.0" > /sys/bus/pci/devices/0000:17:00.0/driver/unbind > 0 #> echo "0000:17:00.0" > /sys/bus/pci/drivers/pci-stub/bind > > Then, when I ran > > xm pci-attach dpm 0000:17:00.0 17 ( is that right? ) > > > the console prints: > > (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 > > and the domU reboots. > > -Bruce > >> ---- >> Rick >> >> Twenty years from now you will be more disappointed by the things you >> didn''t do than by the ones you did do. So throw off the bowline. Sail >> away from the safe harbor. Catch the trade winds in your sails. >> Explore. Dream. Discover. -Mark Twain >> >> On Oct 12, 2009, at 11:26 AM, "Bruce Edge" <bruce.edge@gmail.com> wrote: >> >>> I used to be able to do this with the 2.6.30.3 dom0: >>> pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) >>> >>> Now I get: >>> Unknown boot option >>> `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': ignoring >>> >>> Is there an equivalent boot arg for the PVOPS kernel for this? >>> >>> Where are the docs for what boot args this dom0 kernel supports? >>> >>> -Bruce >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bruce Edge
2009-Oct-12 18:43 UTC
[Xen-users] Re: pciback.hide equivalent boot arg for PVOPS xen/master kernel?
Which, according to the docs: When building the device model, also known as qemu-dm and qemu-xen, often automatically downloaded during compilation and found in the tools/ioemu-dir/ subdirectory of the xen tree, it is important that the development headers and libraries for libpci are installed. Otherwise qemu-dm will be built without pass-through support. If the device model has been compiled without pass-through support, the following error will show up in xend.log at run-time when pass-through is attempted. ERROR (XendDomainInfo:581) Device model didn''t tell the vslots for PCI device which means I don''t have the libpci headers installed. I am getting: Device model didn''t tell the vslots for PCI device in the logs, however I do have the pci-dev headers installed: #> dpkg -L libpci-dev /. /usr /usr/include /usr/include/pci /usr/include/pci/pci.h /usr/include/pci/header.h /usr/include/pci/config.h /usr/include/pci/types.h -Bruce On Mon, Oct 12, 2009 at 10:21 AM, Bruce Edge <bruce.edge@gmail.com> wrote:> I used to be able to do this with the 2.6.30.3 dom0: > pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) > > Now I get: > Unknown boot option > `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': ignoring > > Is there an equivalent boot arg for the PVOPS kernel for this? > > Where are the docs for what boot args this dom0 kernel supports? > > -Bruce >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rick McNeal
2009-Oct-12 18:45 UTC
Re: [Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
On 12-Oct-2009, at 12:21 PM, Bruce Edge wrote:> On Mon, Oct 12, 2009 at 11:04 AM, McNeal, Rick <Rick.McNeal@lsi.com> > wrote: >> Have you used the /sys/bus/pci/drivers/pciback to do the same thing? >> > Here''s what I tried: > > These are devices I wanted to pass through: > > lspci -n | grep 07:00 > > 07:00.0 0c04: 11f8:8032 (rev 05) > 07:00.1 0c04: 11f8:8032 (rev 05) > 07:00.2 0c04: 11f8:8032 (rev 05) > 07:00.3 0c04: 11f8:8032 (rev 05) > > I started following the instructions for the pv_ops VT_d here: > http://wiki.xensource.com/xenwiki/VTdHowTo > > 0 #> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id > 0 #> echo "0000:17:00.0" > /sys/bus/pci/devices/0000:17:00.0/driver/ > unbind > 0 #> echo "0000:17:00.0" > /sys/bus/pci/drivers/pci-stub/bind >On my system I would do the unbind first and then use new_slot instead of new_id. For example: echo -n 0000:82:00.0 > /sys/bus/pci/drivers/pciback/new_slot echo -n 0000:82:00.0 > /sys/bus/pci/drivers/pciback/bind My current configuration doesn''t require the unbind because no other driver is attempting to claim the device. I also noticed you''re using pci-stub and not pciback. On my machine it doesn''t have pci-stub. I''m currently running an older version of Xen than what I believe is current which might explain why thing are different and possibly working for me.> Then, when I ran > > xm pci-attach dpm 0000:17:00.0 17 ( is that right? ) > > > the console prints: > > (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 > (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 > > and the domU reboots. > > -Bruce > >> ---- >> Rick >> >> Twenty years from now you will be more disappointed by the things you >> didn''t do than by the ones you did do. So throw off the bowline. Sail >> away from the safe harbor. Catch the trade winds in your sails. >> Explore. Dream. Discover. -Mark Twain >> >> On Oct 12, 2009, at 11:26 AM, "Bruce Edge" <bruce.edge@gmail.com> >> wrote: >> >>> I used to be able to do this with the 2.6.30.3 dom0: >>> pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) >>> >>> Now I get: >>> Unknown boot option >>> `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': >>> ignoring >>> >>> Is there an equivalent boot arg for the PVOPS kernel for this? >>> >>> Where are the docs for what boot args this dom0 kernel supports? >>> >>> -Bruce >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users---- Rick McNeal rick.mcneal@lsi.com "An armed society is a polite society. Manners are good when one may have to back up his acts with his life." -- Robert A. Heinlein _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bruce Edge
2009-Oct-12 18:55 UTC
Re: [Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
On Mon, Oct 12, 2009 at 11:45 AM, Rick McNeal <rick.mcneal@lsi.com> wrote:> > On 12-Oct-2009, at 12:21 PM, Bruce Edge wrote: > >> On Mon, Oct 12, 2009 at 11:04 AM, McNeal, Rick <Rick.McNeal@lsi.com> >> wrote: >>> >>> Have you used the /sys/bus/pci/drivers/pciback to do the same thing? >>> >> Here''s what I tried: >> >> These are devices I wanted to pass through: >> >> lspci -n | grep 07:00 >> >> 07:00.0 0c04: 11f8:8032 (rev 05) >> 07:00.1 0c04: 11f8:8032 (rev 05) >> 07:00.2 0c04: 11f8:8032 (rev 05) >> 07:00.3 0c04: 11f8:8032 (rev 05) >> >> I started following the instructions for the pv_ops VT_d here: >> http://wiki.xensource.com/xenwiki/VTdHowTo >> >> 0 #> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id >> 0 #> echo "0000:17:00.0" > /sys/bus/pci/devices/0000:17:00.0/driver/unbind >> 0 #> echo "0000:17:00.0" > /sys/bus/pci/drivers/pci-stub/bind >> > > On my system I would do the unbind first and then use new_slot instead of > new_id. For example: > > echo -n 0000:82:00.0 > /sys/bus/pci/drivers/pciback/new_slot > echo -n 0000:82:00.0 > /sys/bus/pci/drivers/pciback/bind > > My current configuration doesn''t require the unbind because no other driver > is attempting to claim the device. I also noticed you''re using pci-stub and > not pciback. On my machine it doesn''t have pci-stub. I''m currently running > an older version of Xen than what I believe is current which might explain > why thing are different and possibly working for me. >Yep, that''s the difference. I had pciback.hide= working on the 2.6.30.3 dom0 kernel, but that doesn''t work on the 2.6.31.1 pv-ops kernel: [ 1.864046] Kernel command line: root=UUID=e0a8abaf-ebb4-4a46-a968-36764653b87f ro earlyprintk=xe n irqpoll console=hvc0 loglevel=10 debug pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) (14:00.1)(17:00.0)(17:00.1) acpi=force [ 1.864093] Unknown boot option `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)(14:00 -Bruce>> Then, when I ran >> >> xm pci-attach dpm 0000:17:00.0 17 ( is that right? ) >> >> >> the console prints: >> >> (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 >> (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 >> (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 >> (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = 17:0.0 >> >> and the domU reboots. >> >> -Bruce >> >>> ---- >>> Rick >>> >>> Twenty years from now you will be more disappointed by the things you >>> didn''t do than by the ones you did do. So throw off the bowline. Sail >>> away from the safe harbor. Catch the trade winds in your sails. >>> Explore. Dream. Discover. -Mark Twain >>> >>> On Oct 12, 2009, at 11:26 AM, "Bruce Edge" <bruce.edge@gmail.com> wrote: >>> >>>> I used to be able to do this with the 2.6.30.3 dom0: >>>> pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) >>>> >>>> Now I get: >>>> Unknown boot option >>>> `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': ignoring >>>> >>>> Is there an equivalent boot arg for the PVOPS kernel for this? >>>> >>>> Where are the docs for what boot args this dom0 kernel supports? >>>> >>>> -Bruce >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users >>> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > ---- > Rick McNeal > rick.mcneal@lsi.com > > "An armed society is a polite society. Manners are good when one may have to > back up his acts with his life." -- Robert A. Heinlein > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rick McNeal
2009-Oct-12 19:12 UTC
Re: [Xen-users] pciback.hide equivalent boot arg for PVOPS xen/master kernel?
On 12-Oct-2009, at 12:55 PM, Bruce Edge wrote:> > Yep, that''s the difference. I had pciback.hide= working on the > 2.6.30.3 dom0 kernel, but that doesn''t work on the 2.6.31.1 pv-ops > kernel: >I thought using the /sys/bus/... method might work for you because on my system the kernel command line worked for a while and then after a new release I received (long story) the command/boot line stopped work and we had to switch to using the /sys/bus method.> [ 1.864046] Kernel command line: > root=UUID=e0a8abaf-ebb4-4a46-a968-36764653b87f ro earlyprintk=xe > n irqpoll console=hvc0 loglevel=10 debug > pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) > (14:00.1)(17:00.0)(17:00.1) acpi=force > [ 1.864093] Unknown boot option > `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)(14:00 > > -Bruce > >>> Then, when I ran >>> >>> xm pci-attach dpm 0000:17:00.0 17 ( is that right? ) >>> >>> >>> the console prints: >>> >>> (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 >>> (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = >>> 17:0.0 >>> (XEN) [VT-D]iommu.c:1289:d0 domain_context_unmap:PCIe: bdf = 17:0.0 >>> (XEN) [VT-D]iommu.c:1175:d0 domain_context_mapping:PCIe: bdf = >>> 17:0.0 >>> >>> and the domU reboots. >>> >>> -Bruce >>> >>>> ---- >>>> Rick >>>> >>>> Twenty years from now you will be more disappointed by the things >>>> you >>>> didn''t do than by the ones you did do. So throw off the bowline. >>>> Sail >>>> away from the safe harbor. Catch the trade winds in your sails. >>>> Explore. Dream. Discover. -Mark Twain >>>> >>>> On Oct 12, 2009, at 11:26 AM, "Bruce Edge" <bruce.edge@gmail.com> >>>> wrote: >>>> >>>>> I used to be able to do this with the 2.6.30.3 dom0: >>>>> pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0) >>>>> >>>>> Now I get: >>>>> Unknown boot option >>>>> `pciback.hide=(07:00.0)(07:00.1)(07:00.2)(07:00.3)(14:00.0)'': >>>>> ignoring >>>>> >>>>> Is there an equivalent boot arg for the PVOPS kernel for this? >>>>> >>>>> Where are the docs for what boot args this dom0 kernel supports? >>>>> >>>>> -Bruce >>>>> >>>>> _______________________________________________ >>>>> Xen-users mailing list >>>>> Xen-users@lists.xensource.com >>>>> http://lists.xensource.com/xen-users >>>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >> ---- >> Rick McNeal >> rick.mcneal@lsi.com >> >> "An armed society is a polite society. Manners are good when one >> may have to >> back up his acts with his life." -- Robert A. Heinlein >> >> >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users---- Rick McNeal rick.mcneal@lsi.com “If you see a man approaching you with the obvious intent of doing you good, you should run for your life.” —Henry David Thoreau _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users