RISC-V: KVM: Use Svinval for local TLB maintenance when available
authorAnup Patel <apatel@ventanamicro.com>
Sun, 2 Oct 2022 04:48:37 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:48:37 +0000 (10:18 +0530)
commit5ff112484f2e63c5cac9f865181ca7ce467d0f89
tree894c4781a93fc6f3cd82037f324d894bed5b4a34
parent122979aa26cd4a314aae889a0496eb829d50bc9e
RISC-V: KVM: Use Svinval for local TLB maintenance when available

We should prefer HINVAL.GVMA and HINVAL.VVMA instruction for local TLB
maintenance when underlying host supports Svinval extension.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/insn-def.h
arch/riscv/kvm/tlb.c