On Sat, Oct 13, 2012 at 6:12 PM, M A Young <span dir="ltr">&lt;<a href="mailto:m.a.young@durham.ac.uk" target="_blank">m.a.young@durham.ac.uk</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Sat, 13 Oct 2012, Gordon McLellan wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m having a decent amount of trouble getting pciback to behave the way I&#39;d<br>
like it to.<br>
Originally I found xen-pciback was compiled as a module and not directly<br>
into the kernel, ruling out use of the boot-time argument<br>
xen-pciback.hide=(blah) ... so I recompiled my kernel, incluging pciback<br>
directly into the kernel.<br>
</blockquote>
<br></div>
Could you pass the option to the module by creating a file in /etc/modprobe.d/ to supply the options to the module (the modprobe.conf explains the format)? I think those files get copied over to the initramfs when you install a kernel so they should still be used even if the module is loaded early in the boot process.<br>


<br>
Incidentally, you seem to be using xen-pciback in one place and pciback in another. With a recent Fedora based kernel I would expect you would need to use xen-pciback throughout.<br>
<br>
        Michael Young<br>
</blockquote></div><br><div>Michael,</div><div><br></div><div>Thank you for the tips.  I made sure I specified xen-pciback instead of the older pciback ... not really sure which line in the configuration it goes on in /etc/default/grub - leaving it on the XEN line for now.  I created /etc/modprobe.d/xen-pciback.conf to also reflect the same:</div>

<div><br></div><div><div>options xen-pciback hide=&#39;(0000:00:1a.0)(0000:00:1b.0)(0000:00:1d.0)(0000:01:00.0)(0000:01:00.1)(0000:00:0b.0)&#39;</div></div><div><br></div><div>after making these changes, I updated the grub config file and rebooted.  After reboot, none of the devices are hidden from dom0.  I can forcibly unbind them from dom0 with a script, but that seems messy and some of the pci devices don&#39;t seem to like it (sata controller for example)</div>
<div><br></div><div>Any suggestions?</div><div><br></div><div>Gordon</div>