x86: remap text/data/bss with appropriate permissions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Mar 2016 10:02:07 +0000 (11:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Mar 2016 10:02:07 +0000 (11:02 +0100)
commit5c07efaa01f036c31f58e0144c4f1ed6e7e35ac2
tree381e08965e3cc3bdbf1e5d504e2e6ed7e79e5162
parent5996f3c8da43fbee54c789f1b7c907b2646c76b9
x86: remap text/data/bss with appropriate permissions

c/s cf39362 "x86: use 2M superpages for text/data/bss mappings" served two
purposes; to map the primary code and data with appropriate pagetable
permissions (rather than unilaterally RWX), and to reduce the TLB pressure.

The extra alignment exposed a SYSLinux issue, and was partly reverted by c/s
0b8a172 "x86: partially revert use of 2M mappings for hypervisor image".

This change reinstates the pagetable permission improvements while avoiding
the 2M alignment issue.

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