acrn-kernel/arch/riscv/kvm
Andrew Jones ccfe866220 RISC-V: Align SBI probe implementation with spec
commit 41cad8284d upstream.

sbi_probe_extension() is specified with "Returns 0 if the given SBI
extension ID (EID) is not available, or 1 if it is available unless
defined as any other non-zero value by the implementation."
Additionally, sbiret.value is a long. Fix the implementation to
ensure any nonzero long value is considered a success, rather
than only positive int values.

Fixes: b9dcd9e415 ("RISC-V: Add basic support for SBI v0.2")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230427163626.101042-1-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:04 +09:00
..
Kconfig
Makefile
main.c
mmu.c
tlb.c
vcpu.c
vcpu_exit.c
vcpu_fp.c
vcpu_insn.c
vcpu_sbi.c
vcpu_sbi_base.c
vcpu_sbi_hsm.c
vcpu_sbi_replace.c
vcpu_sbi_v01.c
vcpu_switch.S
vcpu_timer.c
vm.c
vmid.c