]> xenbits.xensource.com Git - xen.git/commit
x86: use 2M superpages for text/data/bss mappings
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Feb 2016 12:07:14 +0000 (13:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2016 12:07:14 +0000 (13:07 +0100)
commitcf393624eec34e11275e83d2db01994b922e0673
tree069243d5a94190f756caffdef11fa5370a4a3435
parentb4cd59fea0fb93e32517979095be2bd90c71e5fd
x86: use 2M superpages for text/data/bss mappings

This balloons the size of Xen in memory from 4.4MB to 8MB, because of the
required alignment adjustments.

However
 * All mappings are 2M superpages.
 * .text (and .init at boot) are the only sections marked executable.
 * .text and .rodata are marked read-only.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/setup.c
xen/arch/x86/xen.lds.S
xen/include/asm-x86/setup.h