/xen/tools/tests/cpu-policy/ |
A D | test-cpu-policy.c | 74 if ( leaves[i - 1].leaf > leaves[i].leaf ) in leaves_are_sorted() 78 if ( leaves[i - 1].leaf < leaves[i].leaf ) in leaves_are_sorted() 286 .leaf = { .leaf = 0, .subleaf = 0 }, in test_cpuid_deserialise_failure() 290 .leaf = { .leaf = 0x40000000, .subleaf = 0 }, in test_cpuid_deserialise_failure() 294 .leaf = { .leaf = 0x40000100, .subleaf = 0 }, in test_cpuid_deserialise_failure() 298 .leaf = { .leaf = 0x80000000, .subleaf = 0 }, in test_cpuid_deserialise_failure() 302 .leaf = { .leaf = CPUID_GUEST_NR_BASIC }, in test_cpuid_deserialise_failure() 310 .leaf = { .leaf = 0x7, .subleaf = CPUID_GUEST_NR_FEAT }, in test_cpuid_deserialise_failure() 322 .leaf = { .leaf = 0x80000000 | CPUID_GUEST_NR_EXTD }, in test_cpuid_deserialise_failure() 345 if ( err_leaf != t->leaf.leaf || err_subleaf != t->leaf.subleaf ) in test_cpuid_deserialise_failure() [all …]
|
/xen/xen/lib/x86/ |
A D | cpuid.c | 298 uint32_t curr_entry = 0, leaf, subleaf; in x86_cpuid_copy_to_buffer() local 310 for ( leaf = 0; leaf <= MIN(p->basic.max_leaf, in x86_cpuid_copy_to_buffer() 313 switch ( leaf ) in x86_cpuid_copy_to_buffer() 346 COPY_LEAF(leaf, 0, &p->xstate.raw[0]); in x86_cpuid_copy_to_buffer() 347 COPY_LEAF(leaf, 1, &p->xstate.raw[1]); in x86_cpuid_copy_to_buffer() 357 COPY_LEAF(leaf, XEN_CPUID_NO_SUBLEAF, &p->basic.raw[leaf]); in x86_cpuid_copy_to_buffer() 369 for ( leaf = 0; leaf <= MIN(p->extd.max_leaf & 0xfffful, in x86_cpuid_copy_to_buffer() 371 COPY_LEAF(0x80000000 | leaf, XEN_CPUID_NO_SUBLEAF, &p->extd.raw[leaf]); in x86_cpuid_copy_to_buffer() 415 switch ( data.leaf ) in x86_cpuid_copy_from_buffer() 418 switch ( data.leaf ) in x86_cpuid_copy_from_buffer() [all …]
|
A D | policy.c | 14 do { e.leaf = (l); e.subleaf = (s); goto out; } while ( 0 ) in x86_cpu_policies_are_compatible()
|
/xen/xen/common/ |
A D | hypfs.c | 130 if ( !leaf->u.content ) in hypfs_add_leaf() 133 ret = add_entry(parent, &leaf->e); in hypfs_add_leaf() 301 if ( ulen > leaf->e.max_size ) in hypfs_write_leaf() 304 if ( leaf->e.type != XEN_HYPFS_TYPE_STRING && in hypfs_write_leaf() 305 leaf->e.type != XEN_HYPFS_TYPE_BLOB && ulen != leaf->e.size ) in hypfs_write_leaf() 323 memcpy(leaf->u.write_ptr, buf, ulen); in hypfs_write_leaf() 324 leaf->e.size = ulen; in hypfs_write_leaf() 338 leaf->e.size == sizeof(bool) && in hypfs_write_bool() 339 leaf->e.max_size == sizeof(bool) ); in hypfs_write_bool() 341 if ( ulen != leaf->e.max_size ) in hypfs_write_bool() [all …]
|
/xen/xen/include/xen/ |
A D | hypfs.h | 20 int (*write)(struct hypfs_entry_leaf *leaf, 68 static inline void hypfs_string_set_reference(struct hypfs_entry_leaf *leaf, in hypfs_string_set_reference() argument 71 leaf->u.content = str; in hypfs_string_set_reference() 72 leaf->e.size = strlen(str) + 1; in hypfs_string_set_reference() 110 struct hypfs_entry_leaf *leaf, bool nofault); 115 int hypfs_write_leaf(struct hypfs_entry_leaf *leaf, 117 int hypfs_write_bool(struct hypfs_entry_leaf *leaf, 119 int hypfs_write_custom(struct hypfs_entry_leaf *leaf,
|
/xen/docs/ |
A D | xen-headers | 77 our $leaf; 106 print STDERR "$leaf:$.: @_\n"; 127 $sdef{$type}{$name}{DefLocs}{"$leaf:$."} = $leaf_opath; 128 $sdef{$type}{$name}{Derefs}{"$leaf:$."} = $deref; 205 $sdef{$reftype}{$refname}{Xrefs}{$leaf,$.} = 250 $o .= "<html><head><title>$leaf - $xtitle</title></head><body><pre>\n"; 318 push @outfiles, [ $leaf, $leaf_opath ]; 376 $leaf = substr($File::Find::name, 1+length $basedir); 381 $leaf_opath = $leaf;
|
/xen/tools/tests/x86_emulator/ |
A D | x86-emulate.c | 136 uint32_t leaf, in emul_test_cpuid() argument 143 : "a" (leaf), "c" (subleaf)); in emul_test_cpuid() 149 if ( leaf == 1 ) in emul_test_cpuid() 156 if ( leaf == 7 && subleaf == 0 ) in emul_test_cpuid() 168 if ( leaf == 0x80000008 ) in emul_test_cpuid()
|
/xen/xen/arch/x86/ |
A D | xstate.c | 92 unsigned int leaf, eax, ebx, ecx, edx; in setup_xstate_features() local 106 for ( leaf = 2; leaf < xstate_features; leaf++ ) in setup_xstate_features() 110 cpuid_count(XSTATE_CPUID, leaf, &xstate_sizes[leaf], in setup_xstate_features() 111 &xstate_offsets[leaf], &ecx, &edx); in setup_xstate_features() 113 __set_bit(leaf, &xstate_align); in setup_xstate_features() 117 cpuid_count(XSTATE_CPUID, leaf, &eax, in setup_xstate_features() 119 BUG_ON(eax != xstate_sizes[leaf]); in setup_xstate_features() 120 BUG_ON(ebx != xstate_offsets[leaf]); in setup_xstate_features() 121 BUG_ON(!(ecx & XSTATE_ALIGN64) != !test_bit(leaf, &xstate_align)); in setup_xstate_features()
|
A D | cpuid.c | 737 void guest_cpuid(const struct vcpu *v, uint32_t leaf, in guest_cpuid() argument 752 switch ( leaf ) in guest_cpuid() 756 if ( leaf > min_t(uint32_t, p->basic.max_leaf, in guest_cpuid() 760 switch ( leaf ) in guest_cpuid() 793 *res = array_access_nospec(p->basic.raw, leaf); in guest_cpuid() 800 return cpuid_viridian_leaves(v, leaf, subleaf, res); in guest_cpuid() 809 return cpuid_hypervisor_leaves(v, leaf, subleaf, res); in guest_cpuid() 813 if ( (leaf & 0xffff) > min_t(uint32_t, p->extd.max_leaf & 0xffff, in guest_cpuid() 817 *res = array_access_nospec(p->extd.raw, leaf & 0xffff); in guest_cpuid() 839 switch ( leaf ) in guest_cpuid() [all …]
|
A D | x86_emulate.c | 170 int x86emul_cpuid(uint32_t leaf, uint32_t subleaf, in x86emul_cpuid() argument 173 guest_cpuid(current, leaf, subleaf, res); in x86emul_cpuid()
|
/xen/tools/libxl/ |
A D | libxl_cpuid.c | 55 uint32_t leaf; member 66 uint32_t leaf, uint32_t subleaf) in cpuid_find_match() argument 72 if ((*list)[i].input[0] == leaf && (*list)[i].input[1] == subleaf) in cpuid_find_match() 77 (*list)[i].input[0] = leaf; in cpuid_find_match() 308 entry = cpuid_find_match(cpuid, flag->leaf, flag->subleaf); in libxl_cpuid_parse_config() 368 uint32_t leaf, subleaf = XEN_CPUID_INPUT_UNUSED; in libxl_cpuid_parse_config_xend() local 376 leaf = value; in libxl_cpuid_parse_config_xend() 390 entry = cpuid_find_match(cpuid, leaf, subleaf); in libxl_cpuid_parse_config_xend()
|
/xen/tools/libacpi/ |
A D | mk_dsdt.c | 88 unsigned int s, unsigned int e, char *var, void (*leaf)(unsigned int)) in decision_tree() 92 (*leaf)(s); in decision_tree() 97 decision_tree((s+e)/2, e, var, leaf); in decision_tree() 100 decision_tree(s, (s+e)/2, var, leaf); in decision_tree()
|
/xen/xen/include/xen/lib/x86/ |
A D | cpuid.h | 47 static inline void cpuid_leaf(uint32_t leaf, struct cpuid_leaf *l) in cpuid_leaf() argument 53 : "a" (leaf) ); in cpuid_leaf() 57 uint32_t leaf, uint32_t subleaf, struct cpuid_leaf *l) in cpuid_count_leaf() argument 63 : "a" (leaf), "c" (subleaf) ); in cpuid_count_leaf()
|
A D | cpu-policy.h | 16 uint32_t leaf, subleaf; member
|
/xen/xen/include/asm-x86/ |
A D | processor.h | 254 unsigned int leaf, unsigned int subleaf) in cpuid_count_ebx() argument 258 cpuid_count(leaf, subleaf, &tmp, &ebx, &tmp, &tmp); in cpuid_count_ebx() 264 unsigned int leaf, unsigned int subleaf) in cpuid_count_edx() argument 268 cpuid_count(leaf, subleaf, &tmp, &tmp, &tmp, &edx); in cpuid_count_edx() 604 void cpuid_hypervisor_leaves(const struct vcpu *v, uint32_t leaf,
|
A D | cpuid.h | 67 void guest_cpuid(const struct vcpu *v, uint32_t leaf,
|
/xen/m4/ |
A D | paths.m4 | 54 AC_ARG_WITH([sysconfig-leaf-dir], 55 AS_HELP_STRING([--with-sysconfig-leaf-dir=SUBDIR], 67 AC_ARG_WITH([libexec-leaf-dir], 68 AS_HELP_STRING([--with-libexec-leaf-dir=SUBDIR],
|
/xen/tools/libxc/ |
A D | xc_cpuid_x86.c | 265 if ( lhs->leaf != rhs->leaf ) in compare_leaves() 266 return lhs->leaf < rhs->leaf ? -1 : 1; in compare_leaves() 278 const xen_cpuid_leaf_t key = { xend->leaf, xend->subleaf }; in find_leaf() 359 for ( ; xend->leaf != XEN_CPUID_INPUT_UNUSED; ++xend ) in xc_cpuid_xend_policy() 367 ERROR("Missing leaf %#x, subleaf %#x", xend->leaf, xend->subleaf); in xc_cpuid_xend_policy()
|
/xen/xen/arch/x86/hvm/ |
A D | monitor.c | 195 int hvm_monitor_cpuid(unsigned long insn_length, unsigned int leaf, in hvm_monitor_cpuid() argument 207 req.u.cpuid.leaf = leaf; in hvm_monitor_cpuid()
|
/xen/stubdom/grub.patches/ |
A D | 61btrfs.diff | 346 +/* Item header for per-leaf lookup */ 2260 + struct extent_buffer *leaf, 2382 + struct extent_buffer *leaf; 2397 + leaf = &path->nodes[0]; 2763 + * non-leaf, 2842 + * is attached to leaf node. 3272 + struct extent_buffer *leaf; 3276 + leaf = &path->nodes[0]; 3277 + sd = btrfs_item_ptr(leaf, 3280 + mode = btrfs_inode_mode(leaf, sd); [all …]
|
/xen/xen/include/asm-x86/hvm/ |
A D | monitor.h | 46 int hvm_monitor_cpuid(unsigned long insn_length, unsigned int leaf,
|
A D | viridian.h | 67 void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf,
|
/xen/tools/misc/ |
A D | xen-cpuid.c | 214 static void dump_leaf(uint32_t leaf, const char *const *strs) in dump_leaf() argument 225 if ( leaf & (1u << i) ) in dump_leaf() 343 leaves[l].leaf, leaves[l].subleaf, in print_policy()
|
/xen/xen/arch/x86/hvm/viridian/ |
A D | viridian.c | 110 void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, in cpuid_viridian_leaves() argument 117 ASSERT(leaf >= 0x40000000 && leaf < 0x40000100); in cpuid_viridian_leaves() 119 leaf -= 0x40000000; in cpuid_viridian_leaves() 121 switch ( leaf ) in cpuid_viridian_leaves()
|
/xen/xen/arch/x86/mm/ |
A D | guest_walk.c | 228 goto leaf; in guest_walk_tables() 350 goto leaf; in guest_walk_tables() 390 leaf: in guest_walk_tables()
|