RISC-V: KVM: Allow Zba and Zbs extensions for Guest/VM
authorAnup Patel <apatel@ventanamicro.com>
Wed, 12 Jul 2023 07:08:11 +0000 (12:38 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 11:55:33 +0000 (17:25 +0530)
commit41716861e4251b202809fc57deaed3881934e062
tree3e24cccff68a61ca3a2fd5c864f5f3b17c6843e9
parent613029442a4b837d3f8ce8ab08064f095ecdbdb6
RISC-V: KVM: Allow Zba and Zbs extensions for Guest/VM

We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable Zba and Zbs extensions 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_onereg.c