Skip to content

Commit 4d0e8f9

Browse files
committed
KVM: riscv: selftests: Add Zfa extension to get-reg-list test
The KVM RISC-V allows Zfa extension for Guest/VM so let us add this extension to get-reg-list test. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Signed-off-by: Anup Patel <[email protected]>
1 parent 41182cc commit 4d0e8f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/kvm/riscv/get-reg-list.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ bool filter_reg(__u64 reg)
5454
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBKC:
5555
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBKX:
5656
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBS:
57+
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFA:
5758
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFH:
5859
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFHMIN:
5960
case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZICBOM:
@@ -425,6 +426,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg_off)
425426
KVM_ISA_EXT_ARR(ZBKC),
426427
KVM_ISA_EXT_ARR(ZBKX),
427428
KVM_ISA_EXT_ARR(ZBS),
429+
KVM_ISA_EXT_ARR(ZFA),
428430
KVM_ISA_EXT_ARR(ZFH),
429431
KVM_ISA_EXT_ARR(ZFHMIN),
430432
KVM_ISA_EXT_ARR(ZICBOM),
@@ -945,6 +947,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zbkb, ZBKB);
945947
KVM_ISA_EXT_SIMPLE_CONFIG(zbkc, ZBKC);
946948
KVM_ISA_EXT_SIMPLE_CONFIG(zbkx, ZBKX);
947949
KVM_ISA_EXT_SIMPLE_CONFIG(zbs, ZBS);
950+
KVM_ISA_EXT_SIMPLE_CONFIG(zfa, ZFA);
948951
KVM_ISA_EXT_SIMPLE_CONFIG(zfh, ZFH);
949952
KVM_ISA_EXT_SIMPLE_CONFIG(zfhmin, ZFHMIN);
950953
KVM_ISA_EXT_SUBLIST_CONFIG(zicbom, ZICBOM);
@@ -997,6 +1000,7 @@ struct vcpu_reg_list *vcpu_configs[] = {
9971000
&config_zbkc,
9981001
&config_zbkx,
9991002
&config_zbs,
1003+
&config_zfa,
10001004
&config_zfh,
10011005
&config_zfhmin,
10021006
&config_zicbom,

0 commit comments

Comments
 (0)