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

[Xen-changelog] [xen-unstable] [IA64] Add arch_free_page()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Add arch_free_page()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Feb 2007 09:40:39 -0800
Delivery-date: Fri, 09 Feb 2007 10:38:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1170266396 25200
# Node ID ef646312685f8dfadd9edcaf594da7b99f3552ec
# Parent  6d38ae7927cf8170a130cd0c45880505fa04d6d5
[IA64] Add arch_free_page()

Without this, Linux can hit bad_page()

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/include/asm-ia64/page.h |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -r 6d38ae7927cf -r ef646312685f 
linux-2.6-xen-sparse/include/asm-ia64/page.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/page.h      Wed Jan 31 10:30:54 
2007 -0700
+++ b/linux-2.6-xen-sparse/include/asm-ia64/page.h      Wed Jan 31 10:59:56 
2007 -0700
@@ -238,6 +238,15 @@ get_order (unsigned long size)
 #include <xen/features.h>      // to compile netback, netfront
 #include <asm/maddr.h>
 
+#define arch_free_page(_page, _order)          \
+({                                             \
+       int foreign = PageForeign(_page);       \
+       if (foreign)                            \
+               PageForeignDestructor(_page);   \
+       foreign;                                \
+})
+#define HAVE_ARCH_FREE_PAGE
+
 #endif /* CONFIG_XEN */
 #endif /* __ASSEMBLY__ */
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Add arch_free_page(), Xen patchbot-unstable <=