ia64/xen-unstable

view xen/include/public/policy_ops.h @ 5755:be1153585cb0

Fix hgignore regexps some more.
author kaf24@firebug.cl.cam.ac.uk
date Tue Jul 12 16:19:59 2005 +0000 (2005-07-12)
parents 2b6c1a809807
children
line source
1 /******************************************************************************
2 * policy_ops.h
3 *
4 * Copyright (C) 2005 IBM Corporation
5 *
6 * Author:
7 * Reiner Sailer <sailer@watson.ibm.com>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation, version 2 of the
12 * License.
13 *
14 * Process policy command requests from guest OS.
15 * access checked by policy; not restricted to DOM0
16 *
17 */
19 #ifndef __XEN_PUBLIC_POLICY_OPS_H__
20 #define __XEN_PUBLIC_POLICY_OPS_H__
22 #include "xen.h"
23 #include "sched_ctl.h"
25 /*
26 * Make sure you increment the interface version whenever you modify this file!
27 * This makes sure that old versions of policy tools will stop working in a
28 * well-defined way (rather than crashing the machine, for instance).
29 */
30 #define POLICY_INTERFACE_VERSION 0xAAAA0003
32 /************************************************************************/
34 #define POLICY_SETPOLICY 4
35 typedef struct policy_setpolicy {
36 /* IN variables. */
37 u16 policy_type;
38 /* OUT variables */
39 void *pushcache;
40 u16 pushcache_size;
41 } policy_setpolicy_t;
44 #define POLICY_GETPOLICY 5
45 typedef struct policy_getpolicy {
46 /* IN variables. */
47 u16 policy_type;
48 /* OUT variables */
49 void *pullcache;
50 u16 pullcache_size;
51 } policy_getpolicy_t;
53 #define POLICY_DUMPSTATS 6
54 typedef struct policy_dumpstats {
55 void *pullcache;
56 u16 pullcache_size;
57 } policy_dumpstats_t;
60 typedef struct policy_op {
61 u32 cmd;
62 u32 interface_version; /* POLICY_INTERFACE_VERSION */
63 union {
64 policy_setpolicy_t setpolicy;
65 policy_getpolicy_t getpolicy;
66 policy_dumpstats_t dumpstats;
67 } u;
68 } policy_op_t;
70 #endif /* __XEN_PUBLIC_POLICY_OPS_H__ */