[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Place all low mem in DMA pool.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e6f48ae99035ebfdcb84379e62e8883fa215d676
# Parent  0d415d73f8f208a2053ceb104fd332ee3a81639b

Place all low mem in DMA pool.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 0d415d73f8f2 -r e6f48ae99035 
linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c Mon Jul 11 15:46:46 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c Mon Jul 11 15:56:50 2005
@@ -1107,7 +1107,14 @@
        unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0};
        unsigned int max_dma, low;
 
-       max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT;
+       /*
+        * XEN: Our notion of "DMA memory" is fake when running over Xen.
+        * We simply put all RAM in the DMA zone so that those drivers which
+        * needlessly specify GFP_DMA do not get starved of RAM unnecessarily.
+        * Those drivers that *do* require lowmem are screwed anyway when
+        * running over Xen!
+        */
+       max_dma = max_low_pfn;
        low = max_low_pfn;
 
        if (low < max_dma)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.