[PATCH][RFC]
fix ia64 grant_table destruction.
fix type count of grant mapped page for xen/ia64.


This patch is necessary to keep page_info.type_info
correctly. However I don't think that this patch is acceptable.
Another idea is to modify guest_physmap_remove_page() be aware
of grant table mapped page.

-- 
yamahata
# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1173873236 -32400
# Node ID ede3eb87f8903daa7bcd9a69033eacc0ebd53b7d
# Parent  321251aa0e4e81cec026f4bbac43ac8803c108f6
fix ia64 grant_table destruction.
fix type count of grant mapped page for xen/ia64.
PATCHNAME: fix_granted_page_type_count

Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]>

diff -r 321251aa0e4e -r ede3eb87f890 xen/common/grant_table.c
--- a/xen/common/grant_table.c	Wed Mar 14 20:48:54 2007 +0900
+++ b/xen/common/grant_table.c	Wed Mar 14 20:53:56 2007 +0900
@@ -1353,6 +1353,7 @@ gnttab_release_mappings(
     struct grant_entry   *sha;
 
     BUG_ON(!test_bit(_DOMF_dying, &d->domain_flags));
+printk("%s:%d\n", __func__, __LINE__);
 
     for ( handle = 0; handle < gt->maptrack_limit; handle++ )
     {
@@ -1393,7 +1394,9 @@ gnttab_release_mappings(
                 BUG_ON(!(act->pin & GNTPIN_hstr_mask));
                 act->pin -= GNTPIN_hstr_inc;
                 /* Done implicitly when page tables are destroyed. */
-                /* put_page(mfn_to_page(act->frame)); */
+#ifdef __ia64__
+                put_page(mfn_to_page(act->frame));
+#endif
             }
         }
         else
@@ -1410,7 +1413,9 @@ gnttab_release_mappings(
                 BUG_ON(!(act->pin & GNTPIN_hstw_mask));
                 act->pin -= GNTPIN_hstw_inc;
                 /* Done implicitly when page tables are destroyed. */
-                /* put_page_and_type(mfn_to_page(act->frame)); */
+#ifdef __ia64__
+                put_page_and_type(mfn_to_page(act->frame));
+#endif
             }
 
             if ( (act->pin & (GNTPIN_devw_mask|GNTPIN_hstw_mask)) == 0 )
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel

Reply via email to