/xen/tools/libxc/ |
A D | xc_altp2m.c | 32 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_get_domain_state() 55 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_domain_state() 77 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_vcpu_enable_notify() 100 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_vcpu_disable_notify() 122 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_create_view() 148 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_destroy_view() 171 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_switch_to_view() 193 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_get_suppress_ve() 219 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_suppress_ve() 245 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_supress_ve_multi() [all …]
|
A D | xc_evtchn.c | 24 static int do_evtchn_op(xc_interface *xch, int cmd, void *arg, in do_evtchn_op() argument 28 DECLARE_HYPERCALL_BOUNCE(arg, arg_size, XC_HYPERCALL_BUFFER_BOUNCE_BOTH); in do_evtchn_op() 30 if ( xc_hypercall_bounce_pre(xch, arg) ) in do_evtchn_op() 37 cmd, HYPERCALL_BUFFER_AS_ARG(arg)); in do_evtchn_op() 41 xc_hypercall_bounce_post(xch, arg); in do_evtchn_op() 52 struct evtchn_alloc_unbound arg = { in xc_evtchn_alloc_unbound() local 57 rc = do_evtchn_op(xch, EVTCHNOP_alloc_unbound, &arg, sizeof(arg), 0); in xc_evtchn_alloc_unbound() 59 rc = arg.port; in xc_evtchn_alloc_unbound() 67 struct evtchn_reset arg = { .dom = dom }; in xc_evtchn_reset() local 68 return do_evtchn_op(xch, EVTCHNOP_reset, &arg, sizeof(arg), 0); in xc_evtchn_reset()
|
/xen/xen/xsm/flask/ |
A D | flask_op.c | 98 rv = security_change_sid(arg->ssid, arg->tsid, arg->tclass, &arg->newsid); in flask_security_relabel() 111 rv = security_transition_sid(arg->ssid, arg->tsid, arg->tclass, &arg->newsid); in flask_security_create() 125 rv = security_compute_av(arg->ssid, arg->tsid, arg->tclass, arg->req, &avd); in flask_security_access() 145 rv = security_member_sid(arg->ssid, arg->tsid, arg->tclass, &arg->newsid); in flask_security_member() 318 values[arg->bool_id] = !!(arg->new_value); in flask_security_set_bool() 320 arg->enforcing = arg->pending = !!(arg->new_value); in flask_security_set_bool() 338 arg->pending = !!(arg->new_value); in flask_security_set_bool() 526 if ( arg->low > arg->high ) in flask_ocontext_del() 533 return security_ocontext_del(arg->ocon, arg->low, arg->high); in flask_ocontext_del() 540 if ( arg->low > arg->high ) in flask_ocontext_add() [all …]
|
/xen/xen/include/xen/ |
A D | hypercall.h | 24 XEN_GUEST_HANDLE_PARAM(void) arg); 64 XEN_GUEST_HANDLE_PARAM(void) arg); 82 XEN_GUEST_HANDLE_PARAM(void) arg); 105 XEN_GUEST_HANDLE_PARAM(void) arg); 111 XEN_GUEST_HANDLE_PARAM(void) arg); 116 XEN_GUEST_HANDLE_PARAM(void) arg); 121 XEN_GUEST_HANDLE_PARAM(void) arg); 168 XEN_GUEST_HANDLE_PARAM(void) arg); 180 XEN_GUEST_HANDLE_PARAM(void) arg); 188 XEN_GUEST_HANDLE_PARAM(void) arg); [all …]
|
/xen/tools/hotplug/Linux/ |
A D | xen-script-common.sh | 23 for arg in "$@" 25 if expr 'index' "$arg" '=' '>' '1' >/dev/null 27 eval "$arg" 35 for arg in "$@" 37 if ! expr 'index' "$arg" '=' >/dev/null 39 command="$arg"
|
/xen/xen/include/asm-x86/guest/ |
A D | xen-hcall.h | 96 static inline long xen_hypercall_sched_op(unsigned int cmd, void *arg) in xen_hypercall_sched_op() argument 98 return _hypercall64_2(long, __HYPERVISOR_sched_op, cmd, arg); in xen_hypercall_sched_op() 101 static inline long xen_hypercall_memory_op(unsigned int cmd, void *arg) in xen_hypercall_memory_op() argument 103 return _hypercall64_2(long, __HYPERVISOR_memory_op, cmd, arg); in xen_hypercall_memory_op() 107 void *arg) in xen_hypercall_vcpu_op() argument 109 return _hypercall64_3(long, __HYPERVISOR_vcpu_op, cmd, vcpu, arg); in xen_hypercall_vcpu_op() 112 static inline long xen_hypercall_event_channel_op(unsigned int cmd, void *arg) in xen_hypercall_event_channel_op() argument 114 return _hypercall64_2(long, __HYPERVISOR_event_channel_op, cmd, arg); in xen_hypercall_event_channel_op() 117 static inline long xen_hypercall_grant_table_op(unsigned int cmd, void *arg, in xen_hypercall_grant_table_op() argument 123 static inline long xen_hypercall_hvm_op(unsigned int op, void *arg) in xen_hypercall_hvm_op() argument [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | hypercall.h | 121 int cmd, void *arg) in hypercall_sched_op() argument 123 return _hypercall2(int, sched_op, cmd, arg); in hypercall_sched_op() 128 unsigned int cmd, void *arg) in hypercall_memory_op() argument 130 return _hypercall2(int, memory_op, cmd, arg); in hypercall_memory_op() 142 int cmd, void *arg) in hypercall_event_channel_op() argument 144 return _hypercall2(int, event_channel_op, cmd, arg); in hypercall_event_channel_op() 149 int cmd, void *arg) in hypercall_xen_version() argument 151 return _hypercall2(int, xen_version, cmd, arg); in hypercall_xen_version() 177 int cmd, void *arg) in hypercall_hvm_op() argument 179 return _hypercall2(int, hvm_op, cmd, arg); in hypercall_hvm_op()
|
/xen/xen/include/asm-x86/ |
A D | indirect_thunk_asm.h | 16 .macro INDIRECT_BRANCH insn:req arg:req 40 \insn *\arg 45 .macro INDIRECT_CALL arg:req 46 INDIRECT_BRANCH call \arg 49 .macro INDIRECT_JMP arg:req 50 INDIRECT_BRANCH jmp \arg
|
A D | hypercall.h | 53 int cmd, unsigned long arg); 104 int cmd, XEN_GUEST_HANDLE_PARAM(void) arg); 121 int cmd, XEN_GUEST_HANDLE_PARAM(const_void) arg); 146 XEN_GUEST_HANDLE_PARAM(void) arg); 150 int cmd, struct vcpu *v, XEN_GUEST_HANDLE_PARAM(void) arg); 153 XEN_GUEST_HANDLE_PARAM(void) arg, 162 int cmd, XEN_GUEST_HANDLE(void) arg); 181 extern int compat_nmi_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) arg);
|
/xen/xen/arch/x86/ |
A D | hypercall.c | 105 unsigned long arg; in hypercall_create_continuation() local 128 arg = NEXT_ARG(p, args); in hypercall_create_continuation() 131 case 0: regs->rdi = arg; break; in hypercall_create_continuation() 132 case 1: regs->rsi = arg; break; in hypercall_create_continuation() 133 case 2: regs->rdx = arg; break; in hypercall_create_continuation() 134 case 3: regs->r10 = arg; break; in hypercall_create_continuation() 135 case 4: regs->r8 = arg; break; in hypercall_create_continuation() 136 case 5: regs->r9 = arg; break; in hypercall_create_continuation() 144 arg = NEXT_ARG(p, args); in hypercall_create_continuation() 147 case 0: regs->rbx = arg; break; in hypercall_create_continuation() [all …]
|
A D | physdev.c | 190 if ( copy_from_guest(&eoi, arg, 1) != 0 ) in do_physdev_op() 228 if ( copy_from_guest(&info, arg, 1) != 0 ) in do_physdev_op() 308 if ( copy_from_guest(&map, arg, 1) != 0 ) in do_physdev_op() 337 if ( __copy_to_guest(arg, &map, 1) ) in do_physdev_op() 362 if ( __copy_to_guest(arg, &apic, 1) ) in do_physdev_op() 399 if ( __copy_to_guest(arg, &irq_op, 1) ) in do_physdev_op() 489 if ( copy_from_guest(&add, arg, 1) != 0 ) in do_physdev_op() 524 if ( copy_from_guest(&dev, arg, 1) != 0 ) in do_physdev_op() 535 if ( copy_from_guest(&dev, arg, 1) ) in do_physdev_op() 554 if ( copy_from_guest(&info, arg, 1) ) in do_physdev_op() [all …]
|
/xen/stubdom/grub.patches/ |
A D | 30savedefault.diff | 7 static int configfile_func (char *arg, int flags); 9 +static int savedefault_helper (char *arg, int flags); 11 +static int savedefault_shell (char *arg, int flags); 18 savedefault_func (char *arg, int flags) 23 + return savedefault_helper(arg, flags); 25 + return savedefault_shell(arg, flags); 36 +savedefault_shell(char *arg, int flags) 54 + char *p = arg + sizeof ("--default=") - 1; 57 + arg = skip_to (0, arg); 62 + arg = skip_to (0, arg); [all …]
|
/xen/tools/libxl/ |
A D | libxl_save_msgs_gen.pl | 283 my ($argtype, $arg); 284 while (($argtype, $arg, @args) = @args) { 286 my $c_args = "$arg"; 287 my $c_get_args = "&$arg"; 289 $c_decl .= "const char *$arg, "; 290 $f_more_sr->(" const char *$arg;\n"); 292 $c_decl .= "const uint8_t *$arg, uint32_t ${arg}_size, "; 293 $c_args .= ", ${arg}_size"; 294 $c_get_args .= ", &${arg}_size"; 298 $c_decl .= "$argtype $arg, "; [all …]
|
A D | gentest.py | 262 arg = ty.typename + "_val" variable 264 ty.pass_arg(arg, isref=False, passby=idl.PASS_BY_REFERENCE))) 272 (ty.typename, ty.pass_arg(arg, isref=False))) 279 (ty.typename, ty.pass_arg(arg, isref=False))) 301 arg = ty.typename + "_val" variable 303 ty.pass_arg(arg, isref=False, passby=idl.PASS_BY_REFERENCE))) 305 ty.pass_arg(arg, isref=False, passby=idl.PASS_BY_REFERENCE))) 307 ty.pass_arg(arg, isref=False, passby=idl.PASS_BY_REFERENCE))) 310 ty.pass_arg(arg, isref=False, passby=idl.PASS_BY_REFERENCE))) 312 (ty.typename, ty.pass_arg(arg, isref=False))) [all …]
|
/xen/xen/common/compat/ |
A D | domain.c | 36 int compat_vcpu_op(int cmd, unsigned int vcpuid, XEN_GUEST_HANDLE_PARAM(void) arg) in compat_vcpu_op() argument 56 if ( copy_from_guest(&ctxt, arg, 1) ) in compat_vcpu_op() 70 if ( copy_from_guest(ctxt, arg, 1) ) in compat_vcpu_op() 85 cmd, vcpuid, arg); in compat_vcpu_op() 98 rc = do_vcpu_op(cmd, vcpuid, arg); in compat_vcpu_op() 110 if ( copy_to_guest(arg, &runstate.cmp, 1) ) in compat_vcpu_op() 120 if ( copy_from_guest(&cmp, arg, 1) ) in compat_vcpu_op() 129 rc = arch_compat_vcpu_op(cmd, v, arg); in compat_vcpu_op()
|
/xen/xen/arch/x86/x86_64/compat/ |
A D | mm.c | 27 if ( copy_from_guest(&cmp, arg, 1) ) in compat_arch_memory_op() 46 if ( copy_from_guest(&cmp, arg, 1) ) in compat_arch_memory_op() 61 if ( __copy_to_guest(arg, &cmp, 1) ) in compat_arch_memory_op() 73 if ( copy_from_guest(&cmp, arg, 1) ) in compat_arch_memory_op() 83 hypercall_xlat_continuation(NULL, 2, 0x2, nat, arg); in compat_arch_memory_op() 87 if ( __copy_to_guest(arg, &cmp, 1) ) in compat_arch_memory_op() 106 if ( copy_to_guest(arg, &mapping, 1) ) in compat_arch_memory_op() 118 if ( copy_from_guest(&xmml, arg, 1) ) in compat_arch_memory_op() 140 if ( __copy_to_guest(arg, &xmml, 1) ) in compat_arch_memory_op() 171 int compat_mmuext_op(XEN_GUEST_HANDLE_PARAM(void) arg, in compat_mmuext_op() argument [all …]
|
/xen/tools/pygrub/src/ |
A D | GrubConf.py | 145 (com, arg) = grub_exact_split(line, 2) 218 (com, arg) = grub_exact_split(line, 2) 320 def grub2_handle_set(arg): argument 321 (com,arg) = grub_split(arg,2) 323 m = re.match("([\"\'])(.*)\\1", arg) 325 arg=m.group(2) 326 return (com,arg) 333 (com, arg) = grub_exact_split(line, 2) 336 (com,arg) = grub2_handle_set(arg) 436 (com,arg) = grub2_handle_set(arg) [all …]
|
A D | ExtLinuxConf.py | 41 (com, arg) = GrubConf.grub_exact_split(line, 2) 51 modules = arg.split("---") 65 elif "initrd=" in arg: 67 args = arg.strip().split(" ") 71 arg = arg.replace(a, "") 75 setattr(self, self.commands[com], re.sub('^"(.+)"$', r"\1", arg.strip())) 171 (com, arg) = GrubConf.grub_exact_split(l, 2) 175 setattr(self, self.commands[com], arg.strip())
|
/xen/xen/arch/x86/oprofile/ |
A D | xenoprof.c | 20 int xenoprof_arch_counter(XEN_GUEST_HANDLE_PARAM(void) arg) in xenoprof_arch_counter() argument 24 if ( copy_from_guest(&counter, arg, 1) ) in xenoprof_arch_counter() 40 int xenoprof_arch_ibs_counter(XEN_GUEST_HANDLE_PARAM(void) arg) in xenoprof_arch_ibs_counter() argument 44 if ( copy_from_guest(&ibs_counter, arg, 1) ) in xenoprof_arch_ibs_counter() 57 int compat_oprof_arch_counter(XEN_GUEST_HANDLE_PARAM(void) arg) in compat_oprof_arch_counter() argument 61 if ( copy_from_guest(&counter, arg, 1) ) in compat_oprof_arch_counter()
|
/xen/xen/common/ |
A D | mem_access.c | 32 XEN_GUEST_HANDLE_PARAM(xen_mem_access_op_t) arg) in mem_access_memop() 39 if ( copy_from_guest(&mao, arg, 1) ) in mem_access_memop() 75 XENMEM_access_op | rc, arg); in mem_access_memop() 86 XENMEM_access_op | rc, arg); in mem_access_memop() 107 rc = __copy_field_to_guest(arg, &mao, access) ? -EFAULT : 0; in mem_access_memop()
|
A D | kernel.c | 458 DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) in DO() 487 if ( copy_to_guest(arg, &info, 1) ) in DO() 500 if ( copy_to_guest(arg, info, ARRAY_SIZE(info)) ) in DO() 511 if ( copy_to_guest(arg, ¶ms, 1) ) in DO() 523 if ( copy_to_guest(arg, chgset, ARRAY_SIZE(chgset)) ) in DO() 533 if ( copy_from_guest(&fi, arg, 1) ) in DO() 566 if ( __copy_to_guest(arg, &fi, 1) ) in DO() 574 return (!guest_handle_is_null(arg) ? -EINVAL : PAGE_SIZE); in DO() 614 if ( !guest_handle_is_null(arg) ) in DO() 616 if ( copy_from_guest(&build_id, arg, 1) ) in DO() [all …]
|
/xen/xen/arch/arm/ |
A D | hvm.c | 85 long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg) in do_hvm_op() argument 97 if ( copy_from_guest(&a, arg, 1) ) in do_hvm_op() 123 rc = copy_to_guest(arg, &a, 1) ? -EFAULT : 0; in do_hvm_op() 132 if ( guest_handle_is_null(arg) ) in do_hvm_op()
|
A D | domain.c | 409 unsigned long arg, rc; in hypercall_create_continuation() local 436 arg = NEXT_ARG(p, args); in hypercall_create_continuation() 440 case 0: regs->x0 = arg; break; in hypercall_create_continuation() 441 case 1: regs->x1 = arg; break; in hypercall_create_continuation() 442 case 2: regs->x2 = arg; break; in hypercall_create_continuation() 443 case 3: regs->x3 = arg; break; in hypercall_create_continuation() 444 case 4: regs->x4 = arg; break; in hypercall_create_continuation() 445 case 5: regs->x5 = arg; break; in hypercall_create_continuation() 459 arg = NEXT_ARG(p, args); in hypercall_create_continuation() 463 case 0: regs->r0 = arg; break; in hypercall_create_continuation() [all …]
|
/xen/xen/arch/x86/pv/ |
A D | callback.c | 144 long do_callback_op(int cmd, XEN_GUEST_HANDLE_PARAM(const_void) arg) in do_callback_op() argument 155 if ( copy_from_guest(®, arg, 1) ) in do_callback_op() 167 if ( copy_from_guest(&unreg, arg, 1) ) in do_callback_op() 282 long compat_callback_op(int cmd, XEN_GUEST_HANDLE(void) arg) in compat_callback_op() argument 293 if ( copy_from_guest(®, arg, 1) ) in compat_callback_op() 305 if ( copy_from_guest(&unreg, arg, 1) ) in compat_callback_op() 433 long do_nmi_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) in do_nmi_op() argument 442 if ( copy_from_guest(&cb, arg, 1) ) in do_nmi_op() 458 int compat_nmi_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) in compat_nmi_op() argument 467 if ( copy_from_guest(&cb, arg, 1) ) in compat_nmi_op()
|
/xen/tools/libs/call/ |
A D | core.c | 113 .arg = { arg1 }, in xencall1() 124 .arg = { arg1, arg2 }, in xencall2() 135 .arg = { arg1, arg2, arg3}, in xencall3() 147 .arg = { arg1, arg2, arg3, arg4 }, in xencall4() 159 .arg = { arg1, arg2, arg3, arg4, arg5 }, in xencall5()
|