RISC-V: KVM: Allow scalar crypto extensions for Guest/VM
authorAnup Patel <apatel@ventanamicro.com>
Mon, 27 Nov 2023 15:06:36 +0000 (20:36 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 19 Jan 2024 03:49:54 +0000 (09:19 +0530)
commitf370b4e668f017f523968f7490163fa922dcd92e
tree45c99bf5d12b335782c5fefa59e97dac80a6c2b8
parentac396141308d07a9534c5a7f1f7c80cb95e35b20
RISC-V: KVM: Allow scalar crypto extensions for Guest/VM

We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable scalar crypto extensions for
Guest/VM. This includes extensions Zbkb, Zbkc, Zbkx, Zknd, Zkne,
Zknh, Zkr, Zksed, Zksh, and Zkt.

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