aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/config.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-14 08:54:58 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-14 08:54:58 +0100
commitfda49f9b3fbb29f2ed9e143bb77d74e76cede6a2 (patch)
tree4afd8bde326a295b81cb6e0017f1fef8378799c5 /xen/include/xen/config.h
parentae72c3f2af82a36195c44504bfa270426aff8aca (diff)
downloadxen-fda49f9b3fbb29f2ed9e143bb77d74e76cede6a2.tar.gz
xen-fda49f9b3fbb29f2ed9e143bb77d74e76cede6a2.tar.bz2
xen-fda49f9b3fbb29f2ed9e143bb77d74e76cede6a2.zip
Add build option to allow more hypercalls from stubdoms
Stubdoms need to be able to make all the passthrough related hypercalls on behalf of the guest (for now). Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/config.h')
-rw-r--r--xen/include/xen/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h
index 7872f13e8d..43d6bc6cff 100644
--- a/xen/include/xen/config.h
+++ b/xen/include/xen/config.h
@@ -95,4 +95,10 @@ int current_domain_id(void);
#define __cpuinitdata
#define __cpuinit
+#ifdef PRIVILEGED_STUBDOMS
+#define STUBDOM_IS_PRIV_FOR(x,y) IS_PRIV_FOR(x,y)
+#else
+#define STUBDOM_IS_PRIV_FOR(x,y) IS_PRIV(x)
+#endif
+
#endif /* __XEN_CONFIG_H__ */