Home
last modified time | relevance | path

Searched refs:leaves (Results 1 – 15 of 15) sorted by relevance

/xen/tools/misc/
A Dxen-cpuid.c327 xen_cpuid_leaf_t *leaves, uint32_t nr_leaves, in print_policy() argument
339 if ( !leaves[l].a && !leaves[l].b && !leaves[l].c && !leaves[l].d ) in print_policy()
343 leaves[l].leaf, leaves[l].subleaf, in print_policy()
344 leaves[l].a, leaves[l].b, leaves[l].c, leaves[l].d); in print_policy()
456 xen_cpuid_leaf_t *leaves; in main() local
471 leaves = calloc(max_leaves, sizeof(xen_cpuid_leaf_t)); in main()
472 if ( !leaves ) in main()
484 if ( xc_get_domain_cpu_policy(xch, domid, &nr_leaves, leaves, in main()
490 print_policy(name, leaves, nr_leaves, msrs, nr_msrs); in main()
513 print_policy(sys_policies[i], leaves, nr_leaves, in main()
[all …]
/xen/tools/libxc/
A Dxc_cpuid_x86.c136 DECLARE_HYPERCALL_BOUNCE(leaves, in xc_get_system_cpu_policy()
144 if ( xc_hypercall_bounce_pre(xch, leaves) || in xc_get_system_cpu_policy()
157 xc_hypercall_bounce_post(xch, leaves); in xc_get_system_cpu_policy()
174 DECLARE_HYPERCALL_BOUNCE(leaves, in xc_get_domain_cpu_policy()
195 xc_hypercall_bounce_post(xch, leaves); in xc_get_domain_cpu_policy()
214 DECLARE_HYPERCALL_BOUNCE(leaves, in xc_set_domain_cpu_policy()
247 xc_hypercall_bounce_post(xch, leaves); in xc_set_domain_cpu_policy()
280 return bsearch(&key, leaves, nr_leaves, sizeof(*leaves), compare_leaves); in find_leaf()
436 xen_cpuid_leaf_t *leaves = NULL; in xc_cpuid_apply_policy() local
459 if ( (leaves = calloc(nr_leaves, sizeof(*leaves))) == NULL || in xc_cpuid_apply_policy()
[all …]
/xen/tools/tests/cpu-policy/
A Dtest-cpu-policy.c74 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()
82 if ( leaves[i - 1].subleaf >= leaves[i].subleaf ) in leaves_are_sorted()
92 xen_cpuid_leaf_t leaves[CPUID_MAX_SERIALISED_LEAVES]; in test_cpuid_current() local
93 unsigned int nr = ARRAY_SIZE(leaves); in test_cpuid_current()
100 rc = x86_cpuid_copy_to_buffer(&p, leaves, &nr); in test_cpuid_current()
104 if ( !leaves_are_sorted(leaves, nr) ) in test_cpuid_current()
198 xen_cpuid_leaf_t *leaves = malloc(nr * sizeof(*leaves)); in test_cpuid_serialise_success() local
201 if ( !leaves ) in test_cpuid_serialise_success()
220 if ( !leaves_are_sorted(leaves, nr) ) in test_cpuid_serialise_success()
[all …]
/xen/tools/fuzz/cpu-policy/
A Dafl-policy-fuzzer.c24 xen_cpuid_leaf_t *leaves = malloc(CPUID_MAX_SERIALISED_LEAVES * in check_cpuid() local
29 if ( !leaves ) in check_cpuid()
53 rc = x86_cpuid_copy_to_buffer(cp, leaves, &nr); in check_cpuid()
58 rc = x86_cpuid_copy_from_buffer(&new, leaves, nr, NULL, NULL); in check_cpuid()
77 free(leaves); in check_cpuid()
/xen/xen/lib/x86/
A Dcpuid.c276 cpuid_leaf_buffer_t leaves, in copy_leaf_to_buffer() argument
286 if ( copy_to_buffer_offset(leaves, *curr_entry, &val, 1) ) in copy_leaf_to_buffer()
295 cpuid_leaf_buffer_t leaves, uint32_t *nr_entries_p) in x86_cpuid_copy_to_buffer() argument
305 l, s, data, leaves, &curr_entry, nr_entries)) ) \ in x86_cpuid_copy_to_buffer()
381 const cpuid_leaf_buffer_t leaves, in x86_cpuid_copy_from_buffer() argument
410 if ( copy_from_buffer_offset(&data, leaves, i, 1) ) in x86_cpuid_copy_from_buffer()
/xen/xen/include/xen/lib/x86/
A Dcpuid.h375 cpuid_leaf_buffer_t leaves, uint32_t *nr_entries);
395 const cpuid_leaf_buffer_t leaves,
/xen/docs/guest-guide/x86/
A Dhypercall-abi.rst109 Any guest can locate the Xen CPUID leaves and read the *hypercall transfer
/xen/docs/designs/
A Ddmop.pandoc116 This leaves do_dm_op easy to implement as below:
/xen/docs/misc/
A Dpvh.pandoc45 as HVM guests, using the hypervisor cpuid leaves and msr ranges.
A Dxenstore.txt212 is deleted even if that leaves only a nonexistent unreadable
/xen/tools/libxc/include/
A Dxenctrl.h2529 uint32_t *nr_leaves, xen_cpuid_leaf_t *leaves,
2532 uint32_t *nr_leaves, xen_cpuid_leaf_t *leaves,
2535 uint32_t nr_leaves, xen_cpuid_leaf_t *leaves,
/xen/docs/features/
A Dfeature-levelling.pandoc95 direct control of the values returned for certain `CPUID` leaves. These MSRs
/xen/stubdom/grub.patches/
A D60ext4.diff199 + * Each block (leaves and indexes), even inode-stored has header.
A D61btrfs.diff354 + * Format of the leaves:
2787 + * are no greater leaves. Returns < 0 on io errors.
/xen/docs/man/
A Dxl.cfg.5.pod.in2047 specify something in the AMD feature leaves, use "0x80000001:ecx=...".
2049 Some leaves have subleaves which can be specified as "leaf,subleaf". e.g. for
2057 Note: when specifying B<cpuid> for hypervisor leaves (0x4000xxxx major group)
2059 rest are ignored (these 8 bits signify maximum number of hypervisor leaves).

Completed in 27 milliseconds