direct-io.hg

view xen/include/xen/hypercall.h @ 10057:0f16f0871dc9

[ACM] Replace the union structure parameter of the ACM hypercalls
with command-specific request structures. It aligns the ACM
hypercalls with the way parameters are passed in the event channel
hypercalls.

Advantages include backward-compatibility regarding old guests when
new calls are added and clarity of the code.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun May 21 19:05:31 2006 +0100 (2006-05-21)
parents 42a8e3101c6c
children b33c08de3d98
line source
1 /******************************************************************************
2 * hypercall.h
3 */
5 #ifndef __XEN_HYPERCALL_H__
6 #define __XEN_HYPERCALL_H__
8 #include <xen/config.h>
9 #include <xen/types.h>
10 #include <xen/time.h>
11 #include <public/xen.h>
12 #include <public/dom0_ops.h>
13 #include <public/acm_ops.h>
14 #include <public/event_channel.h>
15 #include <asm/hypercall.h>
17 extern long
18 do_ni_hypercall(
19 void);
21 extern long
22 do_sched_op_compat(
23 int cmd,
24 unsigned long arg);
26 extern long
27 do_sched_op(
28 int cmd,
29 XEN_GUEST_HANDLE(void) arg);
31 extern long
32 do_dom0_op(
33 XEN_GUEST_HANDLE(dom0_op_t) u_dom0_op);
35 extern long
36 do_memory_op(
37 int cmd,
38 XEN_GUEST_HANDLE(void) arg);
40 extern long
41 do_multicall(
42 XEN_GUEST_HANDLE(multicall_entry_t) call_list,
43 unsigned int nr_calls);
45 extern long
46 do_set_timer_op(
47 s_time_t timeout);
49 extern long
50 do_event_channel_op(
51 int cmd, XEN_GUEST_HANDLE(void) arg);
53 extern long
54 do_xen_version(
55 int cmd,
56 XEN_GUEST_HANDLE(void) arg);
58 extern long
59 do_console_io(
60 int cmd,
61 int count,
62 XEN_GUEST_HANDLE(char) buffer);
64 extern long
65 do_grant_table_op(
66 unsigned int cmd,
67 XEN_GUEST_HANDLE(void) uop,
68 unsigned int count);
70 extern long
71 do_vm_assist(
72 unsigned int cmd,
73 unsigned int type);
75 extern long
76 do_vcpu_op(
77 int cmd,
78 int vcpuid,
79 XEN_GUEST_HANDLE(void) arg);
81 extern long
82 do_acm_op(
83 int cmd, XEN_GUEST_HANDLE(void) arg);
85 extern long
86 do_nmi_op(
87 unsigned int cmd,
88 XEN_GUEST_HANDLE(void) arg);
90 #endif /* __XEN_HYPERCALL_H__ */