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-devel

[Xen-devel] [PATCH] ia64 build fix

To: Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] ia64 build fix
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 08 Oct 2007 09:41:26 -0600
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 08 Oct 2007 08:42:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir,

   Changeset 16067:9f9f9b68cd08 breaks all non-x86 archs.  Here's a
patch that gets things to a working state on ia64.  Thanks,

        Alex


[IA64] Update for cset 16067:9f9f9b68cd08

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---

diff -r a1d0a272c890 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Fri Oct 05 14:39:40 2007 +0100
+++ b/xen/arch/ia64/xen/mm.c    Fri Oct 05 10:43:20 2007 -0600
@@ -2893,6 +2893,13 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
     return 0;
 }
 
+int
+iomem_page_test(unsigned long mfn, struct page_info *page)
+{
+       return unlikely(!mfn_valid(mfn)) ||
+              unlikely(page_get_owner(page) == dom_io);
+}
+
 /*
  * Local variables:
  * mode: C
diff -r a1d0a272c890 xen/include/asm-ia64/mm.h
--- a/xen/include/asm-ia64/mm.h Fri Oct 05 14:39:40 2007 +0100
+++ b/xen/include/asm-ia64/mm.h Fri Oct 05 10:41:55 2007 -0600
@@ -184,6 +184,9 @@ static inline int get_page(struct page_i
     while(unlikely((y = cmpxchg_acq((u64*)&page->count_info, x, nx)) != x));
     return 1;
 }
+
+/* Decide whether this page looks like iomem or real memory */
+int iomem_page_test(unsigned long mfn, struct page_info *page);
 
 extern void put_page_type(struct page_info *page);
 extern int get_page_type(struct page_info *page, u32 type);



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] ia64 build fix, Alex Williamson <=