diff options
author | Christoph Egger <Christoph.Egger@amd.com> | 2012-07-26 19:02:44 +0100 |
---|---|---|
committer | Christoph Egger <Christoph.Egger@amd.com> | 2012-07-26 19:02:44 +0100 |
commit | 1ec3b989923b766e53bedb11cfd7553de3abc00b (patch) | |
tree | 19dcf6f4dd7c95a0c4f909dcc7f8886c1dfc9613 | |
parent | 60975d1b586acd4af34fb67ef20bd8cb3fde6153 (diff) | |
download | xen-1ec3b989923b766e53bedb11cfd7553de3abc00b.tar.gz xen-1ec3b989923b766e53bedb11cfd7553de3abc00b.tar.bz2 xen-1ec3b989923b766e53bedb11cfd7553de3abc00b.zip |
x86/mm/p2m: use NX bit for p2m entries
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>
-rw-r--r-- | xen/arch/x86/mm/p2m-pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/mm/p2m-pt.c b/xen/arch/x86/mm/p2m-pt.c index 2a4a64d51c..6f07191e55 100644 --- 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: |