Home
last modified time | relevance | path

Searched refs:nr_leaves (Results 1 – 9 of 9) sorted by relevance

/xen/tools/libxc/
A Dxc_cpuid_x86.c124 *nr_leaves = sysctl.u.cpu_policy.nr_leaves; in xc_get_cpu_policy_size()
150 sysctl.u.cpu_policy.nr_leaves = *nr_leaves; in xc_get_system_cpu_policy()
162 *nr_leaves = sysctl.u.cpu_policy.nr_leaves; in xc_get_system_cpu_policy()
188 domctl.u.cpu_policy.nr_leaves = *nr_leaves; in xc_get_domain_cpu_policy()
200 *nr_leaves = domctl.u.cpu_policy.nr_leaves; in xc_get_domain_cpu_policy()
237 domctl.u.cpu_policy.nr_leaves = nr_leaves; in xc_set_domain_cpu_policy()
288 unsigned int nr_leaves, nr_msrs; in xc_cpuid_xend_policy() local
324 nr_cur = nr_leaves; in xc_cpuid_xend_policy()
335 nr_max = nr_leaves; in xc_cpuid_xend_policy()
348 nr_host = nr_leaves; in xc_cpuid_xend_policy()
[all …]
A Dxc_sr_common_x86.c50 uint32_t nr_leaves = 0, nr_msrs = 0; in write_x86_cpu_policy_records() local
53 if ( xc_get_cpu_policy_size(xch, &nr_leaves, &nr_msrs) < 0 ) in write_x86_cpu_policy_records()
59 cpuid.data = malloc(nr_leaves * sizeof(xen_cpuid_leaf_t)); in write_x86_cpu_policy_records()
68 if ( xc_get_domain_cpu_policy(xch, ctx->domid, &nr_leaves, cpuid.data, in write_x86_cpu_policy_records()
76 cpuid.length = nr_leaves * sizeof(xen_cpuid_leaf_t); in write_x86_cpu_policy_records()
138 uint32_t nr_leaves = 0, nr_msrs = 0; in x86_static_data_complete() local
142 nr_leaves = ctx->x86.restore.cpuid.size / sizeof(xen_cpuid_leaf_t); in x86_static_data_complete()
151 if ( (nr_leaves || nr_msrs) && in x86_static_data_complete()
153 nr_leaves, ctx->x86.restore.cpuid.ptr, in x86_static_data_complete()
/xen/tools/misc/
A Dxen-cpuid.c327 xen_cpuid_leaf_t *leaves, uint32_t nr_leaves, in print_policy() argument
332 printf("%s policy: %u leaves, %u MSRs\n", name, nr_leaves, nr_msrs); in print_policy()
336 for ( l = 0; l < nr_leaves; ++l ) in print_policy()
481 uint32_t nr_leaves = max_leaves; in main() local
484 if ( xc_get_domain_cpu_policy(xch, domid, &nr_leaves, leaves, in main()
487 domid, nr_leaves, nr_msrs); in main()
490 print_policy(name, leaves, nr_leaves, msrs, nr_msrs); in main()
497 uint32_t nr_leaves = max_leaves; in main() local
500 if ( xc_get_system_cpu_policy(xch, i, &nr_leaves, leaves, in main()
513 print_policy(sys_policies[i], leaves, nr_leaves, in main()
/xen/tools/tests/cpu-policy/
A Dtest-cpu-policy.c113 unsigned int nr_leaves; in test_cpuid_serialise_success() member
117 .nr_leaves = 4, in test_cpuid_serialise_success()
126 .nr_leaves = 4 + 4, in test_cpuid_serialise_success()
134 .nr_leaves = 4 + 4 + 1, in test_cpuid_serialise_success()
143 .nr_leaves = 4 + 7, in test_cpuid_serialise_success()
151 .nr_leaves = 4 + 7 + 1, in test_cpuid_serialise_success()
160 .nr_leaves = 4 + 0xb, in test_cpuid_serialise_success()
168 .nr_leaves = 4 + 0xb + 1, in test_cpuid_serialise_success()
180 .nr_leaves = 4 + 0xd + 1, in test_cpuid_serialise_success()
197 unsigned int nr = t->nr_leaves; in test_cpuid_serialise_success()
[all …]
/xen/xen/arch/x86/
A Dsysctl.c444 sysctl->u.cpu_policy.nr_leaves = CPUID_MAX_SERIALISED_LEAVES; in arch_do_sysctl()
448 &sysctl->u.cpu_policy.nr_leaves)) ) in arch_do_sysctl()
452 u.cpu_policy.nr_leaves) ) in arch_do_sysctl()
A Ddomctl.c236 new.cpuid, xdpc->cpuid_policy, xdpc->nr_leaves, in update_domain_cpu_policy()
1455 domctl->u.cpu_policy.nr_leaves = CPUID_MAX_SERIALISED_LEAVES; in arch_do_domctl()
1459 &domctl->u.cpu_policy.nr_leaves)) ) in arch_do_domctl()
/xen/tools/libxc/include/
A Dxenctrl.h2526 int xc_get_cpu_policy_size(xc_interface *xch, uint32_t *nr_leaves,
2529 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/xen/include/public/
A Dsysctl.h1051 uint32_t nr_leaves; /* IN/OUT: Number of leaves in/written to member
A Ddomctl.h676 uint32_t nr_leaves; /* IN/OUT: Number of leaves in/written to member

Completed in 25 milliseconds