Home
last modified time | relevance | path

Searched refs:ARM64_FEATURE_MASK (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dfixed_config.h39 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_FP) | \
40 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_AdvSIMD) | \
41 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_DIT) | \
42 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV2) | \
43 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV3) \
55 FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), ID_AA64PFR0_EL1_ELx_64BIT_ONLY) | \
56 FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL1), ID_AA64PFR0_EL1_ELx_64BIT_ONLY) | \
57 FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL2), ID_AA64PFR0_EL1_ELx_64BIT_ONLY) | \
58 FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL3), ID_AA64PFR0_EL1_ELx_64BIT_ONLY) | \
59 FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_RAS), ID_AA64PFR0_EL1_RAS_IMP) \
[all …]
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c33 BUILD_BUG_ON(FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL0), in pvm_init_traps_aa64pfr0()
35 BUILD_BUG_ON(FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL1), in pvm_init_traps_aa64pfr0()
42 BUILD_BUG_ON(!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_FP), in pvm_init_traps_aa64pfr0()
44 BUILD_BUG_ON(!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_AdvSIMD), in pvm_init_traps_aa64pfr0()
51 if (FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_RAS), feature_ids) < in pvm_init_traps_aa64pfr0()
58 if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_AMU), feature_ids)) { in pvm_init_traps_aa64pfr0()
64 if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_SVE), feature_ids)) { in pvm_init_traps_aa64pfr0()
87 if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR1_EL1_MTE), feature_ids)) { in pvm_init_traps_aa64pfr1()
107 if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_EL1_PMUVer), feature_ids)) { in pvm_init_traps_aa64dfr0()
114 if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_EL1_DebugVer), feature_ids)) in pvm_init_traps_aa64dfr0()
[all …]
H A Dsys_regs.c103 allow_mask &= ~ARM64_FEATURE_MASK(ID_AA64PFR1_EL1_MTE); in get_pvm_id_aa64pfr1()
168 allow_mask &= ~(ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_APA) | in get_pvm_id_aa64isar1()
169 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_API) | in get_pvm_id_aa64isar1()
170 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_GPA) | in get_pvm_id_aa64isar1()
171 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_GPI)); in get_pvm_id_aa64isar1()
181 allow_mask &= ~(ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_APA3) | in get_pvm_id_aa64isar2()
182 ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_GPA3)); in get_pvm_id_aa64isar2()
278 BUILD_BUG_ON(FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_EL1), in pvm_access_id_aarch32()
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Ddebug-exceptions.c119 brps = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_BRPS), dfr0); in GEN_DEBUG_WRITE_REG()
124 wrps = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_WRPS), dfr0); in GEN_DEBUG_WRITE_REG()
421 return FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_DEBUGVER), id_aa64dfr0); in debug_version()
542 brp_num = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_BRPS), aa64dfr0) + 1; in test_guest_debug_exceptions_all()
546 wrp_num = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_WRPS), aa64dfr0) + 1; in test_guest_debug_exceptions_all()
549 ctx_brp_num = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_CTX_CMPS), aa64dfr0) + 1; in test_guest_debug_exceptions_all()
H A Daarch32_id_regs.c149 el0 = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL0), val); in vcpu_aarch64_only()
H A Dpage_fault_test.c99 atomic = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64ISAR0_ATOMICS), isar0); in guest_check_lse()
106 uint64_t dzp = FIELD_GET(ARM64_FEATURE_MASK(DCZID_DZP), dczid); in guest_check_dc_zva()
199 hadbs = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64MMFR1_HADBS), mmfr1); in guest_set_ha()
/openbmc/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c521 *ps4k = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64MMFR0_TGRAN4), val) != 0xf; in aarch64_get_supported_page_sizes()
522 *ps64k = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64MMFR0_TGRAN64), val) == 0; in aarch64_get_supported_page_sizes()
523 *ps16k = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64MMFR0_TGRAN16), val) != 0; in aarch64_get_supported_page_sizes()
/openbmc/linux/arch/arm64/kvm/
H A Dsys_regs.c1330 val &= ~ARM64_FEATURE_MASK(ID_AA64PFR1_EL1_MTE); in __kvm_read_sanitised_id_reg()
1332 val &= ~ARM64_FEATURE_MASK(ID_AA64PFR1_EL1_SME); in __kvm_read_sanitised_id_reg()
1333 val &= ~ARM64_FEATURE_MASK(ID_AA64PFR1_EL1_MPAM_frac); in __kvm_read_sanitised_id_reg()
1337 val &= ~(ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_APA) | in __kvm_read_sanitised_id_reg()
1338 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_API) | in __kvm_read_sanitised_id_reg()
1339 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_GPA) | in __kvm_read_sanitised_id_reg()
1340 ARM64_FEATURE_MASK(ID_AA64ISAR1_EL1_GPI)); in __kvm_read_sanitised_id_reg()
1344 val &= ~(ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_APA3) | in __kvm_read_sanitised_id_reg()
1345 ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_GPA3)); in __kvm_read_sanitised_id_reg()
1347 val &= ~ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_WFxT); in __kvm_read_sanitised_id_reg()
[all …]
H A Darm.c2102 val &= ~(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV2) | in get_hyp_id_aa64pfr0_el1()
2103 ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV3)); in get_hyp_id_aa64pfr0_el1()
2105 val |= FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV2), in get_hyp_id_aa64pfr0_el1()
2107 val |= FIELD_PREP(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_CSV3), in get_hyp_id_aa64pfr0_el1()
H A Dpmu-emul.c1072 return FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_EL1_PMUVer), tmp); in kvm_arm_pmu_get_pmuver_limit()
/openbmc/linux/tools/arch/arm64/include/asm/
H A Dsysreg.h1176 #define ARM64_FEATURE_MASK(x) (GENMASK_ULL(x##_SHIFT + ARM64_FEATURE_FIELD_BITS - 1, x##_SHIFT)) macro
/openbmc/linux/arch/arm64/include/asm/
H A Dsysreg.h1000 #define ARM64_FEATURE_MASK(x) (x##_MASK) macro