diff options
author | Jan Beulich <JBeulich@suse.com> | 2017-12-18 19:37:45 +0300 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-12-19 19:33:25 +0300 |
commit | 2cc42bac1c795f75fcc062b95c6ca7ac1b84d5d8 (patch) | |
tree | 032d75fffa1848d5780f9b4b47e7ae25c52c6a98 /drivers/xen | |
parent | c4f9d9cb2c29ff04c6b4bb09b72802d8aedfc7cb (diff) | |
download | linux-2cc42bac1c795f75fcc062b95c6ca7ac1b84d5d8.tar.xz |
x86-64/Xen: eliminate W+X mappings
A few thousand such pages are usually left around due to the re-use of
L1 tables having been provided by the hypervisor (Dom0) or tool stack
(DomU). Set NX in the direct map variant, which needs to be done in L2
due to the dual use of the re-used L1s.
For x86_configure_nx() to actually do what it is supposed to do, call
get_cpu_cap() first. This was broken by commit 4763ed4d45 ("x86, mm:
Clean up and simplify NX enablement") when switching away from the
direct EFER read.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen')
0 files changed, 0 insertions, 0 deletions