aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domctl.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-01-10 17:27:58 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-01-10 17:27:58 +0000
commit58f88f9eb2f2b16f1870c592c3310593039096e8 (patch)
tree8e8eaf17808e9a4e348ab11c928c35a8898a68a0 /xen/common/domctl.c
parent408a9e56343b006c9e58a334f0b97dd2deedf9ac (diff)
downloadxen-58f88f9eb2f2b16f1870c592c3310593039096e8.tar.gz
xen-58f88f9eb2f2b16f1870c592c3310593039096e8.tar.bz2
xen-58f88f9eb2f2b16f1870c592c3310593039096e8.zip
xsm: Use the dummy XSM module if XSM is disabled
This patch moves the implementation of the dummy XSM module to a header file that provides inline functions when XSM_ENABLE is not defined. This reduces duplication between the dummy module and callers when the implementation of the dummy return is not just "return 0", and also provides better compile-time checking for completeness of the XSM implementations in the dummy module. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r--xen/common/domctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c
index ca789bb8f3..05d9c55cd7 100644
--- a/xen/common/domctl.c
+++ b/xen/common/domctl.c
@@ -279,10 +279,8 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
}
break;
}
-#ifdef XSM_ENABLE
case XEN_DOMCTL_getdomaininfo:
break;
-#endif
default:
if ( !IS_PRIV(current->domain) )
return -EPERM;