Home
last modified time | relevance | path

Searched refs:domctl (Results 1 – 25 of 46) sorted by relevance

12

/xen/tools/libxc/
A Dxc_monitor.c60 domctl.domain = domain_id; in xc_monitor_get_capabilities()
78 domctl.domain = domain_id; in xc_monitor_write_ctrlreg()
98 domctl.domain = domain_id; in xc_monitor_mov_to_msr()
114 domctl.domain = domain_id; in xc_monitor_software_breakpoint()
128 domctl.domain = domain_id; in xc_monitor_singlestep()
142 domctl.domain = domain_id; in xc_monitor_descriptor_access()
156 domctl.domain = domain_id; in xc_monitor_guest_request()
172 domctl.domain = domain_id; in xc_monitor_inguest_pagefault()
186 domctl.domain = domain_id; in xc_monitor_emulate_each_rep()
199 domctl.domain = domain_id; in xc_monitor_debug_exceptions()
[all …]
A Dxc_domain.c36 domctl.domain = *pdomid; in xc_domain_create()
62 domctl.domain = domid; in xc_domain_cacheflush()
74 domctl.domain = domid; in xc_domain_pause()
84 domctl.domain = domid; in xc_domain_unpause()
94 domctl.domain = domid; in xc_domain_destroy()
149 domctl.domain = domid; in xc_domain_node_setaffinity()
187 domctl.domain = domid; in xc_domain_node_getaffinity()
312 memset(&domctl, 0, sizeof(domctl)); in xc_domain_get_guest_width()
334 memset(&domctl, 0, sizeof(domctl)); in xc_dom_vuart_init()
666 memset(&domctl, 0, sizeof(domctl)); in xc_shadow_control()
[all …]
A Dxc_rt.c34 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_rtds_domain_set()
35 domctl.domain = domid; in xc_sched_rtds_domain_set()
41 rc = do_domctl(xch, &domctl); in xc_sched_rtds_domain_set()
53 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_rtds_domain_get()
54 domctl.domain = domid; in xc_sched_rtds_domain_get()
58 rc = do_domctl(xch, &domctl); in xc_sched_rtds_domain_get()
61 *sdom = domctl.u.scheduler_op.u.rtds; in xc_sched_rtds_domain_get()
80 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_rtds_vcpu_set()
81 domctl.domain = domid; in xc_sched_rtds_vcpu_set()
114 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_rtds_vcpu_get()
[all …]
A Dxc_csched.c34 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_credit_domain_set()
35 domctl.domain = domid; in xc_sched_credit_domain_set()
36 domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT; in xc_sched_credit_domain_set()
37 domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_putinfo; in xc_sched_credit_domain_set()
38 domctl.u.scheduler_op.u.credit = *sdom; in xc_sched_credit_domain_set()
40 if ( do_domctl(xch, &domctl) ) in xc_sched_credit_domain_set()
54 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_credit_domain_get()
55 domctl.domain = domid; in xc_sched_credit_domain_get()
56 domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT; in xc_sched_credit_domain_get()
59 if ( do_domctl(xch, &domctl) ) in xc_sched_credit_domain_get()
[all …]
A Dxc_csched2.c34 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_credit2_domain_set()
35 domctl.domain = domid; in xc_sched_credit2_domain_set()
36 domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT2; in xc_sched_credit2_domain_set()
37 domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_putinfo; in xc_sched_credit2_domain_set()
38 domctl.u.scheduler_op.u.credit2 = *sdom; in xc_sched_credit2_domain_set()
40 if ( do_domctl(xch, &domctl) ) in xc_sched_credit2_domain_set()
54 domctl.cmd = XEN_DOMCTL_scheduler_op; in xc_sched_credit2_domain_get()
55 domctl.domain = domid; in xc_sched_credit2_domain_get()
56 domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT2; in xc_sched_credit2_domain_get()
59 if ( do_domctl(xch, &domctl) ) in xc_sched_credit2_domain_get()
[all …]
A Dxc_psr.c35 domctl.domain = domid; in xc_psr_cmt_attach()
38 return do_domctl(xch, &domctl); in xc_psr_cmt_attach()
46 domctl.domain = domid; in xc_psr_cmt_detach()
49 return do_domctl(xch, &domctl); in xc_psr_cmt_detach()
59 domctl.domain = domid; in xc_psr_cmt_get_domain_rmid()
62 rc = do_domctl(xch, &domctl); in xc_psr_cmt_get_domain_rmid()
281 domctl.domain = domid; in xc_psr_set_domain_data()
282 domctl.u.psr_alloc.cmd = cmd; in xc_psr_set_domain_data()
320 domctl.domain = domid; in xc_psr_get_domain_data()
321 domctl.u.psr_alloc.cmd = cmd; in xc_psr_get_domain_data()
[all …]
A Dxc_vm_event.c31 domctl.cmd = XEN_DOMCTL_vm_event_op; in xc_vm_event_control()
32 domctl.domain = domain_id; in xc_vm_event_control()
33 domctl.u.vm_event_op.op = op; in xc_vm_event_control()
34 domctl.u.vm_event_op.mode = mode; in xc_vm_event_control()
36 rc = do_domctl(xch, &domctl); in xc_vm_event_control()
38 *port = domctl.u.vm_event_op.u.enable.port; in xc_vm_event_control()
164 domctl.cmd = XEN_DOMCTL_vm_event_op; in xc_vm_event_get_version()
165 domctl.domain = DOMID_INVALID; in xc_vm_event_get_version()
166 domctl.u.vm_event_op.op = XEN_VM_EVENT_GET_VERSION; in xc_vm_event_get_version()
169 rc = do_domctl(xch, &domctl); in xc_vm_event_get_version()
[all …]
A Dxc_resume.c106 domctl.cmd = XEN_DOMCTL_resumedomain; in xc_domain_resume_cooperative()
107 domctl.domain = domid; in xc_domain_resume_cooperative()
108 return do_domctl(xch, &domctl); in xc_domain_resume_cooperative()
127 domctl.cmd = XEN_DOMCTL_resumedomain; in xc_domain_resume_hvm()
128 domctl.domain = domid; in xc_domain_resume_hvm()
129 return do_domctl(xch, &domctl); in xc_domain_resume_hvm()
248 domctl.cmd = XEN_DOMCTL_resumedomain; in xc_domain_resume_any()
249 domctl.domain = domid; in xc_domain_resume_any()
250 rc = do_domctl(xch, &domctl); in xc_domain_resume_any()
A Dxc_cpuid_x86.c186 domctl.cmd = XEN_DOMCTL_get_cpu_policy; in xc_get_domain_cpu_policy()
187 domctl.domain = domid; in xc_get_domain_cpu_policy()
190 domctl.u.cpu_policy.nr_msrs = *nr_msrs; in xc_get_domain_cpu_policy()
193 ret = do_domctl(xch, &domctl); in xc_get_domain_cpu_policy()
235 domctl.cmd = XEN_DOMCTL_set_cpu_policy; in xc_set_domain_cpu_policy()
236 domctl.domain = domid; in xc_set_domain_cpu_policy()
239 domctl.u.cpu_policy.nr_msrs = nr_msrs; in xc_set_domain_cpu_policy()
241 domctl.u.cpu_policy.err_leaf = -1; in xc_set_domain_cpu_policy()
242 domctl.u.cpu_policy.err_subleaf = -1; in xc_set_domain_cpu_policy()
243 domctl.u.cpu_policy.err_msr = -1; in xc_set_domain_cpu_policy()
[all …]
A Dxc_private.h65 #define DECLARE_DOMCTL struct xen_domctl domctl
260 struct xen_domctl *domctl, in do_domctl_maybe_retry_efault() argument
266 DECLARE_HYPERCALL_BOUNCE(domctl, sizeof(*domctl), XC_HYPERCALL_BUFFER_BOUNCE_BOTH); in do_domctl_maybe_retry_efault()
268 domctl->interface_version = XEN_DOMCTL_INTERFACE_VERSION; in do_domctl_maybe_retry_efault()
270 if ( xc_hypercall_bounce_pre(xch, domctl) ) in do_domctl_maybe_retry_efault()
278 HYPERCALL_BUFFER_AS_ARG(domctl)); in do_domctl_maybe_retry_efault()
288 xc_hypercall_bounce_post(xch, domctl); in do_domctl_maybe_retry_efault()
293 static inline int do_domctl(xc_interface *xch, struct xen_domctl *domctl) in do_domctl() argument
295 return do_domctl_maybe_retry_efault(xch, domctl, 0); in do_domctl()
298 static inline int do_domctl_retry_efault(xc_interface *xch, struct xen_domctl *domctl) in do_domctl_retry_efault() argument
[all …]
A Dxc_sr_save_x86_pv.c594 struct xen_domctl domctl = { in write_one_vcpu_extended() local
600 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_extended()
631 struct xen_domctl domctl = { in write_one_vcpu_xsave() local
637 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_xsave()
656 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_xsave()
663 if ( domctl.u.vcpuextstate.size == 0 ) in write_one_vcpu_xsave()
697 struct xen_domctl domctl = { in write_one_vcpu_msrs() local
703 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_msrs()
710 if ( !domctl.u.vcpu_msrs.msr_count ) in write_one_vcpu_msrs()
723 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_msrs()
[all …]
A Dxc_private.c238 domctl.cmd = XEN_DOMCTL_getpageframeinfo3; in xc_get_pfn_type_batch()
239 domctl.domain = dom; in xc_get_pfn_type_batch()
240 domctl.u.getpageframeinfo3.num = num; in xc_get_pfn_type_batch()
242 rc = do_domctl_retry_efault(xch, &domctl); in xc_get_pfn_type_batch()
366 domctl.cmd = XEN_DOMCTL_getvcpuinfo; in xc_domain_get_cpu_usage()
367 domctl.domain = domid; in xc_domain_get_cpu_usage()
368 domctl.u.getvcpuinfo.vcpu = (uint16_t)vcpu; in xc_domain_get_cpu_usage()
369 if ( (do_domctl(xch, &domctl) < 0) ) in xc_domain_get_cpu_usage()
374 return domctl.u.getvcpuinfo.cpu_time; in xc_domain_get_cpu_usage()
445 int xc_domctl(xc_interface *xch, struct xen_domctl *domctl) in xc_domctl() argument
[all …]
A Dxc_sr_restore_x86_pv.c382 domctl.domain = ctx->domid; in process_vcpu_extended()
385 if ( xc_domctl(xch, &domctl) != 0 ) in process_vcpu_extended()
416 domctl.domain = ctx->domid; in process_vcpu_xsave()
417 domctl.u.vcpuextstate.vcpu = vcpuid; in process_vcpu_xsave()
423 rc = xc_domctl(xch, &domctl); in process_vcpu_xsave()
453 domctl.cmd = XEN_DOMCTL_set_vcpu_msrs; in process_vcpu_msrs()
454 domctl.domain = ctx->domid; in process_vcpu_msrs()
455 domctl.u.vcpu_msrs.vcpu = vcpuid; in process_vcpu_msrs()
461 rc = xc_domctl(xch, &domctl); in process_vcpu_msrs()
633 struct xen_domctl domctl = { in handle_x86_pv_info() local
[all …]
A Dxc_memshr.c34 domctl.cmd = XEN_DOMCTL_mem_sharing_op; in xc_memshr_control()
35 domctl.interface_version = XEN_DOMCTL_INTERFACE_VERSION; in xc_memshr_control()
36 domctl.domain = domid; in xc_memshr_control()
37 op = &(domctl.u.mem_sharing_op); in xc_memshr_control()
41 return do_domctl(xch, &domctl); in xc_memshr_control()
A Dxc_dom_arm.c211 domctl.domain = domid; in set_mode()
212 domctl.cmd = XEN_DOMCTL_set_address_size; in set_mode()
213 domctl.u.address_size.size = 0; in set_mode()
217 domctl.u.address_size.size = types[i].size; in set_mode()
218 if ( domctl.u.address_size.size == 0 ) in set_mode()
226 guest_type, domctl.u.address_size.size); in set_mode()
227 rc = do_domctl(xch, &domctl); in set_mode()
A Dxc_dom_boot.c54 domctl.cmd = XEN_DOMCTL_hypercall_init; in setup_hypercall_page()
55 domctl.domain = dom->guest_domid; in setup_hypercall_page()
56 domctl.u.hypercall_init.gmfn = xc_dom_p2m(dom, pfn); in setup_hypercall_page()
57 rc = do_domctl(dom->xch, &domctl); in setup_hypercall_page()
/xen/xen/arch/x86/
A Ddomctl.c328 struct xen_domctl *domctl, struct domain *d, in arch_do_domctl() argument
337 switch ( domctl->cmd ) in arch_do_domctl()
531 domctl->u.hvmcontext.size = c.size; in arch_do_domctl()
550 domctl->u.hvmcontext.size = c.cur; in arch_do_domctl()
597 domctl->u.address_size.size = in arch_do_domctl()
947 domctl->u.gdbsx_guest_memio.remain = domctl->u.gdbsx_guest_memio.len; in arch_do_domctl()
948 ret = gdbsx_guest_mem_io(domctl->domain, &domctl->u.gdbsx_guest_memio); in arch_do_domctl()
991 domctl->u.gdbsx_domstatus.vcpu_id = -1; in arch_do_domctl()
993 if ( domctl->u.gdbsx_domstatus.paused ) in arch_do_domctl()
1351 switch ( domctl->u.psr_cmt_op.cmd ) in arch_do_domctl()
[all …]
/xen/tools/debugger/gdbsx/xg/
A Dxg_main.c178 domctl.cmd = cmd; in _domctl_hcall()
257 memset(&domctl.u, 0, sizeof(domctl.u)); in _unpause_domain()
278 if (mlock(&domctl, sizeof(domctl))) { in xg_attach()
290 memset(&domctl.u, 0, sizeof(domctl.u)); in xg_attach()
298 memset(&domctl.u, 0, sizeof(domctl.u)); in xg_attach()
320 memset(&domctl.u, 0, sizeof(domctl.u)); in _domain_is_paused()
332 memset(&domctl.u, 0, sizeof(domctl.u)); in xg_detach_deinit()
421 memset(&domctl.u, 0, sizeof(domctl.u)); in _allbutone_vcpu()
474 memset(&domctl.u, 0, sizeof(domctl.u)); in _vcpu_in_bp()
780 memset(&domctl.u, 0, sizeof(domctl.u)); in xg_read_mem()
[all …]
/xen/xen/arch/arm/
A Ddomctl.c48 long arch_do_domctl(struct xen_domctl *domctl, struct domain *d, in arch_do_domctl() argument
51 switch ( domctl->cmd ) in arch_do_domctl()
55 gfn_t s = _gfn(domctl->u.cacheflush.start_pfn); in arch_do_domctl()
56 gfn_t e = gfn_add(s, domctl->u.cacheflush.nr_pfns); in arch_do_domctl()
59 if ( domctl->u.cacheflush.nr_pfns > (1U<<MAX_ORDER) ) in arch_do_domctl()
75 struct xen_domctl_bind_pt_irq *bind = &domctl->u.bind_pt_irq; in arch_do_domctl()
150 d->disable_migrate = domctl->u.disable_migrate.disable; in arch_do_domctl()
157 struct xen_domctl_vuart_op *vuart_op = &domctl->u.vuart_op; in arch_do_domctl()
176 rc = copy_to_guest(u_domctl, domctl, 1); in arch_do_domctl()
184 rc = subarch_do_domctl(domctl, d, u_domctl); in arch_do_domctl()
[all …]
/xen/xen/drivers/passthrough/
A Ddevice_tree.c207 int iommu_do_dt_domctl(struct xen_domctl *domctl, struct domain *d, in iommu_do_dt_domctl() argument
213 switch ( domctl->cmd ) in iommu_do_dt_domctl()
220 if ( domctl->u.assign_device.dev != XEN_DOMCTL_DEV_DT ) in iommu_do_dt_domctl()
224 if ( (d && d->is_dying) || domctl->u.assign_device.flags ) in iommu_do_dt_domctl()
227 ret = dt_find_node_by_gpath(domctl->u.assign_device.u.dt.path, in iommu_do_dt_domctl()
228 domctl->u.assign_device.u.dt.size, in iommu_do_dt_domctl()
237 if ( domctl->cmd == XEN_DOMCTL_test_assign_device ) in iommu_do_dt_domctl()
274 if ( domctl->u.assign_device.dev != XEN_DOMCTL_DEV_DT ) in iommu_do_dt_domctl()
278 if ( domctl->u.assign_device.flags ) in iommu_do_dt_domctl()
281 ret = dt_find_node_by_gpath(domctl->u.assign_device.u.dt.path, in iommu_do_dt_domctl()
[all …]
A Dpci.c1638 struct xen_domctl *domctl, struct domain *d, in iommu_do_pci_domctl() argument
1646 switch ( domctl->cmd ) in iommu_do_pci_domctl()
1659 seg = domctl->u.get_device_group.machine_sbdf >> 16; in iommu_do_pci_domctl()
1662 max_sdevs = domctl->u.get_device_group.max_sdevs; in iommu_do_pci_domctl()
1663 sdevs = domctl->u.get_device_group.sdev_array; in iommu_do_pci_domctl()
1670 domctl->u.get_device_group.num_sdevs = 0; in iommu_do_pci_domctl()
1674 domctl->u.get_device_group.num_sdevs = ret; in iommu_do_pci_domctl()
1698 flags = domctl->u.assign_device.flags; in iommu_do_pci_domctl()
1699 if ( domctl->cmd == XEN_DOMCTL_assign_device in iommu_do_pci_domctl()
1716 if ( domctl->cmd == XEN_DOMCTL_test_assign_device ) in iommu_do_pci_domctl()
[all …]
/xen/xen/arch/arm/arm32/
A Ddomctl.c14 long subarch_do_domctl(struct xen_domctl *domctl, struct domain *d, in subarch_do_domctl() argument
17 switch ( domctl->cmd ) in subarch_do_domctl()
20 return domctl->u.address_size.size == 32 ? 0 : -EINVAL; in subarch_do_domctl()
A DMakefile4 obj-y += domctl.o
/xen/xen/arch/arm/arm64/
A Ddomctl.c35 long subarch_do_domctl(struct xen_domctl *domctl, struct domain *d, in subarch_do_domctl() argument
38 switch ( domctl->cmd ) in subarch_do_domctl()
41 switch ( domctl->u.address_size.size ) in subarch_do_domctl()
/xen/xen/include/asm-arm/
A Dhypercall.h9 long subarch_do_domctl(struct xen_domctl *domctl, struct domain *d,

Completed in 45 milliseconds

12