RISC-V: KVM: Allow Zbb extension for Guest/VM
authorAnup Patel <apatel@ventanamicro.com>
Sat, 1 Apr 2023 09:51:34 +0000 (15:21 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 21 Apr 2023 12:08:46 +0000 (17:38 +0530)
commit90deec51d726b4d829ca7a684595154bebdf8353
tree4e233416d36f6c5aca68bfc1886b158b8c839b21
parent96b3d4bd93f913440b4cb06233a1ecbc4dd41dad
RISC-V: KVM: Allow Zbb extension for Guest/VM

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

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.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