]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: KVM: Fix SBI TIME error generation
authorAndrew Jones <ajones@ventanamicro.com>
Mon, 17 Feb 2025 08:45:11 +0000 (09:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:44 +0000 (16:45 +0100)
commit2e06f42e88fc84f357bb14d58b93ffb93e992fcb
treecb7ec5638e56841570dee09d7a1d24d56ca9a7e6
parentf9dd51830d3076948540fb3f953f350927a7705b
riscv: KVM: Fix SBI TIME error generation

[ Upstream commit b901484852992cf3d162a5eab72251cc813ca624 ]

When an invalid function ID of an SBI extension is used we should
return not-supported, not invalid-param.

Fixes: 5f862df5585c ("RISC-V: KVM: Add v0.1 replacement SBI extensions defined in v0.2")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250217084506.18763-11-ajones@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/kvm/vcpu_sbi_replace.c