* [PATCH] x86/mm/p2m: use NX bit for p2m entries
@ 2012-07-20 14:23 Christoph Egger
2012-07-26 18:07 ` Tim Deegan
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Egger @ 2012-07-20 14:23 UTC (permalink / raw)
To: xen-devel@lists.xen.org; +Cc: Tim Deegan
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
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>
CC: Tim Deegan <tim@xen.org>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_p2m_nx.diff --]
[-- Type: text/plain, Size: 463 bytes --]
diff -r ae0e96e156f3 xen/arch/x86/mm/p2m-pt.c
--- a/xen/arch/x86/mm/p2m-pt.c Thu Jul 19 12:12:12 2012 +0200
+++ b/xen/arch/x86/mm/p2m-pt.c Fri Jul 20 15:39:54 2012 +0200
@@ -88,7 +88,7 @@ static unsigned long p2m_type_to_flags(p
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:
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-26 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-20 14:23 [PATCH] x86/mm/p2m: use NX bit for p2m entries Christoph Egger
2012-07-26 18:07 ` Tim Deegan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).