RISC-V: KVM: Allow Guest use Svinval extension
authorAnup Patel <apatel@ventanamicro.com>
Sun, 2 Oct 2022 04:48:42 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:48:42 +0000 (10:18 +0530)
commitbad6ea07c876a67c4d8f46b0c565ab500150720f
treeaac7956d7c598c90f86f07a9ca826ddbcc7a51ab
parent5ff112484f2e63c5cac9f865181ca7ce467d0f89
RISC-V: KVM: Allow Guest use Svinval extension

We should advertise Svinval ISA extension to KVM user-space whenever
host supports it. This will allow KVM user-space (i.e. QEMU or KVMTOOL)
to pass on this information to Guest via ISA string.

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/uapi/asm/kvm.h
arch/riscv/kvm/vcpu.c