On 12/10/17 02:35, Benjamin Herrenschmidt wrote: > On Wed, 2017-10-11 at 13:56 +1100, Alexey Kardashevskiy wrote: >> Oopsie. This is because I overlooked it. Others do not use it. So I do need >> a file. But in the current scheme where all BARs share one fd - it won't >> work - I simply cannot allow WC on non-prefetchable BARs :-/ > > This is an oversight in the design of VFIO-PCI, it should have a way to > specify write combine, either implicitely via such an arch hook, or > explicitely via an ioctl prior to mapping the BARs for example. > > Alex, what do you reckon is the best approach here ? /me wonders if it is yet another issue for the dead issues bucket, just like the msix mapping one :) -- Alexey