diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-28 01:51:23 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-28 02:36:24 +0100 |
commit | 28d83087776ebdad43a11fa3e687859462de4542 (patch) | |
tree | e86cecc7ac4dfd13c4eb1500078abe8283fbe7f7 /xen | |
parent | 338d9ca7981f25099d99d280b0dd3af590d65763 (diff) |
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.
Diffstat (limited to 'xen')
-rw-r--r-- | xen/configfrag.ac | 14 |
1 files changed, 13 insertions, 1 deletions
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: |