RISC-V: KVM: Improve vector save/restore errors
authorAndrew Jones <ajones@ventanamicro.com>
Thu, 3 Aug 2023 16:33:01 +0000 (13:33 -0300)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 11:56:00 +0000 (17:26 +0530)
commit1deaf754f5310e348e6386e75b7f16a0089fa3b7
tree666f2644031661926708c1365bb663f302c621b6
parent1099c80906d358db542c64aba370291ae4b932b7
RISC-V: KVM: Improve vector save/restore errors

kvm_riscv_vcpu_(get/set)_reg_vector() now returns ENOENT if V is not
available, EINVAL if reg type is not of VECTOR type, and any error that
might be thrown by kvm_riscv_vcpu_vreg_addr().

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_vector.c