Lines Matching refs:arg
30 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_get_domain_state()
32 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_get_domain_state()
33 if ( arg == NULL ) in xc_altp2m_get_domain_state()
36 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_get_domain_state()
37 arg->cmd = HVMOP_altp2m_get_domain_state; in xc_altp2m_get_domain_state()
38 arg->domain = dom; in xc_altp2m_get_domain_state()
41 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_get_domain_state()
44 *state = arg->u.domain_state.state; in xc_altp2m_get_domain_state()
46 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_get_domain_state()
53 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_set_domain_state()
55 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_domain_state()
56 if ( arg == NULL ) in xc_altp2m_set_domain_state()
59 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_set_domain_state()
60 arg->cmd = HVMOP_altp2m_set_domain_state; in xc_altp2m_set_domain_state()
61 arg->domain = dom; in xc_altp2m_set_domain_state()
62 arg->u.domain_state.state = state; in xc_altp2m_set_domain_state()
65 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_set_domain_state()
67 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_set_domain_state()
76 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_set_vcpu_enable_notify()
78 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_vcpu_enable_notify()
79 if ( arg == NULL ) in xc_altp2m_set_vcpu_enable_notify()
82 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_set_vcpu_enable_notify()
83 arg->cmd = HVMOP_altp2m_vcpu_enable_notify; in xc_altp2m_set_vcpu_enable_notify()
84 arg->domain = domid; in xc_altp2m_set_vcpu_enable_notify()
85 arg->u.enable_notify.vcpu_id = vcpuid; in xc_altp2m_set_vcpu_enable_notify()
86 arg->u.enable_notify.gfn = gfn; in xc_altp2m_set_vcpu_enable_notify()
89 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_set_vcpu_enable_notify()
91 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_set_vcpu_enable_notify()
99 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_create_view()
101 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_create_view()
102 if ( arg == NULL ) in xc_altp2m_create_view()
105 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_create_view()
106 arg->cmd = HVMOP_altp2m_create_p2m; in xc_altp2m_create_view()
107 arg->domain = domid; in xc_altp2m_create_view()
108 arg->u.view.view = -1; in xc_altp2m_create_view()
109 arg->u.view.hvmmem_default_access = default_access; in xc_altp2m_create_view()
112 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_create_view()
115 *view_id = arg->u.view.view; in xc_altp2m_create_view()
117 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_create_view()
125 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_destroy_view()
127 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_destroy_view()
128 if ( arg == NULL ) in xc_altp2m_destroy_view()
131 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_destroy_view()
132 arg->cmd = HVMOP_altp2m_destroy_p2m; in xc_altp2m_destroy_view()
133 arg->domain = domid; in xc_altp2m_destroy_view()
134 arg->u.view.view = view_id; in xc_altp2m_destroy_view()
137 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_destroy_view()
139 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_destroy_view()
148 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_switch_to_view()
150 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_switch_to_view()
151 if ( arg == NULL ) in xc_altp2m_switch_to_view()
154 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_switch_to_view()
155 arg->cmd = HVMOP_altp2m_switch_p2m; in xc_altp2m_switch_to_view()
156 arg->domain = domid; in xc_altp2m_switch_to_view()
157 arg->u.view.view = view_id; in xc_altp2m_switch_to_view()
160 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_switch_to_view()
162 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_switch_to_view()
171 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_set_mem_access()
173 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_set_mem_access()
174 if ( arg == NULL ) in xc_altp2m_set_mem_access()
177 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_set_mem_access()
178 arg->cmd = HVMOP_altp2m_set_mem_access; in xc_altp2m_set_mem_access()
179 arg->domain = domid; in xc_altp2m_set_mem_access()
180 arg->u.set_mem_access.view = view_id; in xc_altp2m_set_mem_access()
181 arg->u.set_mem_access.hvmmem_access = access; in xc_altp2m_set_mem_access()
182 arg->u.set_mem_access.gfn = gfn; in xc_altp2m_set_mem_access()
185 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_set_mem_access()
187 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_set_mem_access()
196 DECLARE_HYPERCALL_BUFFER(xen_hvm_altp2m_op_t, arg); in xc_altp2m_change_gfn()
198 arg = xc_hypercall_buffer_alloc(handle, arg, sizeof(*arg)); in xc_altp2m_change_gfn()
199 if ( arg == NULL ) in xc_altp2m_change_gfn()
202 arg->version = HVMOP_ALTP2M_INTERFACE_VERSION; in xc_altp2m_change_gfn()
203 arg->cmd = HVMOP_altp2m_change_gfn; in xc_altp2m_change_gfn()
204 arg->domain = domid; in xc_altp2m_change_gfn()
205 arg->u.change_gfn.view = view_id; in xc_altp2m_change_gfn()
206 arg->u.change_gfn.old_gfn = old_gfn; in xc_altp2m_change_gfn()
207 arg->u.change_gfn.new_gfn = new_gfn; in xc_altp2m_change_gfn()
210 HYPERCALL_BUFFER_AS_ARG(arg)); in xc_altp2m_change_gfn()
212 xc_hypercall_buffer_free(handle, arg); in xc_altp2m_change_gfn()