x86-64/Xen: eliminate W+X mappings
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Juergen Gross
Reviewed-byQuoted 10 lines · Jan Beulich
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, callget_cpu_cap()first. This was broken by commit4763ed4d45("x86, mm:
Clean up and simplify NX enablement") when switching away from the direct EFER read.
Quoted 7 lines
Signed-off-by Jan Beulich <[email protected]>---
v2: Adjust comment style and indentation.
---
While I certainly dislike the added header inclusion to obtain the prototype forget_cpu_cap(), I couldn't find a better alternative. I'm open to suggestions.
Move the prototype to arch/x86/include/asm/cpu.h ?
With that fixed (or without it in case the x86 maintainers don't like the prototype to be moved):
Juergen
Juergen Gross
Reviewed-byQuoted 10 lines · Jan Beulich
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, callget_cpu_cap()first. This was broken by commit4763ed4d45("x86, mm:
Clean up and simplify NX enablement") when switching away from the direct EFER read.
Quoted 7 lines
Signed-off-by Jan Beulich <[email protected]>---
v2: Adjust comment style and indentation.
---
While I certainly dislike the added header inclusion to obtain the prototype forget_cpu_cap(), I couldn't find a better alternative. I'm open to suggestions.
Move the prototype to arch/x86/include/asm/cpu.h ?
With that fixed (or without it in case the x86 maintainers don't like the prototype to be moved):
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel