[XSM][FLASK] Remove unused code from XSM and Flask
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jul 2008 08:42:30 +0000 (09:42 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jul 2008 08:42:30 +0000 (09:42 +0100)
The complete_init hook has been unused since the introduction of the
create secure interface for domain_create.

Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c

index 3b495cc052f255878a7e6d6d5be965711125c193..7277e18c999b4507114435d01771b5d73b5db0b8 100644 (file)
@@ -108,7 +108,6 @@ struct xsm_operations {
     int (*schedop_shutdown) (struct domain *d1, struct domain *d2);
 
     long (*__do_xsm_op) (XEN_GUEST_HANDLE(xsm_op_t) op);
-    void (*complete_init) (struct domain *d);
 
 #ifdef CONFIG_X86
     int (*shadow_control) (struct domain *d, uint32_t op);
@@ -392,11 +391,6 @@ static inline long __do_xsm_op (XEN_GUEST_HANDLE(xsm_op_t) op)
     return xsm_call(__do_xsm_op(op));
 }
 
-static inline void xsm_complete_init (struct domain *d)
-{
-    xsm_call(complete_init(d));
-}
-
 #ifdef XSM_ENABLE
 extern int xsm_init(unsigned int *initrdidx, const multiboot_info_t *mbi,
                                           unsigned long initial_images_start);
index 0caa487f753f8a5480419f715e7b11a68177cb21..b9ff510b42138f793752e99dc991c747a2b0de28 100644 (file)
@@ -254,11 +254,6 @@ static void dummy_free_security_evtchn (struct evtchn *chn)
     return;
 }
 
-static void dummy_complete_init (struct domain *d)
-{
-    return;
-}
-
 static long dummy___do_xsm_op(XEN_GUEST_HANDLE(xsm_op_t) op)
 {
     return -ENOSYS;
@@ -462,7 +457,6 @@ void xsm_fixup_ops (struct xsm_operations *ops)
     set_to_dummy_if_null(ops, schedop_shutdown);
 
     set_to_dummy_if_null(ops, __do_xsm_op);
-    set_to_dummy_if_null(ops, complete_init);
 
 #ifdef CONFIG_X86
     set_to_dummy_if_null(ops, shadow_control);
index 6ebe1eab48234e6d0fe6c49b855f82dd3c3e6e97..a7553c12502bf9d57ca7a02fff2411ac7aa530de 100644 (file)
@@ -714,18 +714,6 @@ static int flask_perfcontrol(void)
     return domain_has_xen(current->domain, XEN__PERFCONTROL);
 }
 
-void flask_complete_init(struct domain *d)
-{
-    struct domain_security_struct *dsec;
-
-    /* Set the security state for the Dom0 domain. */
-    dsec = d->ssid;
-    dsec->sid = SECINITSID_DOM0;
-    dsec->create_sid = SECINITSID_UNLABELED;
-
-    printk("Flask:  Completed initialization.\n");
-}
-
 #ifdef CONFIG_X86
 static int flask_shadow_control(struct domain *d, uint32_t op)
 {
@@ -1101,7 +1089,6 @@ static struct xsm_operations flask_ops = {
     .schedop_shutdown = flask_schedop_shutdown,
 
     .__do_xsm_op = do_flask_op,
-    .complete_init = flask_complete_init,    
 
 #ifdef CONFIG_X86
     .shadow_control = flask_shadow_control,