From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] x86/mm/p2m: use NX bit for p2m entries Date: Fri, 20 Jul 2012 16:23:48 +0200 Message-ID: <500969F4.9080100@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060902010801000708050207" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" Cc: Tim Deegan List-Id: xen-devel@lists.xenproject.org --------------060902010801000708050207 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit In addition to c/s 25614:7d8a2e8412f2 also use the NX bit for non-ram types. Signed-off-by: Christoph Egger CC: Tim Deegan -- ---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 --------------060902010801000708050207 Content-Type: text/plain; charset="us-ascii"; name="xen_p2m_nx.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_p2m_nx.diff" Content-Description: xen_p2m_nx.diff 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: --------------060902010801000708050207 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------060902010801000708050207--