RISC-V: KVM: Fix riscv_vcpu_get_isa_ext_single() for missing extensions
authorAnup Patel <apatel@ventanamicro.com>
Mon, 18 Sep 2023 06:28:29 +0000 (11:58 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Sep 2023 09:34:01 +0000 (15:04 +0530)
commit17f71a2a340f1dcd397a66110005722177d5927c
tree3ad81bb41e6ba2356ec0ec6e4e8f3100af165b26
parentef4d48368587f27cb1f690691518889d8fb3510b
RISC-V: KVM: Fix riscv_vcpu_get_isa_ext_single() for missing extensions

The riscv_vcpu_get_isa_ext_single() should fail with -ENOENT error
when corresponding ISA extension is not available on the host.

Fixes: e98b1085be79 ("RISC-V: KVM: Factor-out ONE_REG related code to its own source file")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_onereg.c