]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Use PAGE_KERNEL_IO in kvm_riscv_gstage_ioremap()
authorAnup Patel <apatel@ventanamicro.com>
Fri, 29 Jul 2022 11:45:12 +0000 (17:15 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 29 Jul 2022 11:45:12 +0000 (17:15 +0530)
commitaca27af12bc5e2c3c245a654b5890be34294e095
tree7496f658bf6ac2b9e30dda2b8e510f0d23109637
parent41f4c75f8d54ee73f076cce507060bb867df7450
RISC-V: KVM: Use PAGE_KERNEL_IO in kvm_riscv_gstage_ioremap()

When the host has Svpbmt extension, we should use page based memory
type 2 (i.e. IO) for IO mappings in the G-stage page table.

To achieve this, we replace use of PAGE_KERNEL with PAGE_KERNEL_IO
in the kvm_riscv_gstage_ioremap().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/mmu.c