Lines Matching refs:domctl
59 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_get_capabilities()
60 domctl.domain = domain_id; in xc_monitor_get_capabilities()
61 domctl.u.monitor_op.op = XEN_DOMCTL_MONITOR_OP_GET_CAPABILITIES; in xc_monitor_get_capabilities()
63 rc = do_domctl(xch, &domctl); in xc_monitor_get_capabilities()
67 *capabilities = domctl.u.monitor_op.event; in xc_monitor_get_capabilities()
77 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_write_ctrlreg()
78 domctl.domain = domain_id; in xc_monitor_write_ctrlreg()
79 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_write_ctrlreg()
81 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_WRITE_CTRLREG; in xc_monitor_write_ctrlreg()
82 domctl.u.monitor_op.u.mov_to_cr.index = index; in xc_monitor_write_ctrlreg()
83 domctl.u.monitor_op.u.mov_to_cr.sync = sync; in xc_monitor_write_ctrlreg()
84 domctl.u.monitor_op.u.mov_to_cr.onchangeonly = onchangeonly; in xc_monitor_write_ctrlreg()
85 domctl.u.monitor_op.u.mov_to_cr.bitmask = bitmask; in xc_monitor_write_ctrlreg()
86 domctl.u.monitor_op.u.mov_to_cr.pad1 = 0; in xc_monitor_write_ctrlreg()
87 domctl.u.monitor_op.u.mov_to_cr.pad2 = 0; in xc_monitor_write_ctrlreg()
89 return do_domctl(xch, &domctl); in xc_monitor_write_ctrlreg()
97 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_mov_to_msr()
98 domctl.domain = domain_id; in xc_monitor_mov_to_msr()
99 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_mov_to_msr()
101 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_MOV_TO_MSR; in xc_monitor_mov_to_msr()
102 domctl.u.monitor_op.u.mov_to_msr.msr = msr; in xc_monitor_mov_to_msr()
104 return do_domctl(xch, &domctl); in xc_monitor_mov_to_msr()
112 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_software_breakpoint()
113 domctl.domain = domain_id; in xc_monitor_software_breakpoint()
114 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_software_breakpoint()
116 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_SOFTWARE_BREAKPOINT; in xc_monitor_software_breakpoint()
118 return do_domctl(xch, &domctl); in xc_monitor_software_breakpoint()
126 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_singlestep()
127 domctl.domain = domain_id; in xc_monitor_singlestep()
128 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_singlestep()
130 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_SINGLESTEP; in xc_monitor_singlestep()
132 return do_domctl(xch, &domctl); in xc_monitor_singlestep()
140 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_descriptor_access()
141 domctl.domain = domain_id; in xc_monitor_descriptor_access()
142 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_descriptor_access()
144 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_DESC_ACCESS; in xc_monitor_descriptor_access()
146 return do_domctl(xch, &domctl); in xc_monitor_descriptor_access()
154 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_guest_request()
155 domctl.domain = domain_id; in xc_monitor_guest_request()
156 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_guest_request()
158 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_GUEST_REQUEST; in xc_monitor_guest_request()
159 domctl.u.monitor_op.u.guest_request.sync = sync; in xc_monitor_guest_request()
160 domctl.u.monitor_op.u.guest_request.allow_userspace = enable ? allow_userspace : false; in xc_monitor_guest_request()
162 return do_domctl(xch, &domctl); in xc_monitor_guest_request()
170 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_emulate_each_rep()
171 domctl.domain = domain_id; in xc_monitor_emulate_each_rep()
172 domctl.u.monitor_op.op = XEN_DOMCTL_MONITOR_OP_EMULATE_EACH_REP; in xc_monitor_emulate_each_rep()
173 domctl.u.monitor_op.event = enable; in xc_monitor_emulate_each_rep()
175 return do_domctl(xch, &domctl); in xc_monitor_emulate_each_rep()
183 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_debug_exceptions()
184 domctl.domain = domain_id; in xc_monitor_debug_exceptions()
185 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_debug_exceptions()
187 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_DEBUG_EXCEPTION; in xc_monitor_debug_exceptions()
188 domctl.u.monitor_op.u.debug_exception.sync = sync; in xc_monitor_debug_exceptions()
190 return do_domctl(xch, &domctl); in xc_monitor_debug_exceptions()
197 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_cpuid()
198 domctl.domain = domain_id; in xc_monitor_cpuid()
199 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_cpuid()
201 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_CPUID; in xc_monitor_cpuid()
203 return do_domctl(xch, &domctl); in xc_monitor_cpuid()
211 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_privileged_call()
212 domctl.domain = domain_id; in xc_monitor_privileged_call()
213 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_privileged_call()
215 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_PRIVILEGED_CALL; in xc_monitor_privileged_call()
217 return do_domctl(xch, &domctl); in xc_monitor_privileged_call()
225 domctl.cmd = XEN_DOMCTL_monitor_op; in xc_monitor_emul_unimplemented()
226 domctl.domain = domain_id; in xc_monitor_emul_unimplemented()
227 domctl.u.monitor_op.op = enable ? XEN_DOMCTL_MONITOR_OP_ENABLE in xc_monitor_emul_unimplemented()
229 domctl.u.monitor_op.event = XEN_DOMCTL_MONITOR_EVENT_EMUL_UNIMPLEMENTED; in xc_monitor_emul_unimplemented()
231 return do_domctl(xch, &domctl); in xc_monitor_emul_unimplemented()