RISC-V: KVM: Allow Zaamo/Zalrsc extensions for Guest/VM
authorClément Léger <cleger@rivosinc.com>
Wed, 19 Jun 2024 15:39:11 +0000 (17:39 +0200)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 19 Mar 2025 12:03:46 +0000 (12:03 +0000)
commit2d79608cf6112e787e6f90cf909bdadceed30dfe
treed08dc03c82dbcb1f299fa9dae9fee462945e17e2
parent9d45d1ff90a6888f6138eb7e1f2619ef427831d3
RISC-V: KVM: Allow Zaamo/Zalrsc extensions for Guest/VM

Extend the KVM ISA extension ONE_REG interface to allow KVM user space
to detect and enable Zaamo/Zalrsc extensions for Guest/VM.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240619153913.867263-5-cleger@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu_onereg.c