/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_sr_common.c | 145 BUILD_BUG_ON(sizeof(struct xc_sr_ihdr) != 24); in build_assertions() 146 BUILD_BUG_ON(sizeof(struct xc_sr_dhdr) != 16); in build_assertions() 147 BUILD_BUG_ON(sizeof(struct xc_sr_rhdr) != 8); in build_assertions() 149 BUILD_BUG_ON(sizeof(struct xc_sr_rec_page_data_header) != 8); in build_assertions() 150 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_info) != 8); in build_assertions() 151 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_p2m_frames) != 8); in build_assertions() 152 BUILD_BUG_ON(sizeof(struct xc_sr_rec_x86_pv_vcpu_hdr) != 8); in build_assertions() 153 BUILD_BUG_ON(sizeof(struct xc_sr_rec_tsc_info) != 24); in build_assertions() 154 BUILD_BUG_ON(sizeof(struct xc_sr_rec_hvm_params_entry) != 16); in build_assertions() 155 BUILD_BUG_ON(sizeof(struct xc_sr_rec_hvm_params) != 8); in build_assertions()
|
A D | xc_cpuid_x86.c | 101 BUILD_BUG_ON(ARRAY_SIZE(known) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 102 BUILD_BUG_ON(ARRAY_SIZE(special) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 103 BUILD_BUG_ON(ARRAY_SIZE(pv) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 104 BUILD_BUG_ON(ARRAY_SIZE(hvm_shadow) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 105 BUILD_BUG_ON(ARRAY_SIZE(hvm_hap) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 106 BUILD_BUG_ON(ARRAY_SIZE(deep_features) != FEATURESET_NR_ENTRIES); in xc_get_static_cpu_featuremask() 142 BUILD_BUG_ON(ARRAY_SIZE(deep_deps) != NR_DEEP_DEPS); in xc_get_feature_deep_deps()
|
/xen-4.10.0-shim-comet/tools/libs/gnttab/ |
A D | linux.c | 250 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 254 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 258 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 262 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 266 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 271 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 275 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 279 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 283 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() 287 BUILD_BUG_ON(offsetof(struct ioctl_gntdev_grant_copy_segment, in osdep_gnttab_grant_copy() [all …]
|
/xen-4.10.0-shim-comet/tools/include/xen-tools/ |
A D | libs.h | 4 #ifndef BUILD_BUG_ON 6 #define BUILD_BUG_ON(p) ({ _Static_assert(!(p), "!(" #p ")"); }) macro 8 #define BUILD_BUG_ON(p) ((void)sizeof(char[1 - 2 * !!(p)])) macro
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/svm/ |
A D | vmcb.c | 60 BUILD_BUG_ON(sizeof(*vmcb) != PAGE_SIZE); in construct_vmcb() 303 BUILD_BUG_ON(sizeof(sreg) != 16); in build_assertions() 304 BUILD_BUG_ON(sizeof(sreg.sel) != 2); in build_assertions() 305 BUILD_BUG_ON(sizeof(sreg.attr) != 2); in build_assertions() 306 BUILD_BUG_ON(sizeof(sreg.limit) != 4); in build_assertions() 307 BUILD_BUG_ON(sizeof(sreg.base) != 8); in build_assertions() 308 BUILD_BUG_ON(offsetof(struct segment_register, sel) != 0); in build_assertions() 309 BUILD_BUG_ON(offsetof(struct segment_register, attr) != 2); in build_assertions() 310 BUILD_BUG_ON(offsetof(struct segment_register, limit) != 4); in build_assertions() 311 BUILD_BUG_ON(offsetof(struct segment_register, base) != 8); in build_assertions()
|
/xen-4.10.0-shim-comet/tools/misc/ |
A D | xen-diag.c | 115 BUILD_BUG_ON(EXIT_SUCCESS != 0); in main() 116 BUILD_BUG_ON(EXIT_FAILURE != 1); in main() 117 BUILD_BUG_ON(EXIT_TIMEOUT != 2); in main()
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/arm64/ |
A D | system.h | 24 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \ 39 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/arm32/ |
A D | system.h | 12 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \ 23 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | cpuid.c | 429 BUILD_BUG_ON(ARRAY_SIZE(deep_deps) != NR_DEEP_DEPS); in lookup_deep_deps() 894 BUILD_BUG_ON(XSTATE_XSAVES_ONLY != 0); in guest_cpuid() 965 BUILD_BUG_ON(ARRAY_SIZE(known_features) != FSCAPINTS); in build_assertions() 966 BUILD_BUG_ON(ARRAY_SIZE(special_features) != FSCAPINTS); in build_assertions() 967 BUILD_BUG_ON(ARRAY_SIZE(pv_featuremask) != FSCAPINTS); in build_assertions() 970 BUILD_BUG_ON(ARRAY_SIZE(deep_features) != FSCAPINTS); in build_assertions() 973 BUILD_BUG_ON(sizeof(struct cpuid_policy) > PAGE_SIZE); in build_assertions() 975 BUILD_BUG_ON(sizeof(raw_cpuid_policy.basic) != in build_assertions() 977 BUILD_BUG_ON(sizeof(raw_cpuid_policy.feat) != in build_assertions() 979 BUILD_BUG_ON(sizeof(raw_cpuid_policy.xstate) != in build_assertions() [all …]
|
A D | monitor.c | 51 BUILD_BUG_ON(sizeof(d->arch.monitor.msr_bitmap->low) * 8 <= 0x1fff); in monitor_bitmap_for_msr() 55 BUILD_BUG_ON( in monitor_bitmap_for_msr() 61 BUILD_BUG_ON(sizeof(d->arch.monitor.msr_bitmap->high) * 8 <= 0x1fff); in monitor_bitmap_for_msr()
|
A D | setup.c | 1372 BUILD_BUG_ON(sizeof(((struct xen_platform_op *)0)->u) != in __start_xen() 1374 BUILD_BUG_ON(sizeof(((struct xen_domctl *)0)->u) != in __start_xen() 1376 BUILD_BUG_ON(sizeof(((struct xen_sysctl *)0)->u) != in __start_xen() 1379 BUILD_BUG_ON(sizeof(start_info_t) > PAGE_SIZE); in __start_xen() 1380 BUILD_BUG_ON(sizeof(shared_info_t) > PAGE_SIZE); in __start_xen() 1381 BUILD_BUG_ON(sizeof(struct vcpu_info) != 64); in __start_xen() 1383 BUILD_BUG_ON(sizeof(((struct compat_platform_op *)0)->u) != in __start_xen() 1385 BUILD_BUG_ON(sizeof(start_info_compat_t) > PAGE_SIZE); in __start_xen() 1386 BUILD_BUG_ON(sizeof(struct compat_vcpu_info) != 64); in __start_xen() 1391 BUILD_BUG_ON(MACH2PHYS_VIRT_START != RO_MPT_VIRT_START); in __start_xen() [all …]
|
A D | x86_emulate.c | 30 BUILD_BUG_ON(STUB_BUF_SIZE / 2 < MAX_INST_LEN + 1); \
|
/xen-4.10.0-shim-comet/xen/common/compat/ |
A D | xlat.c | 17 BUILD_BUG_ON(sizeof(*native) < sizeof(*compat)); in xlat_start_info() 25 BUILD_BUG_ON(sizeof(*native) < sizeof(*compat)); in xlat_vcpu_runstate_info()
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/ |
A D | bug.h | 43 BUILD_BUG_ON((line) >> 16); \ 44 BUILD_BUG_ON((type) >= BUGFRAME_NR); \
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/x86_64/ |
A D | system.h | 37 BUILD_BUG_ON(sizeof(*(o)) != sizeof(__uint128_t)); \ 38 BUILD_BUG_ON(sizeof(*(n)) != sizeof(__uint128_t)); \
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | string.h | 117 BUILD_BUG_ON(!is_char_array(d)); \ 121 BUILD_BUG_ON(!is_char_array(d)); \
|
A D | lib.h | 16 #define BUILD_BUG_ON(cond) ({ _Static_assert(!(cond), "!(" #cond ")"); }) macro 26 #define BUILD_BUG_ON(cond) ((void)BUILD_BUG_ON_ZERO(cond)) macro
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | system.h | 198 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \ 208 BUILD_BUG_ON(sizeof(x) != sizeof(long)); \
|
A D | bug.h | 55 BUILD_BUG_ON((line) >> (BUG_LINE_LO_WIDTH + BUG_LINE_HI_WIDTH)); \ 56 BUILD_BUG_ON((type) >= BUGFRAME_NR); \
|
A D | spinlock.h | 5 BUILD_BUG_ON(sizeof((l)->lock) != 4); /* Clang doesn't support %z in asm. */ \
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | mm.c | 165 BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK); in check_memory_layout_alignment_constraints() 166 BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK); in check_memory_layout_alignment_constraints() 167 BUILD_BUG_ON(BOOT_RELOC_VIRT_START & ~SECOND_MASK); in check_memory_layout_alignment_constraints() 170 BUILD_BUG_ON(XENHEAP_VIRT_START & ~FIRST_MASK); in check_memory_layout_alignment_constraints() 172 BUILD_BUG_ON(DIRECTMAP_VIRT_START & ~FIRST_MASK); in check_memory_layout_alignment_constraints() 176 BUILD_BUG_ON(zeroeth_table_offset(XEN_VIRT_START)); in check_memory_layout_alignment_constraints() 178 BUILD_BUG_ON(first_table_offset(XEN_VIRT_START)); in check_memory_layout_alignment_constraints() 179 BUILD_BUG_ON(second_linear_offset(XEN_VIRT_START) >= LPAE_ENTRIES); in check_memory_layout_alignment_constraints() 181 BUILD_BUG_ON(DOMHEAP_VIRT_START & ~FIRST_MASK); in check_memory_layout_alignment_constraints() 565 BUILD_BUG_ON(MIN_FDT_ALIGN < 8); in early_fdt_map() [all …]
|
A D | traps.c | 63 BUILD_BUG_ON((sizeof (struct cpu_user_regs)) & 0xf); in check_stack_alignment_constraints() 64 BUILD_BUG_ON((offsetof(struct cpu_user_regs, spsr_el1)) & 0xf); in check_stack_alignment_constraints() 65 BUILD_BUG_ON((offsetof(struct cpu_user_regs, lr)) & 0xf); in check_stack_alignment_constraints() 66 BUILD_BUG_ON((sizeof (struct cpu_info)) & 0xf); in check_stack_alignment_constraints() 68 BUILD_BUG_ON((sizeof (struct cpu_user_regs)) & 0x7); in check_stack_alignment_constraints() 69 BUILD_BUG_ON((offsetof(struct cpu_user_regs, sp_usr)) & 0x7); in check_stack_alignment_constraints() 70 BUILD_BUG_ON((sizeof (struct cpu_info)) & 0x7); in check_stack_alignment_constraints() 249 BUILD_BUG_ON(REGOFFS(r0) + 7*sizeof(register_t) != REGOFFS(r7)); in select_user_reg() 258 BUILD_BUG_ON(REGOFFS(sp_fiq) + 1*sizeof(register_t) != REGOFFS(lr_fiq)); in select_user_reg() 259 BUILD_BUG_ON(REGOFFS(sp_irq) + 1*sizeof(register_t) != REGOFFS(lr_irq)); in select_user_reg() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/platforms/ |
A D | midway.c | 30 BUILD_BUG_ON((MW_SREG_PWR_REQ & PAGE_MASK) != in midway_reset()
|
/xen-4.10.0-shim-comet/tools/tests/x86_emulator/ |
A D | x86-emulate.h | 26 #define BUILD_BUG_ON(cond) ({ _Static_assert(!(cond), "!(" #cond ")"); }) macro 31 #define BUILD_BUG_ON(cond) ((void)BUILD_BUG_ON_ZERO(cond)) macro
|
/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/ |
A D | mm.c | 352 BUILD_BUG_ON((sizeof(*frame_table) & -sizeof(*frame_table)) % \ in setup_compat_m2p_table() 414 BUILD_BUG_ON((sizeof(*frame_table) & -sizeof(*frame_table)) % \ in setup_m2p_table() 536 BUILD_BUG_ON((sizeof(*frame_table) & ~sizeof(*frame_table)) % \ in paging_init() 540 BUILD_BUG_ON(RO_MPT_VIRT_START & ((1UL << L3_PAGETABLE_SHIFT) - 1)); in paging_init() 625 BUILD_BUG_ON(l4_table_offset(RDWR_MPT_VIRT_START) != in paging_init() 646 BUILD_BUG_ON((sizeof(*frame_table) & ~sizeof(*frame_table)) % \ in paging_init() 838 BUILD_BUG_ON(RDWR_MPT_VIRT_START & ((1UL << L3_PAGETABLE_SHIFT) - 1)); in subarch_init_memory() 839 BUILD_BUG_ON(RDWR_MPT_VIRT_END & ((1UL << L3_PAGETABLE_SHIFT) - 1)); in subarch_init_memory() 923 BUILD_BUG_ON(RDWR_MPT_VIRT_START & ((1UL << L3_PAGETABLE_SHIFT) - 1)); in subarch_memory_op() 924 BUILD_BUG_ON(RDWR_MPT_VIRT_END & ((1UL << L3_PAGETABLE_SHIFT) - 1)); in subarch_memory_op()
|