Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/tools/testing/selftests/kvm/include/
H A Dkvm_util_types.h15 #define kvm_static_assert(expr, ...) __kvm_static_assert(expr, ##__VA_ARGS__, #expr) macro
H A Dkvm_util.h191 kvm_static_assert(sizeof(struct vm_shape) == sizeof(uint64_t));
283 kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \
/linux-6.15/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-6.15/tools/testing/selftests/kvm/include/x86/
H A Dsev.h38 kvm_static_assert(SEV_RET_SUCCESS == 0);
H A Dprocessor.h123 kvm_static_assert((fn & 0xc0000000) == 0 || \
127 kvm_static_assert(idx < BIT(sizeof(feature.index) * BITS_PER_BYTE)); \
253 kvm_static_assert(low_bit < high_bit); \
254 kvm_static_assert((fn & 0xc0000000) == 0 || \
258 kvm_static_assert(idx < BIT(sizeof(property.index) * BITS_PER_BYTE)); \
321 kvm_static_assert(KVM_CPUID_##__reg == KVM_CPUID_EBX || \