RISC-V: KVM: Use NACL HFENCEs for KVM request based HFENCEs
authorAnup Patel <apatel@ventanamicro.com>
Sun, 20 Oct 2024 19:47:34 +0000 (01:17 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:14:08 +0000 (16:44 +0530)
commit5bdecd891e505a9f98a50998aa60a60568f58c3c
tree2dcbc9c64d5509c064d25f3c9c9efca899282b45
parent3e7d154ad89be46b41bb47a0a8a19ecf8e0ca3f3
RISC-V: KVM: Use NACL HFENCEs for KVM request based HFENCEs

When running under some other hypervisor, use SBI NACL based HFENCEs
for TLB shoot-down via KVM requests. This makes HFENCEs faster whenever
SBI nested acceleration is available.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241020194734.58686-14-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/tlb.c