linux/arch/riscv/kvm
Fangyu Yu 8c5fa3764f RISC-V: KVM: Remove automatic I/O mapping for VM_PFNMAP
As of commit aac6db75a9 ("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: aac6db75a9 ("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>
2025-10-24 21:24:36 +05:30
..
Kconfig entry: Rename "kvm" entry code assets to "virt" to genericize APIs 2025-09-30 22:50:18 +00:00
Makefile RISC-V: KVM: add support for FWFT SBI extension 2025-09-08 09:52:57 +05:30
aia.c RISC-V: KVM: Move HGEI[E|P] CSR access to IMSIC virtualization 2025-07-11 18:33:27 +05:30
aia_aplic.c
aia_device.c RISC-V: KVM: Drop the return value of kvm_riscv_vcpu_aia_init() 2025-07-28 22:27:07 +05:30
aia_imsic.c RISC-V: KVM: Read HGEIP CSR on the correct cpu 2025-10-17 13:10:01 +05:30
gstage.c RISC-V: KVM: Prevent HGATP_MODE_BARE passed 2025-09-16 10:54:05 +05:30
main.c RISC-V: KVM: Prevent HGATP_MODE_BARE passed 2025-09-16 10:54:05 +05:30
mmu.c RISC-V: KVM: Remove automatic I/O mapping for VM_PFNMAP 2025-10-24 21:24:36 +05:30
nacl.c
tlb.c RISC-V: KVM: Pass VMID as parameter to kvm_riscv_hfence_xyz() APIs 2025-07-28 22:27:32 +05:30
trace.h
vcpu.c RISC-V: KVM: Fix check for local interrupts on riscv32 2025-10-16 17:17:29 +05:30
vcpu_exit.c RISC-V: KVM: Factor-out g-stage page table management 2025-07-28 22:27:30 +05:30
vcpu_fp.c
vcpu_insn.c riscv: Move all duplicate insn parsing macros into asm/insn.h 2025-09-16 16:29:07 -06:00
vcpu_onereg.c RISC-V: KVM: Move copy_sbi_ext_reg_indices() to SBI implementation 2025-09-16 10:54:18 +05:30
vcpu_pmu.c RISC-V: KVM: Implement get event info function 2025-09-16 11:49:31 +05:30
vcpu_sbi.c RISC-V: KVM: Move copy_sbi_ext_reg_indices() to SBI implementation 2025-09-16 10:54:18 +05:30
vcpu_sbi_base.c
vcpu_sbi_fwft.c RISC-V: KVM: Implement ONE_REG interface for SBI FWFT state 2025-09-16 10:54:21 +05:30
vcpu_sbi_hsm.c KVM: RISC-V: refactor sbi reset request 2025-05-21 09:34:49 +05:30
vcpu_sbi_pmu.c RISC-V: KVM: Implement get event info function 2025-09-16 11:49:31 +05:30
vcpu_sbi_replace.c RISC-V: KVM: Pass VMID as parameter to kvm_riscv_hfence_xyz() APIs 2025-07-28 22:27:32 +05:30
vcpu_sbi_sta.c RISC-V: KVM: No need of explicit writable slot check 2025-09-16 11:49:31 +05:30
vcpu_sbi_system.c KVM: RISC-V: refactor sbi reset request 2025-05-21 09:34:49 +05:30
vcpu_sbi_v01.c RISC-V: KVM: Pass VMID as parameter to kvm_riscv_hfence_xyz() APIs 2025-07-28 22:27:32 +05:30
vcpu_switch.S
vcpu_timer.c RISC-V: KVM: Disable vstimecmp before exiting to user-space 2025-07-11 18:30:17 +05:30
vcpu_vector.c RISC-V: KVM: fix stack overrun when loading vlenb 2025-08-25 10:26:20 +05:30
vm.c RISC-V: KVM: Factor-out g-stage page table management 2025-07-28 22:27:30 +05:30
vmid.c RISC-V: KVM: Remove unnecessary HGATP csr_read 2025-09-16 10:54:03 +05:30