|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-ia64-devel
[Xen-ia64-devel] [PATCH] zero clear pgd, pmd, pte page 
| 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
 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 <=
 |  |  | 
  
    |  |  |