Lines Matching refs:xch
24 int xc_get_max_cpus(xc_interface *xch) in xc_get_max_cpus() argument
32 if ( !xc_physinfo(xch, &physinfo) ) in xc_get_max_cpus()
41 int xc_get_online_cpus(xc_interface *xch) in xc_get_online_cpus() argument
45 if ( !xc_physinfo(xch, &physinfo) ) in xc_get_online_cpus()
51 int xc_get_max_nodes(xc_interface *xch) in xc_get_max_nodes() argument
59 if ( !xc_physinfo(xch, &physinfo) ) in xc_get_max_nodes()
68 int xc_get_cpumap_size(xc_interface *xch) in xc_get_cpumap_size() argument
70 int max_cpus = xc_get_max_cpus(xch); in xc_get_cpumap_size()
77 int xc_get_nodemap_size(xc_interface *xch) in xc_get_nodemap_size() argument
79 int max_nodes = xc_get_max_nodes(xch); in xc_get_nodemap_size()
86 xc_cpumap_t xc_cpumap_alloc(xc_interface *xch) in xc_cpumap_alloc() argument
90 sz = xc_get_cpumap_size(xch); in xc_cpumap_alloc()
124 xc_nodemap_t xc_nodemap_alloc(xc_interface *xch) in xc_nodemap_alloc() argument
128 sz = xc_get_nodemap_size(xch); in xc_nodemap_alloc()
134 int xc_readconsolering(xc_interface *xch, in xc_readconsolering() argument
144 if ( xc_hypercall_bounce_pre(xch, buffer) ) in xc_readconsolering()
158 if ( (ret = do_sysctl(xch, &sysctl)) == 0 ) in xc_readconsolering()
165 xc_hypercall_bounce_post(xch, buffer); in xc_readconsolering()
170 int xc_send_debug_keys(xc_interface *xch, const char *keys) in xc_send_debug_keys() argument
176 if ( xc_hypercall_bounce_pre(xch, keys) ) in xc_send_debug_keys()
183 ret = do_sysctl(xch, &sysctl); in xc_send_debug_keys()
185 xc_hypercall_bounce_post(xch, keys); in xc_send_debug_keys()
190 int xc_physinfo(xc_interface *xch, in xc_physinfo() argument
200 if ( (ret = do_sysctl(xch, &sysctl)) != 0 ) in xc_physinfo()
208 int xc_microcode_update(xc_interface *xch, const void *buf, size_t len) in xc_microcode_update() argument
214 uc = xc_hypercall_buffer_alloc(xch, uc, len); in xc_microcode_update()
224 ret = do_platform_op(xch, &platform_op); in xc_microcode_update()
226 xc_hypercall_buffer_free(xch, uc); in xc_microcode_update()
231 int xc_cputopoinfo(xc_interface *xch, unsigned *max_cpus, in xc_cputopoinfo() argument
239 if ( (ret = xc_hypercall_bounce_pre(xch, cputopo)) ) in xc_cputopoinfo()
247 if ( (ret = do_sysctl(xch, &sysctl)) != 0 ) in xc_cputopoinfo()
253 xc_hypercall_bounce_post(xch, cputopo); in xc_cputopoinfo()
258 int xc_numainfo(xc_interface *xch, unsigned *max_nodes, in xc_numainfo() argument
269 if ( (ret = xc_hypercall_bounce_pre(xch, meminfo)) ) in xc_numainfo()
271 if ((ret = xc_hypercall_bounce_pre(xch, distance)) ) in xc_numainfo()
280 if ( (ret = do_sysctl(xch, &sysctl)) != 0 ) in xc_numainfo()
286 xc_hypercall_bounce_post(xch, meminfo); in xc_numainfo()
287 xc_hypercall_bounce_post(xch, distance); in xc_numainfo()
292 int xc_pcitopoinfo(xc_interface *xch, unsigned num_devs, in xc_pcitopoinfo() argument
304 if ( (ret = xc_hypercall_bounce_pre(xch, devs)) ) in xc_pcitopoinfo()
306 if ( (ret = xc_hypercall_bounce_pre(xch, nodes)) ) in xc_pcitopoinfo()
319 if ( (ret = do_sysctl(xch, &sysctl)) != 0 ) in xc_pcitopoinfo()
326 xc_hypercall_bounce_post(xch, devs); in xc_pcitopoinfo()
327 xc_hypercall_bounce_post(xch, nodes); in xc_pcitopoinfo()
332 int xc_sched_id(xc_interface *xch, in xc_sched_id() argument
340 if ( (ret = do_sysctl(xch, &sysctl)) != 0 ) in xc_sched_id()
349 int xc_mca_op(xc_interface *xch, struct xen_mc *mc) in xc_mca_op() argument
354 if ( xc_hypercall_bounce_pre(xch, mc) ) in xc_mca_op()
361 ret = xencall1(xch->xcall, __HYPERVISOR_mca, in xc_mca_op()
364 xc_hypercall_bounce_post(xch, mc); in xc_mca_op()
368 int xc_mca_op_inject_v2(xc_interface *xch, unsigned int flags, in xc_mca_op_inject_v2() argument
389 if ( xc_hypercall_bounce_pre(xch, cpumap) ) in xc_mca_op_inject_v2()
402 if ( xc_hypercall_bounce_pre(xch, mc) ) in xc_mca_op_inject_v2()
408 ret = xencall1(xch->xcall, __HYPERVISOR_mca, HYPERCALL_BUFFER_AS_ARG(mc)); in xc_mca_op_inject_v2()
410 xc_hypercall_bounce_post(xch, mc); in xc_mca_op_inject_v2()
413 xc_hypercall_bounce_post(xch, cpumap); in xc_mca_op_inject_v2()
419 int xc_perfc_reset(xc_interface *xch) in xc_perfc_reset() argument
428 return do_sysctl(xch, &sysctl); in xc_perfc_reset()
431 int xc_perfc_query_number(xc_interface *xch, in xc_perfc_query_number() argument
443 rc = do_sysctl(xch, &sysctl); in xc_perfc_query_number()
453 int xc_perfc_query(xc_interface *xch, in xc_perfc_query() argument
466 return do_sysctl(xch, &sysctl); in xc_perfc_query()
469 int xc_lockprof_reset(xc_interface *xch) in xc_lockprof_reset() argument
477 return do_sysctl(xch, &sysctl); in xc_lockprof_reset()
480 int xc_lockprof_query_number(xc_interface *xch, in xc_lockprof_query_number() argument
491 rc = do_sysctl(xch, &sysctl); in xc_lockprof_query_number()
498 int xc_lockprof_query(xc_interface *xch, in xc_lockprof_query() argument
512 rc = do_sysctl(xch, &sysctl); in xc_lockprof_query()
519 int xc_getcpuinfo(xc_interface *xch, int max_cpus, in xc_getcpuinfo() argument
526 if ( xc_hypercall_bounce_pre(xch, info) ) in xc_getcpuinfo()
533 rc = do_sysctl(xch, &sysctl); in xc_getcpuinfo()
535 xc_hypercall_bounce_post(xch, info); in xc_getcpuinfo()
543 int xc_livepatch_upload(xc_interface *xch, in xc_livepatch_upload() argument
569 if ( xc_hypercall_bounce_pre(xch, name) ) in xc_livepatch_upload()
572 local = xc_hypercall_buffer_alloc(xch, local, size); in xc_livepatch_upload()
575 xc_hypercall_bounce_post(xch, name); in xc_livepatch_upload()
589 rc = do_sysctl(xch, &sysctl); in xc_livepatch_upload()
591 xc_hypercall_buffer_free(xch, local); in xc_livepatch_upload()
592 xc_hypercall_bounce_post(xch, name); in xc_livepatch_upload()
597 int xc_livepatch_get(xc_interface *xch, in xc_livepatch_get() argument
621 if ( xc_hypercall_bounce_pre(xch, name) ) in xc_livepatch_get()
634 rc = do_sysctl(xch, &sysctl); in xc_livepatch_get()
636 xc_hypercall_bounce_post(xch, name); in xc_livepatch_get()
655 int xc_livepatch_list_get_sizes(xc_interface *xch, unsigned int *nr, in xc_livepatch_list_get_sizes() argument
672 rc = do_sysctl(xch, &sysctl); in xc_livepatch_list_get_sizes()
730 int xc_livepatch_list(xc_interface *xch, const unsigned int max, in xc_livepatch_list() argument
809 rc = xc_hypercall_bounce_pre(xch, info); in xc_livepatch_list()
813 rc = xc_hypercall_bounce_pre(xch, name); in xc_livepatch_list()
817 rc = xc_hypercall_bounce_pre(xch, len); in xc_livepatch_list()
821 rc = xc_hypercall_bounce_pre(xch, metadata); in xc_livepatch_list()
825 rc = xc_hypercall_bounce_pre(xch, metadata_len); in xc_livepatch_list()
835 rc = do_sysctl(xch, &sysctl); in xc_livepatch_list()
847 xc_hypercall_bounce_post(xch, info); in xc_livepatch_list()
848 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
849 xc_hypercall_bounce_post(xch, len); in xc_livepatch_list()
850 xc_hypercall_bounce_post(xch, metadata); in xc_livepatch_list()
851 xc_hypercall_bounce_post(xch, metadata_len); in xc_livepatch_list()
874 xc_hypercall_bounce_post(xch, info); in xc_livepatch_list()
875 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
876 xc_hypercall_bounce_post(xch, len); in xc_livepatch_list()
877 xc_hypercall_bounce_post(xch, metadata); in xc_livepatch_list()
878 xc_hypercall_bounce_post(xch, metadata_len); in xc_livepatch_list()
899 xc_hypercall_bounce_post(xch, info); in xc_livepatch_list()
900 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
901 xc_hypercall_bounce_post(xch, len); in xc_livepatch_list()
902 xc_hypercall_bounce_post(xch, metadata); in xc_livepatch_list()
903 xc_hypercall_bounce_post(xch, metadata_len); in xc_livepatch_list()
918 xc_hypercall_bounce_post(xch, len); in xc_livepatch_list()
919 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
920 xc_hypercall_bounce_post(xch, info); in xc_livepatch_list()
921 xc_hypercall_bounce_post(xch, metadata); in xc_livepatch_list()
922 xc_hypercall_bounce_post(xch, metadata_len); in xc_livepatch_list()
928 static int _xc_livepatch_action(xc_interface *xch, in _xc_livepatch_action() argument
950 if ( xc_hypercall_bounce_pre(xch, name) ) in _xc_livepatch_action()
964 rc = do_sysctl(xch, &sysctl); in _xc_livepatch_action()
966 xc_hypercall_bounce_post(xch, name); in _xc_livepatch_action()
971 int xc_livepatch_apply(xc_interface *xch, char *name, uint32_t timeout, uint32_t flags) in xc_livepatch_apply() argument
973 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_APPLY, timeout, flags); in xc_livepatch_apply()
976 int xc_livepatch_revert(xc_interface *xch, char *name, uint32_t timeout, uint32_t flags) in xc_livepatch_revert() argument
978 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_REVERT, timeout, flags); in xc_livepatch_revert()
981 int xc_livepatch_unload(xc_interface *xch, char *name, uint32_t timeout, uint32_t flags) in xc_livepatch_unload() argument
983 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_UNLOAD, timeout, flags); in xc_livepatch_unload()
986 int xc_livepatch_replace(xc_interface *xch, char *name, uint32_t timeout, uint32_t flags) in xc_livepatch_replace() argument
988 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_REPLACE, timeout, flags); in xc_livepatch_replace()