Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330396
b: refs/heads/master
c: ef61ee0
h: refs/heads/master
v: v3
  • Loading branch information
Stefano Stabellini committed Aug 8, 2012
1 parent ead8ad4 commit 8e10931
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eff8d6447d5fac2995ffa5c1f0ea2da5bd7074c9
refs/heads/master: ef61ee0dc7ba0409dc0e8122de90d4e48d4c8669
7 changes: 7 additions & 0 deletions trunk/arch/arm/xen/enlighten.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <xen/xen.h>
#include <xen/interface/xen.h>
#include <xen/interface/memory.h>
#include <xen/features.h>
#include <xen/platform_pci.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
Expand Down Expand Up @@ -66,6 +67,12 @@ static int __init xen_guest_init(void)
}
xen_domain_type = XEN_HVM_DOMAIN;

xen_setup_features();
if (xen_feature(XENFEAT_dom0))
xen_start_info->flags |= SIF_INITDOMAIN|SIF_PRIVILEGED;
else
xen_start_info->flags &= ~(SIF_INITDOMAIN|SIF_PRIVILEGED);

if (!shared_info_page)
shared_info_page = (struct shared_info *)
get_zeroed_page(GFP_KERNEL);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/xen/interface/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit 8e10931

Please sign in to comment.