summaryrefslogtreecommitdiff
path: root/xen
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-28 01:59:14 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-28 02:36:29 +0100
commitce99076635d342a1f6ae1c3b781638c04372df3d (patch)
tree4714aae32d0cf2aaf1ca80ddbbfedd412f9246ae /xen
parent28d83087776ebdad43a11fa3e687859462de4542 (diff)
Add initial code for disabling ring1 xen execution
* xen/configfrag.ac (--disable-ring1): Add option. * i386/xen/xen_boothdr.S (XEN_ELFNOTE_FEATURES) [!MACH_RING1]: Add supervisor_mode_kernel. * i386/i386/seg.h (KERNEL_RING) [!MACH_RING1]: Set macro to 0.
Diffstat (limited to 'xen')
-rw-r--r--xen/configfrag.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/xen/configfrag.ac b/xen/configfrag.ac
index d0705a4..b55fc5b 100644
--- a/xen/configfrag.ac
+++ b/xen/configfrag.ac
@@ -45,10 +45,20 @@ dnl These are experimental
AM_CONDITIONAL([enable_pv_descriptors], [true])
[fi]
+ AC_ARG_ENABLE([ring1],
+ AS_HELP_STRING([--disable-ring1], [ring1 kernel support]))
+ [if [ x"$enable_ring1" = xno ]; then]
+ AM_CONDITIONAL([enable_ring1], [false])
+ [else]
+ AC_DEFINE([MACH_RING1], [], [Enable ring1 kernel support])
+ AM_CONDITIONAL([enable_ring1], [true])
+ [fi]
+
[else]
AM_CONDITIONAL([PLATFORM_xen], [false])
AM_CONDITIONAL([enable_pseudo_phys], [false])
AM_CONDITIONAL([enable_pv_descriptors], [false])
+ AM_CONDITIONAL([enable_ring1], [false])
[fi]
dnl Local Variables: