]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: add SBI extension reset callback
authorClément Léger <cleger@rivosinc.com>
Fri, 23 May 2025 10:19:29 +0000 (12:19 +0200)
committerAnup Patel <anup@brainfault.org>
Wed, 23 Jul 2025 11:49:44 +0000 (17:19 +0530)
commitc046de827c85a70548df8b86ce5f18820ebaaca7
tree82c192b9999c5dd7742bc01c23937f77eeb0feae
parentcf648c400fd22c022da0b544ca5fb189c3596641
RISC-V: KVM: add SBI extension reset callback

Currently, only the STA extension needed a reset function but that's
going to be the case for FWFT as well. Add a reset callback that can
be implemented by SBI extensions.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250523101932.1594077-13-cleger@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_host.h
arch/riscv/include/asm/kvm_vcpu_sbi.h
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_sta.c