Skip to contentSkip to conversation

x86/mm/p2m: use NX bit for p2m entries

PATCH In review Christoph Egger 2 participants 2 messages Jul 20, 2012 – Jul 26, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Signature · 6 lines
---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
xen/arch/x86/mm/p2m-pt.c +1 -1
diff -r ae0e96e156f3 xen/arch/x86/mm/p2m-pt.c
@@ -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:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 5 lines · Christoph Egger

In addition to c/s 25614:7d8a2e8412f2 also use the NX bit for non-ram types.

Meh; I guess it will help remind us to think about NX in other cases. Applied, thanks.

Tim.