Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 49) sorted by relevance

12

/xen/tools/xenstore/
A Dxs_tdb_dump.c16 return sizeof(*hdr) + hdr->num_perms * sizeof(struct xs_permissions) in total_size()
17 + hdr->datalen + hdr->childlen; in total_size()
54 struct xs_tdb_record_hdr *hdr; in main() local
57 hdr = (void *)data.dptr; in main()
58 if (data.dsize < sizeof(*hdr)) in main()
64 hdr->num_perms, hdr->datalen, in main()
65 hdr->childlen, total_size(hdr)); in main()
75 hdr->perms[i].id); in main()
76 p = (void *)&hdr->perms[hdr->num_perms]; in main()
77 printf(" %.*s\n", hdr->datalen, p); in main()
[all …]
A Dxenstored_solaris.c103 if (in->hdr.msg.len == 0) in mangle()
106 if ((str = talloc_zero_size(conn, in->hdr.msg.len + 1)) == NULL) in mangle()
109 memcpy(str, in->buffer, in->hdr.msg.len); in mangle()
116 for (i = 0; i < (in->hdr.msg.len - 1); i++) { in mangle()
131 XENSTORE_MSG(in->hdr.msg.tx_id, conn->id, cred(conn), in dtrace_io()
132 in->hdr.msg.type, mangled); in dtrace_io()
138 switch (in->hdr.msg.type) { in dtrace_io()
142 XENSTORE_ERROR(in->hdr.msg.tx_id, conn->id, in dtrace_io()
157 XENSTORE_REPLY(in->hdr.msg.tx_id, conn->id, cred(conn), in dtrace_io()
158 in->hdr.msg.type, mangled); in dtrace_io()
A Dxenstored_core.c224 out->hdr.msg.len, in write_messages()
368 struct xs_tdb_record_hdr *hdr; in read_node() local
405 hdr = (void *)data.dptr; in read_node()
408 node->datalen = hdr->datalen; in read_node()
412 node->perms.p = hdr->perms; in read_node()
438 data.dsize = sizeof(*hdr) in write_node_raw()
449 hdr = (void *)data.dptr; in write_node_raw()
452 hdr->datalen = node->datalen; in write_node_raw()
719 bdata->hdr.msg.type = type; in send_reply()
720 bdata->hdr.msg.len = len; in send_reply()
[all …]
/xen/xen/arch/x86/cpu/mcheck/
A Dmce-apei.c51 struct cper_record_header hdr; member
65 rcd.hdr.revision = CPER_RECORD_REV; in apei_write_mce()
66 rcd.hdr.signature_end = CPER_SIG_END; in apei_write_mce()
67 rcd.hdr.section_count = 1; in apei_write_mce()
68 rcd.hdr.error_severity = CPER_SER_FATAL; in apei_write_mce()
70 rcd.hdr.validation_bits = 0; in apei_write_mce()
71 rcd.hdr.record_length = sizeof(rcd); in apei_write_mce()
72 rcd.hdr.creator_id = CPER_CREATOR_MCE; in apei_write_mce()
74 rcd.hdr.record_id = cper_next_record_id(); in apei_write_mce()
88 return erst_write(&rcd.hdr); in apei_write_mce()
[all …]
/xen/xen/arch/x86/
A Dbzimage.c61 if ( memcmp(&hdr->header, HDR_MAGIC, HDR_MAGIC_SZ) != 0 ) in bzimage_check()
64 if ( hdr->version < VERSION(2,8) ) { in bzimage_check()
66 hdr->version >> 8, hdr->version & 0xff); in bzimage_check()
77 struct setup_header *hdr = (struct setup_header *)image_start; in bzimage_headroom() local
81 err = bzimage_check(hdr, image_length); in bzimage_headroom()
87 image_start += (hdr->setup_sects + 1) * 512 + hdr->payload_offset; in bzimage_headroom()
88 image_length = hdr->payload_length; in bzimage_headroom()
110 struct setup_header *hdr = (struct setup_header *)(*image_start); in bzimage_parse() local
111 int err = bzimage_check(hdr, *image_len); in bzimage_parse()
119 *image_start += (hdr->setup_sects + 1) * 512 + hdr->payload_offset; in bzimage_parse()
[all …]
A Dlivepatch.c196 const Elf_Ehdr *hdr = elf->hdr; in arch_livepatch_verify_elf() local
198 if ( hdr->e_machine != EM_X86_64 || in arch_livepatch_verify_elf()
199 hdr->e_ident[EI_CLASS] != ELFCLASS64 || in arch_livepatch_verify_elf()
200 hdr->e_ident[EI_DATA] != ELFDATA2LSB ) in arch_livepatch_verify_elf()
/xen/xen/common/
A Dlivepatch_elf.c66 delta = elf->hdr->e_shoff + elf->hdr->e_shnum * elf->hdr->e_shentsize; in elf_resolve_sections()
71 delta = elf->hdr->e_shoff + i * elf->hdr->e_shentsize; in elf_resolve_sections()
420 const Elf_Ehdr *hdr = elf->hdr; in livepatch_header_check() local
430 if ( !IS_ELF(*hdr) ) in livepatch_header_check()
442 hdr->e_type != ET_REL || in livepatch_header_check()
443 hdr->e_phnum != 0 ) in livepatch_header_check()
469 if ( elf->hdr->e_shstrndx >= elf->hdr->e_shnum ) in livepatch_header_check()
472 elf->name, elf->hdr->e_shstrndx, elf->hdr->e_shnum); in livepatch_header_check()
489 if ( ((elf->len - elf->hdr->e_shoff) / elf->hdr->e_shentsize) < in livepatch_header_check()
490 elf->hdr->e_shnum ) in livepatch_header_check()
[all …]
/xen/tools/xl/
A Dxl_saverestore.c84 struct save_file_header hdr; in save_domain_core_writeconfig() local
88 memset(&hdr, 0, sizeof(hdr)); in save_domain_core_writeconfig()
89 memcpy(hdr.magic, savefileheader_magic, sizeof(hdr.magic)); in save_domain_core_writeconfig()
90 hdr.byteorder = SAVEFILE_BYTEORDER_VALUE; in save_domain_core_writeconfig()
91 hdr.mandatory_flags = XL_MANDATORY_FLAG_STREAMv2; in save_domain_core_writeconfig()
97 hdr.optional_data_len += (len); \ in save_domain_core_writeconfig()
108 hdr.mandatory_flags |= XL_MANDATORY_FLAG_JSON; in save_domain_core_writeconfig()
113 ctx, fd, &hdr, sizeof(hdr), source, "header")); in save_domain_core_writeconfig()
115 ctx, fd, optdata_begin, hdr.optional_data_len, in save_domain_core_writeconfig()
122 source, hdr.mandatory_flags, hdr.optional_flags, in save_domain_core_writeconfig()
[all …]
A Dxl_vmcontrol.c679 struct save_file_header hdr; in create_domain() local
709 ctx, restore_fd, &hdr, sizeof(hdr), in create_domain()
711 if (memcmp(hdr.magic, savefileheader_magic, sizeof(hdr.magic))) { in create_domain()
716 if (hdr.byteorder != SAVEFILE_BYTEORDER_VALUE) { in create_domain()
723 restore_source, hdr.mandatory_flags, hdr.optional_flags, in create_domain()
724 hdr.optional_data_len); in create_domain()
726 badflags = hdr.mandatory_flags & ~XL_MANDATORY_FLAG_ALL; in create_domain()
733 if (hdr.optional_data_len) { in create_domain()
734 optdata_begin = xmalloc(hdr.optional_data_len); in create_domain()
737 hdr.optional_data_len, restore_source, in create_domain()
[all …]
/xen/tools/firmware/hvmloader/
A Dxenbus.c178 struct xsd_sockmsg hdr; in xenbus_send() local
191 hdr.type = type; in xenbus_send()
194 hdr.len = 0; in xenbus_send()
204 hdr.len += seg[i].len; in xenbus_send()
209 ring_write((char *) &hdr, sizeof hdr); in xenbus_send()
225 struct xsd_sockmsg hdr; in xenbus_recv() local
230 ring_read((char *) &hdr, sizeof(hdr)); in xenbus_recv()
233 payload[hdr.len] = '\0'; in xenbus_recv()
238 *reply_type = hdr.type; in xenbus_recv()
241 if ( hdr.type == XS_ERROR ) in xenbus_recv()
[all …]
/xen/xen/arch/x86/hvm/
A Dsave.c36 hdr->cpuid = eax; in arch_hvm_save()
39 hdr->gtsc_khz = d->arch.tsc_khz; in arch_hvm_save()
49 if ( hdr->magic != HVM_FILE_MAGIC ) in arch_hvm_load()
71 if ( hdr->gtsc_khz ) in arch_hvm_load()
72 d->arch.tsc_khz = hdr->gtsc_khz; in arch_hvm_load()
209 struct hvm_save_header hdr; in hvm_save() local
216 hdr.magic = HVM_FILE_MAGIC; in hvm_save()
217 hdr.version = HVM_FILE_VERSION; in hvm_save()
226 arch_hvm_save(d, &hdr); in hvm_save()
290 struct hvm_save_header hdr; in hvm_load() local
[all …]
/xen/tools/libs/call/
A Dbuffer.c161 struct allocation_header *hdr; in xencall_alloc_buffer() local
163 hdr = xencall_alloc_buffer_pages(xcall, nr_pages); in xencall_alloc_buffer()
164 if ( hdr == NULL ) in xencall_alloc_buffer()
167 hdr->nr_pages = nr_pages; in xencall_alloc_buffer()
169 return (void *)(hdr+1); in xencall_alloc_buffer()
174 struct allocation_header *hdr; in xencall_free_buffer() local
179 hdr = p; in xencall_free_buffer()
180 --hdr; in xencall_free_buffer()
182 xencall_free_buffer_pages(xcall, hdr, hdr->nr_pages); in xencall_free_buffer()
/xen/tools/libxl/
A Dlibxl_stream_read.c216 FILLZERO(stream->hdr); in libxl__stream_read_init()
283 &stream->hdr, sizeof(stream->hdr), in libxl__stream_read_start()
328 libxl__sr_hdr *hdr = &stream->hdr; in stream_header_done() local
334 hdr->ident = be64toh(hdr->ident); in stream_header_done()
335 hdr->version = be32toh(hdr->version); in stream_header_done()
336 hdr->options = be32toh(hdr->options); in stream_header_done()
338 if (hdr->ident != RESTORE_STREAM_IDENT) { in stream_header_done()
486 &rec->hdr, sizeof(rec->hdr), in setup_read_record()
509 if (rec->hdr.length == 0) { in record_header_done()
574 LOG(DEBUG, "Record: %u, length %u", rec->hdr.type, rec->hdr.length); in process_record()
[all …]
A Dlibxl_stream_write.c117 libxl__sr_rec_hdr *hdr, in setup_generic_write() argument
139 size_t padsz = ROUNDUP(hdr->length, REC_ALIGN_ORDER) - hdr->length; in setup_generic_write()
140 uint32_t length = hdr->length; in setup_generic_write()
143 libxl__datacopier_prefixdata(egc, dc, hdr, sizeof(*hdr)); in setup_generic_write()
167 libxl__sr_rec_hdr *hdr, in setup_write() argument
233 struct libxl__sr_hdr hdr; in libxl__stream_write_start() local
275 FILLZERO(hdr); in libxl__stream_write_start()
276 hdr.ident = htobe64(RESTORE_STREAM_IDENT); in libxl__stream_write_start()
277 hdr.version = htobe32(RESTORE_STREAM_VERSION); in libxl__stream_write_start()
278 hdr.options = htobe32(0); in libxl__stream_write_start()
[all …]
/xen/tools/ocaml/libs/xb/
A Dxenbus_stubs.c43 const struct xsd_sockmsg *hdr; in stub_header_of_string() local
48 hdr = (const struct xsd_sockmsg *) String_val(s); in stub_header_of_string()
49 Store_field(ret, 0, Val_int(hdr->tx_id)); in stub_header_of_string()
50 Store_field(ret, 1, Val_int(hdr->req_id)); in stub_header_of_string()
51 Store_field(ret, 2, Val_int(hdr->type)); in stub_header_of_string()
52 Store_field(ret, 3, Val_int(hdr->len)); in stub_header_of_string()
/xen/tools/libxc/
A Dxc_sr_restore_x86_hvm.c28 struct xc_sr_rec_hvm_params *hdr = rec->data; in handle_hvm_params() local
29 struct xc_sr_rec_hvm_params_entry *entry = hdr->param; in handle_hvm_params()
33 if ( rec->length < sizeof(*hdr) ) in handle_hvm_params()
36 rec->length, sizeof(*hdr)); in handle_hvm_params()
40 if ( rec->length != (sizeof(*hdr) + hdr->count * sizeof(*entry)) ) in handle_hvm_params()
44 sizeof(*hdr), hdr->count, hdr->count * sizeof(*entry), in handle_hvm_params()
53 if ( hdr->count == 0 ) in handle_hvm_params()
59 for ( i = 0; i < hdr->count; i++, entry++ ) in handle_hvm_params()
A Dxc_sr_save_x86_hvm.c83 struct xc_sr_rec_hvm_params hdr = { in write_hvm_params() local
88 .length = sizeof(hdr), in write_hvm_params()
89 .data = &hdr, in write_hvm_params()
108 entries[hdr.count].index = index; in write_hvm_params()
109 entries[hdr.count].value = value; in write_hvm_params()
110 hdr.count++; in write_hvm_params()
115 if ( hdr.count == 0 ) in write_hvm_params()
118 rc = write_split_record(ctx, &rec, entries, hdr.count * sizeof(*entries)); in write_hvm_params()
A Dxc_dom_bzimageloader.c652 struct setup_header *hdr; in xc_dom_probe_bzimage_kernel() local
669 hdr = dom->kernel_blob; in xc_dom_probe_bzimage_kernel()
671 if ( memcmp(&hdr->header, HDR_MAGIC, HDR_MAGIC_SZ) != 0 ) in xc_dom_probe_bzimage_kernel()
677 if ( hdr->version < VERSION(2,8) ) in xc_dom_probe_bzimage_kernel()
680 " too old (%04x)", __FUNCTION__, hdr->version); in xc_dom_probe_bzimage_kernel()
687 payload_offset = (hdr->setup_sects + 1) * 512; in xc_dom_probe_bzimage_kernel()
688 payload_offset += hdr->payload_offset; in xc_dom_probe_bzimage_kernel()
689 payload_length = hdr->payload_length; in xc_dom_probe_bzimage_kernel()
/xen/tools/xcutils/
A Dreadnotes.c185 struct setup_header *hdr; in main() local
218 hdr = (struct setup_header *)image; in main()
219 if ( memcmp(&hdr->header, HDR_MAGIC, HDR_MAGIC_SZ) == 0 ) in main()
221 if ( hdr->version < VERSION(2,8) ) in main()
223 printf("%s: boot protocol too old (%04x)", __FUNCTION__, hdr->version); in main()
229 payload_offset = (hdr->setup_sects + 1) * 512; in main()
230 payload_offset += hdr->payload_offset; in main()
231 payload_length = hdr->payload_length; in main()
/xen/stubdom/vtpmmgr/
A Ddisk_write.c127 static void disk_write_vtpm_itree(struct mem_group_hdr *hdr, int base, int nr_entries,
131 static void disk_write_vtpm_itree(struct mem_group_hdr *hdr, int base, int nr_entries, in disk_write_vtpm_itree() argument
141 struct mem_group *group = hdr->v; in disk_write_vtpm_itree()
157 disk_write_vtpm_itree(hdr, base, child_entries, pt.hash, pt.location, in disk_write_vtpm_itree()
168 inuse_base = hdr->disk_nr_inuse; in disk_write_vtpm_itree()
170 hdr->disk_nr_inuse += lsize; in disk_write_vtpm_itree()
171 hdr->disk_inuse = realloc(hdr->disk_inuse, hdr->disk_nr_inuse * sizeof(sector_t)); in disk_write_vtpm_itree()
172 memcpy(&hdr->disk_inuse[inuse_base], loc, lsize * sizeof(sector_t)); in disk_write_vtpm_itree()
265 memcpy(seal->hdr.magic, TPM_MGR_MAGIC, 12); in disk_write_seal_list()
266 seal->hdr.version = native_be32(TPM_MGR_VERSION); in disk_write_seal_list()
A Dvtpm_disk.c111 struct mem_group_hdr *hdr = mgr->groups + i; in find_mem_group_hdr() local
112 if (hdr->v == group) in find_mem_group_hdr()
113 return hdr; in find_mem_group_hdr()
120 struct mem_group_hdr* hdr = find_mem_group_hdr(g_mgr, group); in vtpm_sync_group() local
123 if (!hdr) in vtpm_sync_group()
126 hdr->disk_loc.value = 0; in vtpm_sync_group()
A Ddisk_read.c167 if (memcmp(seal->hdr.magic, TPM_MGR_MAGIC, 12)) in find_root_key()
170 if (be32_native(seal->hdr.version) != TPM_MGR_VERSION) in find_root_key()
267 static int load_verify_vtpm_itree(struct mem_group_hdr *hdr, int base, int nr_entries,
271 static int load_verify_vtpm_itree(struct mem_group_hdr *hdr, int base, int nr_entries, in load_verify_vtpm_itree() argument
275 int i, rc, incr = 1, inuse_base = hdr->disk_nr_inuse, lsize; in load_verify_vtpm_itree()
283 hdr->disk_nr_inuse += lsize; in load_verify_vtpm_itree()
284 hdr->disk_inuse = realloc(hdr->disk_inuse, hdr->disk_nr_inuse * sizeof(sector_t)); in load_verify_vtpm_itree()
285 memcpy(&hdr->disk_inuse[inuse_base], loc, lsize * sizeof(sector_t)); in load_verify_vtpm_itree()
289 return load_verify_vtpm_pages(hdr->v, base, nr_entries, hash, loc, mgr, group_key); in load_verify_vtpm_itree()
300 hdr->disk_inuse[inuse_base++] = loc[i]; in load_verify_vtpm_itree()
[all …]
/xen/xen/arch/arm/arm32/
A Dlivepatch.c82 const Elf_Ehdr *hdr = elf->hdr; in arch_livepatch_verify_elf() local
84 if ( hdr->e_machine != EM_ARM || in arch_livepatch_verify_elf()
85 hdr->e_ident[EI_CLASS] != ELFCLASS32 ) in arch_livepatch_verify_elf()
92 if ( (hdr->e_flags & EF_ARM_EABI_MASK) != EF_ARM_EABI_VER5 ) in arch_livepatch_verify_elf()
95 elf->name, hdr->e_flags); in arch_livepatch_verify_elf()
/xen/tools/libfsimage/zfs/zfs-include/
A Dsa_impl.h31 #define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 16, 3, 0) argument
/xen/xen/include/public/
A Dgrant_table.h233 grant_entry_header_t hdr; member
245 grant_entry_header_t hdr; member
256 grant_entry_header_t hdr; member
272 grant_entry_header_t hdr; member

Completed in 39 milliseconds

12