WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] zero clear pgd, pmd, pte page

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] zero clear pgd, pmd, pte page
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 2 Feb 2006 10:59:44 +0900
Delivery-date: Thu, 02 Feb 2006 02:09:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
zero clear pgd, pmd, pte page.
Currently domain destruction is not supported,
so it is likey that pages which is given by alloc_xenheap_pages()
contains zeros. But there is no guarantees.


# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Node ID 64313db770dbcf5ed0ddd25f492ff5ac2ad1a4b6
# Parent  5fcc346d6fe086436977a9b171f2bdb3a177d828
zero clear page for pgd, pmd, pte.
xen heap page are not always zero cleared, so that explicit zeroing
is needed.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 5fcc346d6fe0 -r 64313db770db xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c       Thu Jan 26 11:31:28 2006 +0100
+++ b/xen/arch/ia64/xen/xenmisc.c       Wed Feb  1 22:54:10 2006 +0900
@@ -168,7 +168,11 @@
 
 void *pgtable_quicklist_alloc(void)
 {
-       return alloc_xenheap_pages(0);
+    void *p;
+    p = alloc_xenheap_pages(0);
+    if (p) 
+        clear_page(p);
+    return p;
 }
 
 void pgtable_quicklist_free(void *pgtable_entry)


-- 
yamahata

Attachment: 8672:64313db770db.patch
Description: Text document

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] zero clear pgd, pmd, pte page, Isaku Yamahata <=