/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_monitor.c | 60 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() 113 domctl.domain = domain_id; in xc_monitor_software_breakpoint() 127 domctl.domain = domain_id; in xc_monitor_singlestep() 141 domctl.domain = domain_id; in xc_monitor_descriptor_access() 155 domctl.domain = domain_id; in xc_monitor_guest_request() 171 domctl.domain = domain_id; in xc_monitor_emulate_each_rep() 184 domctl.domain = domain_id; in xc_monitor_debug_exceptions() 198 domctl.domain = domain_id; in xc_monitor_cpuid() [all …]
|
A D | xc_domain.c | 84 domctl.domain = domid; in xc_domain_cacheflush() 96 domctl.domain = domid; in xc_domain_pause() 106 domctl.domain = domid; in xc_domain_unpause() 116 domctl.domain = domid; in xc_domain_destroy() 334 memset(&domctl, 0, sizeof(domctl)); in xc_domain_get_guest_width() 356 memset(&domctl, 0, sizeof(domctl)); in xc_dom_vuart_init() 688 memset(&domctl, 0, sizeof(domctl)); in xc_shadow_control() 2196 memset(&domctl, 0, sizeof(domctl)); in xc_domain_set_machine_address_size() 2210 memset(&domctl, 0, sizeof(domctl)); in xc_domain_get_machine_address_size() 2223 memset(&domctl, 0, sizeof(domctl)); in xc_domain_suppress_spurious_page_faults() [all …]
|
A D | xc_rt.c | 34 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 D | xc_csched.c | 34 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 D | xc_csched2.c | 34 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 D | xc_psr.c | 35 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() 278 domctl.domain = domid; in xc_psr_cat_set_domain_data() 279 domctl.u.psr_cat_op.cmd = cmd; in xc_psr_cat_set_domain_data() 314 domctl.domain = domid; in xc_psr_cat_get_domain_data() 315 domctl.u.psr_cat_op.cmd = cmd; in xc_psr_cat_get_domain_data() [all …]
|
A D | xc_resume.c | 106 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 D | xc_vm_event.c | 31 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.port; in xc_vm_event_control()
|
A D | xc_private.c | 224 domctl.domain = dom; in xc_get_pfn_type_batch() 225 domctl.u.getpageframeinfo3.num = num; in xc_get_pfn_type_batch() 227 rc = do_domctl(xch, &domctl); in xc_get_pfn_type_batch() 351 domctl.cmd = XEN_DOMCTL_getvcpuinfo; in xc_domain_get_cpu_usage() 352 domctl.domain = domid; in xc_domain_get_cpu_usage() 354 if ( (do_domctl(xch, &domctl) < 0) ) in xc_domain_get_cpu_usage() 359 return domctl.u.getvcpuinfo.cpu_time; in xc_domain_get_cpu_usage() 405 domctl.cmd = XEN_DOMCTL_getmemlist; in xc_get_pfn_list() 406 domctl.domain = domid; in xc_get_pfn_list() 410 ret = do_domctl(xch, &domctl); in xc_get_pfn_list() [all …]
|
A D | xc_cpuid_x86.c | 210 struct xen_domctl domctl = {}; in get_cpuid_domain_info() local 253 domctl.domain = domid; in get_cpuid_domain_info() 254 rc = do_domctl(xch, &domctl); in get_cpuid_domain_info() 616 memset(&domctl, 0, sizeof (domctl)); in xc_cpuid_do_domctl() 617 domctl.domain = domid; in xc_cpuid_do_domctl() 618 domctl.cmd = XEN_DOMCTL_set_cpuid; in xc_cpuid_do_domctl() 621 domctl.u.cpuid.eax = regs[0]; in xc_cpuid_do_domctl() 622 domctl.u.cpuid.ebx = regs[1]; in xc_cpuid_do_domctl() 623 domctl.u.cpuid.ecx = regs[2]; in xc_cpuid_do_domctl() 624 domctl.u.cpuid.edx = regs[3]; in xc_cpuid_do_domctl() [all …]
|
A D | xc_sr_save_x86_pv.c | 599 struct xen_domctl domctl = in write_one_vcpu_extended() local 606 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_extended() 639 struct xen_domctl domctl = in write_one_vcpu_xsave() local 646 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_xsave() 665 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_xsave() 672 if ( domctl.u.vcpuextstate.size == 0 ) in write_one_vcpu_xsave() 708 struct xen_domctl domctl = in write_one_vcpu_msrs() local 715 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_msrs() 722 if ( !domctl.u.vcpu_msrs.msr_count ) in write_one_vcpu_msrs() 735 if ( xc_domctl(xch, &domctl) < 0 ) in write_one_vcpu_msrs() [all …]
|
A D | xc_sr_restore_x86_pv.c | 384 domctl.domain = ctx->domid; in process_vcpu_extended() 387 if ( xc_domctl(xch, &domctl) != 0 ) in process_vcpu_extended() 418 domctl.domain = ctx->domid; in process_vcpu_xsave() 425 rc = xc_domctl(xch, &domctl); in process_vcpu_xsave() 456 domctl.domain = ctx->domid; in process_vcpu_msrs() 457 domctl.u.vcpu_msrs.vcpu = vcpuid; in process_vcpu_msrs() 463 rc = xc_domctl(xch, &domctl); in process_vcpu_msrs() 615 struct xen_domctl domctl; in handle_x86_pv_info() local 618 memset(&domctl, 0, sizeof(domctl)); in handle_x86_pv_info() 619 domctl.domain = ctx->domid; in handle_x86_pv_info() [all …]
|
A D | xc_private.h | 63 #define DECLARE_DOMCTL struct xen_domctl domctl 257 static inline int do_domctl(xc_interface *xch, struct xen_domctl *domctl) in do_domctl() argument 260 DECLARE_HYPERCALL_BOUNCE(domctl, sizeof(*domctl), XC_HYPERCALL_BUFFER_BOUNCE_BOTH); in do_domctl() 262 domctl->interface_version = XEN_DOMCTL_INTERFACE_VERSION; in do_domctl() 264 if ( xc_hypercall_bounce_pre(xch, domctl) ) in do_domctl() 271 HYPERCALL_BUFFER_AS_ARG(domctl)); in do_domctl() 279 xc_hypercall_bounce_post(xch, domctl); in do_domctl()
|
A D | xc_memshr.c | 34 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 D | xc_dom_arm.c | 228 domctl.domain = domid; in set_mode() 229 domctl.cmd = XEN_DOMCTL_set_address_size; in set_mode() 230 domctl.u.address_size.size = 0; in set_mode() 234 domctl.u.address_size.size = types[i].size; in set_mode() 235 if ( domctl.u.address_size.size == 0 ) in set_mode() 243 guest_type, domctl.u.address_size.size); in set_mode() 244 rc = do_domctl(xch, &domctl); in set_mode()
|
A D | xc_dom_boot.c | 54 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-4.10.0-shim-comet/xen/arch/x86/ |
A D | domctl.c | 355 struct xen_domctl *domctl, struct domain *d, in arch_do_domctl() argument 364 switch ( domctl->cmd ) in arch_do_domctl() 446 domctl->u.getmemlist.num_pfns = i; in arch_do_domctl() 594 domctl->u.hvmcontext.size = c.size; in arch_do_domctl() 613 domctl->u.hvmcontext.size = c.cur; in arch_do_domctl() 862 domctl->u.pin_mem_cacheattr.end, in arch_do_domctl() 863 domctl->u.pin_mem_cacheattr.type); in arch_do_domctl() 1027 domctl->u.gdbsx_guest_memio.remain = domctl->u.gdbsx_guest_memio.len; in arch_do_domctl() 1028 ret = gdbsx_guest_mem_io(domctl->domain, &domctl->u.gdbsx_guest_memio); in arch_do_domctl() 1462 switch ( domctl->u.psr_cmt_op.cmd ) in arch_do_domctl() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | domctl.c | 48 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 unsigned long s = domctl->u.cacheflush.start_pfn; in arch_do_domctl() 56 unsigned long e = s + domctl->u.cacheflush.nr_pfns; in arch_do_domctl() 58 if ( domctl->u.cacheflush.nr_pfns > (1U<<MAX_ORDER) ) in arch_do_domctl() 69 struct xen_domctl_bind_pt_irq *bind = &domctl->u.bind_pt_irq; in arch_do_domctl() 144 d->disable_migrate = domctl->u.disable_migrate.disable; in arch_do_domctl() 151 struct xen_domctl_vuart_op *vuart_op = &domctl->u.vuart_op; in arch_do_domctl() 170 rc = copy_to_guest(u_domctl, domctl, 1); in arch_do_domctl() 178 rc = subarch_do_domctl(domctl, d, u_domctl); in arch_do_domctl() [all …]
|
/xen-4.10.0-shim-comet/tools/debugger/gdbsx/xg/ |
A D | xg_main.c | 178 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-4.10.0-shim-comet/xen/drivers/passthrough/ |
A D | device_tree.c | 137 int iommu_do_dt_domctl(struct xen_domctl *domctl, struct domain *d, in iommu_do_dt_domctl() argument 143 switch ( domctl->cmd ) in iommu_do_dt_domctl() 150 if ( domctl->u.assign_device.dev != XEN_DOMCTL_DEV_DT ) in iommu_do_dt_domctl() 154 if ( (d && d->is_dying) || domctl->u.assign_device.flags ) in iommu_do_dt_domctl() 157 ret = dt_find_node_by_gpath(domctl->u.assign_device.u.dt.path, in iommu_do_dt_domctl() 158 domctl->u.assign_device.u.dt.size, in iommu_do_dt_domctl() 167 if ( domctl->cmd == XEN_DOMCTL_test_assign_device ) in iommu_do_dt_domctl() 188 if ( domctl->u.assign_device.dev != XEN_DOMCTL_DEV_DT ) in iommu_do_dt_domctl() 192 if ( domctl->u.assign_device.flags ) in iommu_do_dt_domctl() 195 ret = dt_find_node_by_gpath(domctl->u.assign_device.u.dt.path, in iommu_do_dt_domctl() [all …]
|
A D | pci.c | 1564 struct xen_domctl *domctl, struct domain *d, in iommu_do_pci_domctl() argument 1572 switch ( domctl->cmd ) in iommu_do_pci_domctl() 1585 seg = domctl->u.get_device_group.machine_sbdf >> 16; in iommu_do_pci_domctl() 1588 max_sdevs = domctl->u.get_device_group.max_sdevs; in iommu_do_pci_domctl() 1589 sdevs = domctl->u.get_device_group.sdev_array; in iommu_do_pci_domctl() 1596 domctl->u.get_device_group.num_sdevs = 0; in iommu_do_pci_domctl() 1600 domctl->u.get_device_group.num_sdevs = ret; in iommu_do_pci_domctl() 1624 flags = domctl->u.assign_device.flags; in iommu_do_pci_domctl() 1625 if ( domctl->cmd == XEN_DOMCTL_assign_device in iommu_do_pci_domctl() 1641 if ( domctl->cmd == XEN_DOMCTL_test_assign_device ) in iommu_do_pci_domctl() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/ |
A D | domctl.c | 14 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()
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/ |
A D | domctl.c | 35 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()
|
A D | Makefile | 5 obj-y += domctl.o
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/ |
A D | hypercall.h | 9 long subarch_do_domctl(struct xen_domctl *domctl, struct domain *d,
|