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)
commitbb233a11dc6b3774fd46087242d7627ecf5293ed
tree3546f16c889713961621f4285b242f19a782f2ac
parent5ac43ab2e3fe4e5d48ef313a99d0591021c3bbdd
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