<p dir="ltr">Thanks! I don't have to blacklist i915 now, and it behaves mostly the same (with windows guest freaking out). One odd thing to note, all of the addresses in my /proc/iomem are 000000000000-00000000000. I accidentally had them load as actual values just a little while ago, but now I'm back to all zeros. I think the forcefully-remove-bootfb module in my last message may be the key I need in this case.</p>
<p dir="ltr">Paul</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 11, 2016, 10:49 AM Alex Williamson <<a href="mailto:alex.williamson@redhat.com">alex.williamson@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 11 Nov 2016 10:34:48 -0700<br class="gmail_msg">
Alex Williamson <<a href="mailto:alex.williamson@redhat.com" class="gmail_msg" target="_blank">alex.williamson@redhat.com</a>> wrote:<br class="gmail_msg">
<br class="gmail_msg">
> On Fri, 11 Nov 2016 10:06:58 -0700<br class="gmail_msg">
> Alex Williamson <<a href="mailto:alex.williamson@redhat.com" class="gmail_msg" target="_blank">alex.williamson@redhat.com</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> > On Fri, 11 Nov 2016 09:52:49 -0700<br class="gmail_msg">
> > Paul Handy <<a href="mailto:paul.d.handy@gmail.com" class="gmail_msg" target="_blank">paul.d.handy@gmail.com</a>> wrote:<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > As others have reported, I've gotten this message despite best efforts:<br class="gmail_msg">
> > > Failed to mmap 0000:00:02.0 BAR 2. Performance may be slow<br class="gmail_msg">
> ><br class="gmail_msg">
> > Are there any clues in /proc/iomem as to what might be consuming<br class="gmail_msg">
> > resources on the device?<br class="gmail_msg">
><br class="gmail_msg">
> D'oh, you provided that, BOOTFB... whatever that is.<br class="gmail_msg">
<br class="gmail_msg">
Ok, this is simplefb and that driver apparently doesn't care that<br class="gmail_msg">
you're trying to disable it with simplefb:off.  The approach I'd take<br class="gmail_msg">
would be to let i915 take the IGD device on boot, it's easier to deal<br class="gmail_msg">
with removing i915 and keeping it off the device than all these<br class="gmail_msg">
miscellaneous other driver grabbing it.  So remove the i915 blacklist,<br class="gmail_msg">
remove the IGD device from the vfio-pci ids list, then create an rc<br class="gmail_msg">
script (or even @reboot crontab entry) that does:<br class="gmail_msg">
<br class="gmail_msg">
echo "vfio-pci" > /sys/bus/pci/devices/0000:00:02.0/driver_override<br class="gmail_msg">
<br class="gmail_msg">
Your libvirt <hostdev> entry should also set managed='yes', which is<br class="gmail_msg">
the default.  The effect will be that the host boots with i915 claiming<br class="gmail_msg">
the device, when the VM is started libvirt will move it to vfio-pci,<br class="gmail_msg">
and when the VM is stopped, the driver_override will prevent i915 from<br class="gmail_msg">
reattaching to the device, which avoids the i915 driver issues on the<br class="gmail_msg">
host.  So it's basically a one-way path from i915 to vfio-pci.  The<br class="gmail_msg">
benefit is that unbinding i915 from the IGD should be clean and random<br class="gmail_msg">
other FB drivers won't be clinging to resources.  Thanks,<br class="gmail_msg">
<br class="gmail_msg">
Alex<br class="gmail_msg">
</blockquote></div>