24 #include <linux/module.h>
30 #include <asm/xen/hypervisor.h>
58 return xencomm_arch_hypercall_console_io
66 struct xencomm_handle *
desc;
71 return xencomm_arch_hypercall_event_channel_op(cmd, desc);
78 struct xencomm_handle *
desc;
84 return xencomm_arch_hypercall_xen_version(cmd, 0);
106 "%s: unknown version op %d\n", __func__, cmd);
114 return xencomm_arch_hypercall_xen_version(cmd, desc);
121 unsigned int argsize;
138 "%s: unknown physdev op %d\n", __func__, cmd);
142 return xencomm_arch_hypercall_physdev_op
147 xencommize_grant_table_op(
struct xencomm_mini **xc_area,
148 unsigned int cmd,
void *
op,
unsigned int count,
149 struct xencomm_handle **
desc)
151 struct xencomm_handle *desc1;
152 unsigned int argsize;
165 argsize =
sizeof(*setup);
211 struct xencomm_handle *desc;
214 rc = xencommize_grant_table_op(&xc_area, cmd, op, count, &desc);
218 return xencomm_arch_hypercall_grant_table_op(cmd, desc, count);
225 struct xencomm_handle *desc;
226 unsigned int argsize;
239 struct xencomm_handle *
ports;
257 return xencomm_arch_hypercall_sched_op(cmd, desc);
267 struct xencomm_handle *desc;
270 for (i = 0; i < nr_calls; i++) {
279 rc = xencommize_grant_table_op
282 mce->
args[2], &desc);
290 "%s: unhandled multicall op entry op %lu\n",
301 return xencomm_arch_hypercall_multicall(desc, nr_calls);
308 unsigned int argsize;
318 "%s: unknown callback op %d\n", __func__, cmd);
322 return xencomm_arch_hypercall_callback_op
327 xencommize_memory_reservation(
struct xencomm_mini *xc_area,
330 struct xencomm_handle *desc;
349 struct xencomm_handle *desc;
350 unsigned int argsize;
361 argsize =
sizeof(*xmr);
362 rc = xencommize_memory_reservation(xc_area, xmr);
385 rc = xencomm_arch_hypercall_memory_op(cmd, desc);
407 return xencomm_arch_hypercall_sched_op(
414 unsigned int argsize;
419 argsize =
sizeof(*arg);
422 sizeof(area->
addr.
v)));
431 return xencomm_arch_hypercall_vcpu_op(cmd, cpu,
438 return xencomm_arch_hypercall_opt_feature(