Lines Matching +full:ext +full:- +full:26 +full:m
1 // SPDX-License-Identifier: GPL-2.0
32 * Based on above, we should filter-out all ISA_EXT registers. in filter_reg()
148 * if they were available in the risc-v host. in finalize_vcpu()
158 TEST_ASSERT(!rc || (rc == -1 && errno == ENOENT), "Unexpected error"); in finalize_vcpu()
162 if (!s->feature) in finalize_vcpu()
165 switch (s->feature_type) { in finalize_vcpu()
167 feature = RISCV_ISA_EXT_REG(s->feature); in finalize_vcpu()
170 feature = RISCV_SBI_EXT_REG(s->feature); in finalize_vcpu()
181 "%s not available, skipping tests", s->name); in finalize_vcpu()
232 reg_off - KVM_REG_RISCV_CORE_REG(regs.t0)); in core_id_to_str()
235 reg_off - KVM_REG_RISCV_CORE_REG(regs.s0)); in core_id_to_str()
238 reg_off - KVM_REG_RISCV_CORE_REG(regs.a0)); in core_id_to_str()
241 reg_off - KVM_REG_RISCV_CORE_REG(regs.s2) + 2); in core_id_to_str()
244 reg_off - KVM_REG_RISCV_CORE_REG(regs.t3) + 3); in core_id_to_str()
403 #define KVM_ISA_EXT_ARR(ext) \ argument
404 [KVM_RISCV_ISA_EXT_##ext] = "KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_" #ext
415 KVM_ISA_EXT_ARR(M), in isa_ext_single_id_to_str()
516 #define KVM_SBI_EXT_ARR(ext) \ argument
517 [ext] = "KVM_REG_RISCV_SBI_SINGLE | " #ext
674 * v6.5-rc3 and then later updated with new registers.
734 * - KVM_REG_RISCV_TIMER_REG(state): set would fail if it was not initialized properly.
810 KVM_REG_RISCV | KVM_REG_SIZE_U32 | KVM_REG_RISCV_FP_F | KVM_REG_RISCV_FP_F_REG(f[26]),
847 KVM_REG_RISCV | KVM_REG_SIZE_U64 | KVM_REG_RISCV_FP_D | KVM_REG_RISCV_FP_D_REG(f[26]),
861 {"sbi-base", .feature_type = VCPU_FEATURE_SBI_EXT, .feature = KVM_RISCV_SBI_EXT_V01, \
864 {"sbi-sta", .feature_type = VCPU_FEATURE_SBI_EXT, .feature = KVM_RISCV_SBI_EXT_STA, \
881 #define KVM_ISA_EXT_SIMPLE_CONFIG(ext, extu) \ argument
882 static __u64 regs_##ext[] = { \
887 static struct vcpu_reg_list config_##ext = { \
891 .name = #ext, \
893 .regs = regs_##ext, \
894 .regs_n = ARRAY_SIZE(regs_##ext), \
900 #define KVM_SBI_EXT_SIMPLE_CONFIG(ext, extu) \ argument
901 static __u64 regs_sbi_##ext[] = { \
906 static struct vcpu_reg_list config_sbi_##ext = { \
910 .name = "sbi-"#ext, \
913 .regs = regs_sbi_##ext, \
914 .regs_n = ARRAY_SIZE(regs_sbi_##ext), \
920 #define KVM_ISA_EXT_SUBLIST_CONFIG(ext, extu) \ argument
921 static struct vcpu_reg_list config_##ext = { \
929 #define KVM_SBI_EXT_SUBLIST_CONFIG(ext, extu) \ argument
930 static struct vcpu_reg_list config_sbi_##ext = { \