summaryrefslogtreecommitdiffstats
path: root/include/xen/interface/features.h
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-08-08 19:20:18 +0200
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-08-08 19:20:18 +0200
commitef61ee0dc7ba0409dc0e8122de90d4e48d4c8669 (patch)
tree69318ec779b0c71fbd8d7763b5ddb018b22b7673 /include/xen/interface/features.h
parentxen/arm: introduce CONFIG_XEN on ARM (diff)
downloadlinux-ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669.tar.xz
linux-ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669.zip
xen/arm: get privilege status
Use Xen features to figure out if we are privileged. XENFEAT_dom0 was introduced by 23735 in xen-unstable.hg. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen/interface/features.h')
-rw-r--r--include/xen/interface/features.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/interface/features.h b/include/xen/interface/features.h
index b6ca39a069d8..131a6ccdba25 100644
--- a/include/xen/interface/features.h
+++ b/include/xen/interface/features.h
@@ -50,6 +50,9 @@
/* x86: pirq can be used by HVM guests */
#define XENFEAT_hvm_pirqs 10
+/* operation as Dom0 is supported */
+#define XENFEAT_dom0 11
+
#define XENFEAT_NR_SUBMAPS 1
#endif /* __XEN_PUBLIC_FEATURES_H__ */