Re: [PATCH v1] vfio/pci: Avoid mapping BARs for devices with non-mappable BARs
From: Farhan Ali
Date: Mon Aug 10 2026 - 13:49:21 EST
On 8/4/2026 6:39 AM, Matthew Rosato wrote:
^ Yes exactly that. To be clear: I am happy from the s390 side with theThe bar_mmap_supported flag describes something else, whether the BARAFAICT this fix should be sufficient. I think Matt's question was to see
can be mapped into the user address space. My intention was only to
point out that there are BARs that cannot be mapped to the user address
space because either they're not MMIO or we can't safely map the full
page, therefore bar_mmap_supported is an invalid test for whether we
should request the region or iomap the BAR.
Is there still a gap with the original proposal that I'm missing?
if there were other cases for which bar_mmap_supported were set to
false, that we need to consider here. But I will let him clarify to see
if he has any concerns.
fix as it is proposed.
My questions were basically trying to generate the conversation that was
just had in an effort to avoid another fix later.
So, with the context provided (thanks!):
Reviewed-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>
Hi Alex,
Polite ping on this patch. Please let me know if there are any other concerns with this patch or if we could consider this for inclusion to fix the regression on s390.
Thanks
Farhan