Remove unused code from XSM and Flask
PATCH 1/1 Remove unused code from XSM and Flask
The attached patch removes unused code from XSM and Flask. The complete_init hook has been unused since the introduction of the create secure interface for domain_create.
<Signed-off-by: George Coker, [email protected]>
Signature · 1 line
George S. Coker, II <[email protected]>
xen/include/xsm/xsm.h +0 -6
@@ -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_GUESreturn 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);
xen/xsm/dummy.c +0 -6
@@ -250,11 +250,6 @@ static int dummy_alloc_security_evtchn ( }static void dummy_free_security_evtchn (struct evtchn *chn) -{ -return ; -} - -static void dummy_complete_init (struct domain *d) {return ; }
@@ -457,7 +452,6 @@ void xsm_fixup_ops (struct xsm_operationset_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);
xen/xsm/flask/hooks.c +0 -13
@@ -712,18 +712,6 @@ static int flask_perfcontrol(void)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
@@ -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,
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel