Home
last modified time | relevance | path

Searched refs:kvm_static_assert (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/kvm/lib/x86/
H A Dpmu.c23 kvm_static_assert(ARRAY_SIZE(intel_pmu_arch_events) == NR_INTEL_ARCH_EVENTS);
31 kvm_static_assert(ARRAY_SIZE(amd_pmu_zen_events) == NR_AMD_ZEN_EVENTS);
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_types.h15 #define kvm_static_assert(expr, ...) __kvm_static_assert(expr, ##__VA_ARGS__, #expr) macro
/linux/tools/testing/selftests/kvm/x86/
H A Drecalc_apic_map_test.c44 kvm_static_assert(KVM_MAX_VCPUS > MAX_XAPIC_ID); in main()
H A Dpmu_counters_test.c80 kvm_static_assert(ARRAY_SIZE(__intel_event_to_feature) == NR_INTEL_ARCH_EVENTS); in intel_event_to_feature()
H A Dpmu_event_filter_test.c38 kvm_static_assert(INTEL_ARCH_INSTRUCTIONS_RETIRED == AMD_ZEN_INSTRUCTIONS_RETIRED);
/linux/tools/testing/selftests/kvm/include/x86/
H A Dprocessor.h123 kvm_static_assert((fn & 0xc0000000) == 0 || \
127 kvm_static_assert(idx < BIT(sizeof(feature.index) * BITS_PER_BYTE)); \
254 kvm_static_assert(low_bit < high_bit); \
255 kvm_static_assert((fn & 0xc0000000) == 0 || \
259 kvm_static_assert(idx < BIT(sizeof(property.index) * BITS_PER_BYTE)); \
322 kvm_static_assert(KVM_CPUID_##__reg == KVM_CPUID_EBX || \
H A Dsev.h60 kvm_static_assert(SEV_RET_SUCCESS == 0);