aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kvm/vcpu_timer.c
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <[email protected]>2023-08-03 13:32:54 -0300
committerAnup Patel <[email protected]>2023-08-08 17:25:44 +0530
commita044ef71043ebc23903f657fd51b10783d34918b (patch)
tree912a19b75581992c7f9f2206a860f3eee954612d /arch/riscv/kvm/vcpu_timer.c
parent2a88f38cd58d026c0e13f4aaa495965d4e9626b9 (diff)
RISC-V: KVM: use ENOENT in *_one_reg() when extension is unavailable
Following a similar logic as the previous patch let's minimize the EINVAL usage in *_one_reg() APIs by using ENOENT when an extension that implements the reg is not available. For consistency we're also replacing an EOPNOTSUPP instance that should be an ENOENT since it's an "extension is not available" error. Signed-off-by: Daniel Henrique Barboza <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'arch/riscv/kvm/vcpu_timer.c')
0 files changed, 0 insertions, 0 deletions