RISC-V: KVM: Extend ONE_REG to enable/disable multiple ISA extensions
authorAnup Patel <apatel@ventanamicro.com>
Tue, 11 Jul 2023 16:41:16 +0000 (22:11 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 11:55:31 +0000 (17:25 +0530)
commit613029442a4b837d3f8ce8ab08064f095ecdbdb6
tree43b441ef0dbed55952fe2ce74a76158ac0669450
parente98b1085be795354073debd371e2889bea4902b9
RISC-V: KVM: Extend ONE_REG to enable/disable multiple ISA extensions

Currently, the ISA extension ONE_REG interface only allows enabling or
disabling one extension at a time. To improve this, we extend the ISA
extension ONE_REG interface (similar to SBI extension ONE_REG interface)
so that KVM user space can enable/disable multiple extensions in one
ioctl.

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_onereg.c