]> git.itanic.dy.fi Git - linux-stable/commit
KVM: riscv: selftests: Fix ISA_EXT register handling in get-reg-list
authorAnup Patel <apatel@ventanamicro.com>
Mon, 18 Sep 2023 08:59:19 +0000 (14:29 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Sep 2023 09:34:03 +0000 (15:04 +0530)
commitba1af6e2e0f0e814c0f6be6ef64917c212f9fa96
tree1ed84b4ce04bd042f867edacf2968693b8eaa9b5
parent17f71a2a340f1dcd397a66110005722177d5927c
KVM: riscv: selftests: Fix ISA_EXT register handling in get-reg-list

Same set of ISA_EXT registers are not present on all host because
ISA_EXT registers are visible to the KVM user space based on the
ISA extensions available on the host. Also, disabling an ISA
extension using corresponding ISA_EXT register does not affect
the visibility of the ISA_EXT register itself.

Based on the above, we should filter-out all ISA_EXT registers.

Fixes: 477069398ed6 ("KVM: riscv: selftests: Add get-reg-list test")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/get-reg-list.c