diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-08-08 17:20:18 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-08-08 17:20:18 +0000 |
commit | ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669 (patch) | |
tree | 69318ec779b0c71fbd8d7763b5ddb018b22b7673 /include | |
parent | eff8d6447d5fac2995ffa5c1f0ea2da5bd7074c9 (diff) | |
download | op-kernel-dev-ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669.zip op-kernel-dev-ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669.tar.gz |
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')
-rw-r--r-- | include/xen/interface/features.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/interface/features.h b/include/xen/interface/features.h index b6ca39a..131a6cc 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__ */ |