]> git.ipfire.org Git - thirdparty/linux.git/commit
RISC-V: KVM: Convert kvm_riscv_vcpu_sbi_forward() into extension handler
authorAnup Patel <apatel@ventanamicro.com>
Fri, 17 Oct 2025 15:59:22 +0000 (21:29 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 24 Nov 2025 04:25:36 +0000 (09:55 +0530)
commite2f3e2d37b065ada3bfdb3b22b1a960eb295c686
tree06342916286c77e8cdf2f5e716e652eab430ddc4
parentac3fd01e4c1efce8f2c054cdeb2ddd2fc0fb150d
RISC-V: KVM: Convert kvm_riscv_vcpu_sbi_forward() into extension handler

All uses of kvm_riscv_vcpu_sbi_forward() also updates retdata->uexit so
to further reduce code duplication move retdata->uexit assignment to
kvm_riscv_vcpu_sbi_forward() and convert it into SBI extension handler.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20251017155925.361560-2-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_vcpu_sbi.h
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_base.c
arch/riscv/kvm/vcpu_sbi_replace.c
arch/riscv/kvm/vcpu_sbi_system.c
arch/riscv/kvm/vcpu_sbi_v01.c