ia64/xen-unstable

changeset 16082:a18dbd4a96e6

[IA64] Update for cset 16067:9f9f9b68cd08
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Keir Fraser <keir@xensource.com>
date Tue Oct 09 16:05:43 2007 +0100 (2007-10-09)
parents de68316bd2fa
children dcab07f0776d
files xen/arch/ia64/xen/mm.c xen/include/asm-ia64/mm.h
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Mon Oct 08 13:43:17 2007 +0100
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Tue Oct 09 16:05:43 2007 +0100
     1.3 @@ -2893,6 +2893,13 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
     1.4      return 0;
     1.5  }
     1.6  
     1.7 +int
     1.8 +iomem_page_test(unsigned long mfn, struct page_info *page)
     1.9 +{
    1.10 +	return unlikely(!mfn_valid(mfn)) ||
    1.11 +	       unlikely(page_get_owner(page) == dom_io);
    1.12 +}
    1.13 +
    1.14  /*
    1.15   * Local variables:
    1.16   * mode: C
     2.1 --- a/xen/include/asm-ia64/mm.h	Mon Oct 08 13:43:17 2007 +0100
     2.2 +++ b/xen/include/asm-ia64/mm.h	Tue Oct 09 16:05:43 2007 +0100
     2.3 @@ -185,6 +185,9 @@ static inline int get_page(struct page_i
     2.4      return 1;
     2.5  }
     2.6  
     2.7 +/* Decide whether this page looks like iomem or real memory */
     2.8 +int iomem_page_test(unsigned long mfn, struct page_info *page);
     2.9 +
    2.10  extern void put_page_type(struct page_info *page);
    2.11  extern int get_page_type(struct page_info *page, u32 type);
    2.12