RISC-V: KVM: Allow Svnapot extension for Guest/VM
authorAnup Patel <apatel@ventanamicro.com>
Mon, 12 Jun 2023 11:10:44 +0000 (16:40 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 20 Jun 2023 05:18:36 +0000 (10:48 +0530)
commitd75b336225789fb967442feb6cdf9cfc0357b252
tree5acff1145bcbe05330474bbd090d554634b29667
parent377f71f6d68d13cf2f5c6c9011ce762224a57b82
RISC-V: KVM: Allow Svnapot extension for Guest/VM

We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable Svnapot extension for Guest/VM.

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