ia64/xen-unstable

view xen/include/public/acm_ops.h @ 12938:b58670602d35

[POWERPC][XEN] Builtin cmdline dependency rule
Rebuild cmdline.o when the user changes the CMDLINE=X argument passed to
the make invocation. I couldn't find an example of another project that
handles this case properly, so I came up with this.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Thu Oct 05 15:48:26 2006 -0500 (2006-10-05)
parents 8d0e06c38c0c
children 4677ee247aa9
line source
1 /*
2 * acm_ops.h: Xen access control module hypervisor commands
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to
6 * deal in the Software without restriction, including without limitation the
7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 * sell copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 *
22 * Reiner Sailer <sailer@watson.ibm.com>
23 * Copyright (c) 2005,2006 International Business Machines Corporation.
24 */
26 #ifndef __XEN_PUBLIC_ACM_OPS_H__
27 #define __XEN_PUBLIC_ACM_OPS_H__
29 #include "xen.h"
30 #include "acm.h"
32 /*
33 * Make sure you increment the interface version whenever you modify this file!
34 * This makes sure that old versions of acm tools will stop working in a
35 * well-defined way (rather than crashing the machine, for instance).
36 */
37 #define ACM_INTERFACE_VERSION 0xAAAA0008
39 /************************************************************************/
41 /*
42 * Prototype for this hypercall is:
43 * int acm_op(int cmd, void *args)
44 * @cmd == ACMOP_??? (access control module operation).
45 * @args == Operation-specific extra arguments (NULL if none).
46 */
49 #define ACMOP_setpolicy 1
50 struct acm_setpolicy {
51 /* IN */
52 uint32_t interface_version;
53 XEN_GUEST_HANDLE(void) pushcache;
54 uint32_t pushcache_size;
55 };
58 #define ACMOP_getpolicy 2
59 struct acm_getpolicy {
60 /* IN */
61 uint32_t interface_version;
62 XEN_GUEST_HANDLE(void) pullcache;
63 uint32_t pullcache_size;
64 };
67 #define ACMOP_dumpstats 3
68 struct acm_dumpstats {
69 /* IN */
70 uint32_t interface_version;
71 XEN_GUEST_HANDLE(void) pullcache;
72 uint32_t pullcache_size;
73 };
76 #define ACMOP_getssid 4
77 #define ACM_GETBY_ssidref 1
78 #define ACM_GETBY_domainid 2
79 struct acm_getssid {
80 /* IN */
81 uint32_t interface_version;
82 uint32_t get_ssid_by; /* ACM_GETBY_* */
83 union {
84 domaintype_t domainid;
85 ssidref_t ssidref;
86 } id;
87 XEN_GUEST_HANDLE(void) ssidbuf;
88 uint32_t ssidbuf_size;
89 };
91 #define ACMOP_getdecision 5
92 struct acm_getdecision {
93 /* IN */
94 uint32_t interface_version;
95 uint32_t get_decision_by1; /* ACM_GETBY_* */
96 uint32_t get_decision_by2; /* ACM_GETBY_* */
97 union {
98 domaintype_t domainid;
99 ssidref_t ssidref;
100 } id1;
101 union {
102 domaintype_t domainid;
103 ssidref_t ssidref;
104 } id2;
105 uint32_t hook;
106 /* OUT */
107 uint32_t acm_decision;
108 };
110 #endif /* __XEN_PUBLIC_ACM_OPS_H__ */
112 /*
113 * Local variables:
114 * mode: C
115 * c-set-style: "BSD"
116 * c-basic-offset: 4
117 * tab-width: 4
118 * indent-tabs-mode: nil
119 * End:
120 */