aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
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/Rules.mk
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/Rules.mk')
-rw-r--r--xen/Rules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 5601e45191..3f141c33bc 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -9,6 +9,9 @@ perfc_arrays ?= n
crash_debug ?= n
frame_pointer ?= n
+# Allow some delicate passthrough related hypercalls to be made from a stubdom
+privileged_stubdoms ?= y
+
XEN_ROOT=$(BASEDIR)/..
include $(XEN_ROOT)/Config.mk
@@ -58,6 +61,10 @@ ifneq ($(max_phys_irqs),)
CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs)
endif
+ifeq ($(privileged_stubdoms),y)
+CFLAGS += -DPRIVILEGED_STUBDOMS
+endif
+
AFLAGS-y += -D__ASSEMBLY__
ALL_OBJS := $(ALL_OBJS-y)