]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Introduce range based local HFENCE functions
authorAnup Patel <apatel@ventanamicro.com>
Mon, 9 May 2022 05:13:52 +0000 (10:43 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 20 May 2022 03:39:09 +0000 (09:09 +0530)
commitb678acd14ed44e1a612bbbbf6820ba0c6d4fcbbf
tree7a23d030a7a214c983efac02485b5bd39461655f
parent10c291726ceba8a2244d6d22e9d6d5b2a8371c3c
RISC-V: KVM: Introduce range based local HFENCE functions

Various  __kvm_riscv_hfence_xyz() functions implemented in the
kvm/tlb.S are equivalent to corresponding HFENCE.GVMA instructions
and we don't have range based local HFENCE functions.

This patch provides complete set of local HFENCE functions which
supports range based TLB invalidation and supports HFENCE.VVMA
based functions. This is also a preparatory patch for upcoming
Svinval support in KVM RISC-V.

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/include/asm/kvm_host.h
arch/riscv/kvm/mmu.c
arch/riscv/kvm/tlb.S [deleted file]
arch/riscv/kvm/tlb.c [new file with mode: 0644]
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vmid.c