On Thu, Feb 13, 2014 at 22:52, Mark Kettenis wrote: > Turns out we are pretty close. The only problem is that X still wants > to probe the pci bus. We allow access to /dev/pci0 if > machdep.allowaperture is 0, but libpciaccess uses O_RDWR to open it. > The diff below chages this such that it tries O_RDONLY if O_RDWR fails.
Is there a reason not to use O_RDONLY in the first place? I'm wondering if this will make it harder to diagnose a later failure where some machines have writable fds and some don't.
