Skip to contentSkip to conversation

Please pull xen-ia64-unstable.hg

DISCUSSION Alex Williamson 2 participants 2 messages Mar 27, 2007 – Mar 28, 2007

lore
Share & tools
lore
#0 lore raw

Hi Keir,

Please pull:

http://xenbits.xensource.com/ext/xen-ia64-unstable.hg

This is a small pull that mainly includes changes to our P2M semantics to match x86. Once this is merged, we can clean out the page_is_removable hook we added previously as a work around. Thanks,

Alex

Signature · 1 line
Alex Williamson                             HP Open Source & Linux Org.
#1 lore raw
Quoted 9 lines · Alex Williamson

Hi Keir,

Please pull:

http://xenbits.xensource.com/ext/xen-ia64-unstable.hg

This is a small pull that mainly includes changes to our P2M semantics to match x86. Once this is merged, we can clean out the page_is_removable hook we added previously as a work around. Thanks,

The patch to remove the hook is attached.
Please apply it after the pull.

thanks,

Signature · 1 line
yamahata

# HG changeset patch
# User [email protected]
# Date 1174616721 -32400
# Node ID 0135c4856cd32212b3c4ec43a067b9dba9bf59d8
# Parent eaeeefd8cddb55016ccd10e4d8b56db71963e67c
remove page_is_removable arch hook. Now the ia64 p2m semantic becomes same as the x86 p2m table so that the hook is unnecessary any more.
PATCHNAME: remove_page_is_removebale_arch_hook

xen/common/memory.c +2 -2
diff -r eaeeefd8cddb -r 0135c4856cd3 xen/common/memory.c
@@ -173,11 +173,11 @@ int guest_remove_page(struct domain *d, 
     if ( test_and_clear_bit(_PGC_allocated, &page->count_info) )
         put_page(page);
 
-    if ( unlikely(!page_is_removable(page)) )
+    if ( unlikely((page->count_info & PGC_count_mask) != 1) )
     {
         shadow_drop_references(d, page);
         /* We'll make this a guest-visible error in future, so take heed! */
-        if ( !page_is_removable(page) )
+        if ( (page->count_info & PGC_count_mask) != 1 )
             gdprintk(XENLOG_INFO, "Dom%d freeing in-use page %lx "
                      "(pseudophys %lx): count=%lx type=%lx\n",
                      d->domain_id, mfn, get_gpfn_from_mfn(mfn),
xen/include/asm-ia64/mm.h +0 -5
diff -r eaeeefd8cddb -r 0135c4856cd3 xen/include/asm-ia64/mm.h
@@ -208,11 +208,6 @@ static inline int get_page_and_type(stru
     }
 
     return rc;
-}
-
-static inline int page_is_removable(struct page_info *page)
-{
-    return ((page->count_info & PGC_count_mask) == 1);
 }
 
 #define	set_machinetophys(_mfn, _pfn) do { } while(0);
xen/include/asm-powerpc/mm.h +0 -5
diff -r eaeeefd8cddb -r 0135c4856cd3 xen/include/asm-powerpc/mm.h
@@ -204,11 +204,6 @@ static inline int get_page_and_type(stru
     return rc;
 }
 
-static inline int page_is_removable(struct page_info *page)
-{
-    return ((page->count_info & PGC_count_mask) == 1);
-}
-
 extern void synchronise_pagetables(unsigned long cpu_mask);
 
 /* XXX don't know what this is for */
xen/include/asm-x86/mm.h +0 -5
diff -r eaeeefd8cddb -r 0135c4856cd3 xen/include/asm-x86/mm.h
@@ -222,11 +222,6 @@ static inline int get_page_and_type(stru
     return rc;
 }
 
-static inline int page_is_removable(struct page_info *page)
-{
-    return ((page->count_info & PGC_count_mask) == 1);
-}
-
 #define ASSERT_PAGE_IS_TYPE(_p, _t)                            \
     ASSERT(((_p)->u.inuse.type_info & PGT_type_mask) == (_t)); \
     ASSERT(((_p)->u.inuse.type_info & PGT_count_mask) != 0)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel