projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0611f78
)
riscv: KVM: Fix SBI TIME error generation
author
Andrew Jones
<ajones@ventanamicro.com>
Mon, 17 Feb 2025 08:45:11 +0000
(09:45 +0100)
committer
Anup Patel
<anup@brainfault.org>
Mon, 17 Feb 2025 10:58:28 +0000
(16:28 +0530)
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>
arch/riscv/kvm/vcpu_sbi_replace.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/riscv/kvm/vcpu_sbi_replace.c
b/arch/riscv/kvm/vcpu_sbi_replace.c
index 74e3a38c6a29ee2ae57b32ebb153d814813f9279..5fbf3f94f1e85565de85dd04c3643f583c848126 100644
(file)
--- a/
arch/riscv/kvm/vcpu_sbi_replace.c
+++ b/
arch/riscv/kvm/vcpu_sbi_replace.c
@@
-21,7
+21,7
@@
static int kvm_sbi_ext_time_handler(struct kvm_vcpu *vcpu, struct kvm_run *run,
u64 next_cycle;
if (cp->a6 != SBI_EXT_TIME_SET_TIMER) {
- retdata->err_val = SBI_ERR_
INVALID_PARAM
;
+ retdata->err_val = SBI_ERR_
NOT_SUPPORTED
;
return 0;
}