x86/mm/p2m: use NX bit for p2m entries
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.
Signed-off-by Christoph Egger <[email protected]>
CC Tim Deegan <[email protected]>
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
@@ -88,7 +88,7 @@ static unsigned long p2m_type_to_flags(pcase 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
Quoted 5 lines · Christoph Egger
In addition to c/s 25614:7d8a2e8412f2 also use the NX bit for non-ram types.
Signed-off-by Christoph Egger <[email protected]>
Meh; I guess it will help remind us to think about NX in other cases. Applied, thanks.
Tim.