From 28d83087776ebdad43a11fa3e687859462de4542 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 28 Jan 2013 01:51:23 +0100 Subject: Add initial code for disabling PV descriptors * xen/configfrag.ac (--disable-pv-descriptors): Add option * i386/xen/xen_boothdr.S (XEN_ELFNOTE_FEATURES) [!MACH_PV_DESCRIPTORS]: Add writable_descriptor_tables. * i386/i386/gdt.c: Turn appropriate MACH_XEN/MACH_HYP tests into MACH_PV_DESCRIPTORS tests. * i386/i386/gdt.h: Likewise. * i386/i386/i386asm.sym: Likewise. * i386/i386/idt.c: Likewise. * i386/i386/idt_inittab.S: Likewise. * i386/i386/ldt.c: Likewise. * i386/i386/pcb.c: Likewise. * i386/i386/seg.h: Likewise. * i386/i386/user_ldt.c: Likewise. * i386/i386/user_ldt.h: Likewise. --- xen/configfrag.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'xen') diff --git a/xen/configfrag.ac b/xen/configfrag.ac index eb68996..d0705a4 100644 --- a/xen/configfrag.ac +++ b/xen/configfrag.ac @@ -25,8 +25,10 @@ dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. AC_DEFINE([MACH_HYP], [], [be a hypervisor guest]) AM_CONDITIONAL([PLATFORM_xen], [true]) +dnl These are experimental + AC_ARG_ENABLE([pseudo-phys], - AS_HELP_STRING([--enable-pseudo-phys], [Pseudo physical support])) + AS_HELP_STRING([--disable-pseudo-phys], [Pseudo physical pages support])) [if [ x"$enable_pseudo_phys" = xno ]; then] AM_CONDITIONAL([enable_pseudo_phys], [false]) [else] @@ -34,9 +36,19 @@ dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. AM_CONDITIONAL([enable_pseudo_phys], [true]) [fi] + AC_ARG_ENABLE([pv-descriptors], + AS_HELP_STRING([--disable-pv-descriptors], [Paravirtualized segment descriptors support])) + [if [ x"$enable_pv_descriptors" = xno ]; then] + AM_CONDITIONAL([enable_pv_descriptors], [false]) + [else] + AC_DEFINE([MACH_PV_DESCRIPTORS], [], [Enable paravirtualized segment descriptors support]) + AM_CONDITIONAL([enable_pv_descriptors], [true]) + [fi] + [else] AM_CONDITIONAL([PLATFORM_xen], [false]) AM_CONDITIONAL([enable_pseudo_phys], [false]) + AM_CONDITIONAL([enable_pv_descriptors], [false]) [fi] dnl Local Variables: -- cgit v1.2.3