RISC-V: KVM: Fix reg_val check in kvm_riscv_vcpu_set_reg_config()
authorAnup Patel <apatel@ventanamicro.com>
Wed, 7 Dec 2022 03:46:51 +0000 (09:16 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:46:51 +0000 (09:16 +0530)
commite482d9e33d5b0f222cbef7341dcd52cead6b9edc
treea0f2dab1d2ce64f90ee6f3b456e55ac6bc8a60d5
parent3e2d4756e2e5dd854b36aa947d7b6168f21dc4a1
RISC-V: KVM: Fix reg_val check in kvm_riscv_vcpu_set_reg_config()

The reg_val check in kvm_riscv_vcpu_set_reg_config() should only
be done for isa config register.

Fixes: 9bfd900beeec ("RISC-V: KVM: Improve ISA extension by using a bitmap")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c