]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Allow Zca, Zcf, Zcd and Zcb extensions for Guest/VM
authorClément Léger <cleger@rivosinc.com>
Wed, 19 Jun 2024 11:35:20 +0000 (13:35 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 14:54:54 +0000 (07:54 -0700)
commitd964e8f2ae65dcc088345332d479d4fcc5a1d757
tree450cd81eb4af4c5bfe46257a921fd780ee9e38af
parent0ad70db5eb21e50ed693fa274bea0346de453e29
RISC-V: KVM: Allow Zca, Zcf, Zcd and Zcb extensions for Guest/VM

Extend the KVM ISA extension ONE_REG interface to allow KVM user space
to detect and enable Zca, Zcf, Zcd and Zcb extensions for Guest/VM.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Acked-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240619113529.676940-11-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu_onereg.c