diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2013-01-11 10:42:30 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2013-01-11 10:42:30 +0000 |
commit | 51353955ad6ce6eb180bccab9ea6bf308c293f82 (patch) | |
tree | 640a3c9ffd98760f075ee0d543b0d441b4e847f7 /xen/include/xsm | |
parent | 652f94327383c5517b709f0a3e4b970216b3d375 (diff) | |
download | xen-51353955ad6ce6eb180bccab9ea6bf308c293f82.tar.gz xen-51353955ad6ce6eb180bccab9ea6bf308c293f82.tar.bz2 xen-51353955ad6ce6eb180bccab9ea6bf308c293f82.zip |
xen: sysctl XSM hook removal
A number of the sysctl XSM hooks have no parameters or only pass the
operation ID, making them redundant with the xsm_sysctl hook. Remove
these redundant hooks.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xsm')
-rw-r--r-- | xen/include/xsm/dummy.h | 50 | ||||
-rw-r--r-- | xen/include/xsm/xsm.h | 62 |
2 files changed, 1 insertions, 111 deletions
diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h index 2b18f512ab..64124a876d 100644 --- a/xen/include/xsm/dummy.h +++ b/xen/include/xsm/dummy.h @@ -58,41 +58,16 @@ static XSM_INLINE int xsm_sysctl(int cmd) return 0; } -static XSM_INLINE int xsm_tbufcontrol(void) -{ - return 0; -} - static XSM_INLINE int xsm_readconsole(uint32_t clear) { return 0; } -static XSM_INLINE int xsm_sched_id(void) -{ - return 0; -} - -static XSM_INLINE int xsm_perfcontrol(void) -{ - return 0; -} - -static XSM_INLINE int xsm_debug_keys(void) -{ - return 0; -} - static XSM_INLINE int xsm_getcpuinfo(void) { return 0; } -static XSM_INLINE int xsm_get_pmstat(void) -{ - return 0; -} - static XSM_INLINE int xsm_setpminfo(void) { return 0; @@ -110,11 +85,6 @@ static XSM_INLINE int xsm_do_mca(void) return 0; } -static XSM_INLINE int xsm_availheap(void) -{ - return 0; -} - static XSM_INLINE int xsm_alloc_security_domain(struct domain *d) { return 0; @@ -353,21 +323,6 @@ static XSM_INLINE int xsm_page_offline(uint32_t cmd) return 0; } -static XSM_INLINE int xsm_lockprof(void) -{ - return 0; -} - -static XSM_INLINE int xsm_cpupool_op(void) -{ - return 0; -} - -static XSM_INLINE int xsm_sched_op(void) -{ - return 0; -} - static XSM_INLINE long xsm_do_xsm_op(XEN_GUEST_HANDLE_PARAM(xsm_op_t) op) { return -ENOSYS; @@ -496,11 +451,6 @@ static XSM_INLINE int xsm_microcode(void) return 0; } -static XSM_INLINE int xsm_physinfo(void) -{ - return 0; -} - static XSM_INLINE int xsm_platform_quirk(uint32_t quirk) { return 0; diff --git a/xen/include/xsm/xsm.h b/xen/include/xsm/xsm.h index 4676c75551..5eeaced3a8 100644 --- a/xen/include/xsm/xsm.h +++ b/xen/include/xsm/xsm.h @@ -46,14 +46,8 @@ struct xsm_operations { int (*set_target) (struct domain *d, struct domain *e); int (*domctl) (struct domain *d, int cmd); int (*sysctl) (int cmd); - int (*tbufcontrol) (void); int (*readconsole) (uint32_t clear); - int (*sched_id) (void); - int (*perfcontrol) (void); - int (*debug_keys) (void); int (*getcpuinfo) (void); - int (*availheap) (void); - int (*get_pmstat) (void); int (*setpminfo) (void); int (*pm_op) (void); int (*do_mca) (void); @@ -116,9 +110,6 @@ struct xsm_operations { int (*resource_setup_misc) (void); int (*page_offline)(uint32_t cmd); - int (*lockprof)(void); - int (*cpupool_op)(void); - int (*sched_op)(void); long (*do_xsm_op) (XEN_GUEST_HANDLE_PARAM(xsm_op_t) op); @@ -136,7 +127,6 @@ struct xsm_operations { int (*xen_settime) (void); int (*memtype) (uint32_t access); int (*microcode) (void); - int (*physinfo) (void); int (*platform_quirk) (uint32_t); int (*platform_op) (uint32_t cmd); int (*firmware_info) (void); @@ -199,46 +189,16 @@ static inline int xsm_sysctl (int cmd) return xsm_ops->sysctl(cmd); } -static inline int xsm_tbufcontrol (void) -{ - return xsm_ops->tbufcontrol(); -} - static inline int xsm_readconsole (uint32_t clear) { return xsm_ops->readconsole(clear); } -static inline int xsm_sched_id (void) -{ - return xsm_ops->sched_id(); -} - -static inline int xsm_perfcontrol (void) -{ - return xsm_ops->perfcontrol(); -} - -static inline int xsm_debug_keys (void) -{ - return xsm_ops->debug_keys(); -} - -static inline int xsm_availheap (void) -{ - return xsm_ops->availheap(); -} - -static inline int xsm_getcpuinfo (void) +static inline int xsm_getcpuinfo(void) { return xsm_ops->getcpuinfo(); } -static inline int xsm_get_pmstat(void) -{ - return xsm_ops->get_pmstat(); -} - static inline int xsm_setpminfo(void) { return xsm_ops->setpminfo(); @@ -495,21 +455,6 @@ static inline int xsm_page_offline(uint32_t cmd) return xsm_ops->page_offline(cmd); } -static inline int xsm_lockprof(void) -{ - return xsm_ops->lockprof(); -} - -static inline int xsm_cpupool_op(void) -{ - return xsm_ops->cpupool_op(); -} - -static inline int xsm_sched_op(void) -{ - return xsm_ops->sched_op(); -} - static inline long xsm_do_xsm_op (XEN_GUEST_HANDLE_PARAM(xsm_op_t) op) { return xsm_ops->do_xsm_op(op); @@ -581,11 +526,6 @@ static inline int xsm_microcode (void) return xsm_ops->microcode(); } -static inline int xsm_physinfo (void) -{ - return xsm_ops->physinfo(); -} - static inline int xsm_platform_quirk (uint32_t quirk) { return xsm_ops->platform_quirk(quirk); |