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

[Xen-devel] [PATCH] MAX_DMADOM_PFN

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] MAX_DMADOM_PFN
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 26 Jan 2006 10:19:20 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 Jan 2006 01:28:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
made MAX_DMADOM_PFN page size aware.
4K page size was assumed, however it is not true for xen/ia64.
It should also be possible for arch dependent code to override it.

# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Node ID 0c2b703c79333c01e4cccef1fbac1d01c6c7daa7
# Parent  5b004f4e76cf90ef6f7155a4822e63b9e33cf7d8
made MAX_DMADOM_PFN aware of page size.
4K page size was assumed. It is not true for xen/ia64 by default.
It should also be possible for arch dependent code to override it.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 5b004f4e76cf -r 0c2b703c7933 xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   Wed Jan 25 23:35:22 2006 +0100
+++ b/xen/common/page_alloc.c   Thu Jan 26 10:09:39 2006 +0900
@@ -216,7 +216,9 @@
 #define NR_ZONES    3
 
 
-#define MAX_DMADOM_PFN 0x7FFFFUL /* 31 addressable bits */
+#ifndef MAX_DMADOM_PFN /* arch-depedent code can override */
+#define MAX_DMADOM_PFN (0x7FFFFFFFUL >> PAGE_SHIFT) /* 31 addressable bits */
+#endif
 #define pfn_dom_zone_type(_pfn)                                 \
     (((_pfn) <= MAX_DMADOM_PFN) ? MEMZONE_DMADOM : MEMZONE_DOM)
 

-- 
yamahata

Attachment: max_domain_pfn.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>