RISC-V: KVM: Fix KVM_GET_REG_LIST API for ISA_EXT registers
authorAnup Patel <apatel@ventanamicro.com>
Mon, 18 Sep 2023 06:18:29 +0000 (11:48 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Sep 2023 09:33:59 +0000 (15:03 +0530)
commitef4d48368587f27cb1f690691518889d8fb3510b
tree6feadc6954c46c3f1f7fe4c55b8a3e5c896cba1b
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
RISC-V: KVM: Fix KVM_GET_REG_LIST API for ISA_EXT registers

The ISA_EXT registers to enabled/disable ISA extensions for VCPU
are always available when underlying host has the corresponding
ISA extension. The copy_isa_ext_reg_indices() called by the
KVM_GET_REG_LIST API does not align with this expectation so
let's fix it.

Fixes: 031f9efafc08 ("KVM: riscv: Add KVM_GET_REG_LIST API support")
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