diff options
| author | Fangyu Yu <fangyu.yu@linux.alibaba.com> | 2025-10-21 17:21:31 +0300 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2025-10-24 18:54:36 +0300 |
| commit | 8c5fa3764facaad6d38336e90f406c2c11d69733 (patch) | |
| tree | 550ae2bd4df9ecfb4a184e9549906fe256864dac /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | 873f10cf8e4d59605bc38fa1051dea8ee56fe3be (diff) | |
| download | linux-8c5fa3764facaad6d38336e90f406c2c11d69733.tar.xz | |
RISC-V: KVM: Remove automatic I/O mapping for VM_PFNMAP
As of commit aac6db75a9fc ("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: aac6db75a9fc ("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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
