aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/xen/enlighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/xen/enlighten.c')
-rw-r--r--arch/arm/xen/enlighten.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index 6a0217d4e662..c2a47a724870 100644
--- a/arch/arm/xen/enlighten.c
+++ b/arch/arm/xen/enlighten.c
@@ -1,6 +1,7 @@
1#include <xen/xen.h> 1#include <xen/xen.h>
2#include <xen/interface/xen.h> 2#include <xen/interface/xen.h>
3#include <xen/interface/memory.h> 3#include <xen/interface/memory.h>
4#include <xen/features.h>
4#include <xen/platform_pci.h> 5#include <xen/platform_pci.h>
5#include <asm/xen/hypervisor.h> 6#include <asm/xen/hypervisor.h>
6#include <asm/xen/hypercall.h> 7#include <asm/xen/hypercall.h>
@@ -66,6 +67,12 @@ static int __init xen_guest_init(void)
66 } 67 }
67 xen_domain_type = XEN_HVM_DOMAIN; 68 xen_domain_type = XEN_HVM_DOMAIN;
68 69
70 xen_setup_features();
71 if (xen_feature(XENFEAT_dom0))
72 xen_start_info->flags |= SIF_INITDOMAIN|SIF_PRIVILEGED;
73 else
74 xen_start_info->flags &= ~(SIF_INITDOMAIN|SIF_PRIVILEGED);
75
69 if (!shared_info_page) 76 if (!shared_info_page)
70 shared_info_page = (struct shared_info *) 77 shared_info_page = (struct shared_info *)
71 get_zeroed_page(GFP_KERNEL); 78 get_zeroed_page(GFP_KERNEL);