]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: KVM: Apply insn-def to hfence encodings
authorAndrew Jones <ajones@ventanamicro.com>
Sun, 2 Oct 2022 04:48:14 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:48:14 +0000 (10:18 +0530)
commit6a97c906fc47d2448a4620ffdb9db8e3fe8b6f65
tree3546f16c889713961621f4285b242f19a782f2ac
parent7f0f6dc9cfa1461903e5ce9fd336388c520667a8
riscv: KVM: Apply insn-def to hfence encodings

Introduce hfence instruction encodings and apply them to KVM's use.
With the self-documenting nature of the instruction encoding macros,
and a spec always within arm's reach, it's safe to remove the
comments, so we do that too.

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