projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60975d1
)
x86/mm/p2m: use NX bit for p2m entries
author
Christoph Egger
<Christoph.Egger@amd.com>
Thu, 26 Jul 2012 18:02:44 +0000
(19:02 +0100)
committer
Christoph Egger
<Christoph.Egger@amd.com>
Thu, 26 Jul 2012 18:02:44 +0000
(19:02 +0100)
In addition to c/s 25614:
7d8a2e8412f2
also use the NX bit
for non-ram types.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-pt.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/p2m-pt.c
b/xen/arch/x86/mm/p2m-pt.c
index 2a4a64d51cd946fc9915ee3dc8eb427021e773b8..6f07191e55108426eefcff906538828078b17fc9 100644
(file)
--- a/
xen/arch/x86/mm/p2m-pt.c
+++ b/
xen/arch/x86/mm/p2m-pt.c
@@
-88,7
+88,7
@@
static unsigned long p2m_type_to_flags(p2m_type_t t, mfn_t mfn)
case p2m_ram_paged:
case p2m_ram_paging_in:
default:
- return flags;
+ return flags
| _PAGE_NX_BIT
;
case p2m_grant_map_ro:
return flags | P2M_BASE_FLAGS | _PAGE_NX_BIT;
case p2m_ram_ro: