+2
−23
Loading
As of commit aac6db75 ("vfio/pci: Use unmap_mapping_range()"), vm_pgoff may no longer guaranteed to hold the PFN for VM_PFNMAP regions. Using vma->vm_pgoff to derive the HPA here may therefore produce incorrect mappings. Instead, I/O mappings for such regions can be established on-demand during g-stage page faults, making the upfront ioremap in this path is unnecessary. Fixes: aac6db75 ("vfio/pci: Use unmap_mapping_range()") Signed-off-by:Fangyu Yu <fangyu.yu@linux.alibaba.com> Tested-by:
Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by:
Guo Ren <guoren@kernel.org> Reviewed-by:
Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20251021142131.78796-1-fangyu.yu@linux.alibaba.com Signed-off-by:
Anup Patel <anup@brainfault.org>