ia64/xen-unstable

view xen/acm/acm_null_hooks.c @ 5704:9b73afea874e

Certain types of event channel are now auto-bound to vcpu0 by Xen.
Make sure that xenolinux agrees with this.
author sos22@douglas.cl.cam.ac.uk
date Fri Jul 08 15:35:43 2005 +0000 (2005-07-08)
parents 53cd28bdd477
children 0161d68cff37 291e816acbf4 b2f4823b6ff0
line source
1 /****************************************************************
2 * acm_null_hooks.c
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 #include <acm/acm_hooks.h>
16 static int
17 null_init_domain_ssid(void **chwall_ssid, ssidref_t ssidref)
18 {
19 return ACM_OK;
20 }
22 static void
23 null_free_domain_ssid(void *chwall_ssid)
24 {
25 return;
26 }
28 static int
29 null_dump_binary_policy(u8 *buf, u16 buf_size)
30 {
31 return 0;
32 }
34 static int
35 null_set_binary_policy(u8 *buf, u16 buf_size)
36 {
37 return ACM_OK;
38 }
40 static int
41 null_dump_stats(u8 *buf, u16 buf_size)
42 {
43 /* no stats for NULL policy */
44 return 0;
45 }
47 /* now define the hook structure similarly to LSM */
48 struct acm_operations acm_null_ops = {
49 .init_domain_ssid = null_init_domain_ssid,
50 .free_domain_ssid = null_free_domain_ssid,
51 .dump_binary_policy = null_dump_binary_policy,
52 .set_binary_policy = null_set_binary_policy,
53 .dump_statistics = null_dump_stats,
54 /* domain management control hooks */
55 .pre_domain_create = NULL,
56 .post_domain_create = NULL,
57 .fail_domain_create = NULL,
58 .post_domain_destroy = NULL,
59 /* event channel control hooks */
60 .pre_eventchannel_unbound = NULL,
61 .fail_eventchannel_unbound = NULL,
62 .pre_eventchannel_interdomain = NULL,
63 .fail_eventchannel_interdomain = NULL,
64 /* grant table control hooks */
65 .pre_grant_map_ref = NULL,
66 .fail_grant_map_ref = NULL,
67 .pre_grant_setup = NULL,
68 .fail_grant_setup = NULL
69 };