aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorFangyu Yu <[email protected]>2025-08-07 07:07:29 +0000
committerAnup Patel <[email protected]>2025-08-25 04:56:16 +0000
commit9bca8be646e043d1fc6cd426fef05558c02de3df (patch)
treeb93f20136878834864d6c3aca7ca11c66b9e63fe /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLinux 6.17-rc3 (diff)
downloadkernel-9bca8be646e043d1fc6cd426fef05558c02de3df.tar.gz
kernel-9bca8be646e043d1fc6cd426fef05558c02de3df.zip
RISC-V: KVM: Fix pte settings within kvm_riscv_gstage_ioremap()
Currently, kvm_riscv_gstage_ioremap() is used to map IMSIC gpa to the spa of IMSIC guest interrupt file. The PAGE_KERNEL_IO property includes global setting whereas it does not include user mode settings, so when accessing the IMSIC address in the virtual machine, a guest page fault will occur, this is not expected. According to the RISC-V Privileged Architecture Spec, for G-stage address translation, all memory accesses are considered to be user-level accesses as though executed in U-mode. Fixes: 659ad6d82c31 ("RISC-V: KVM: Use PAGE_KERNEL_IO in kvm_riscv_gstage_ioremap()") Signed-off-by: Fangyu Yu <[email protected]> Reviewed-by: Radim Krčmář <[email protected]> Reviewed-by: Nutty Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions