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] make MEMZONE_DOM as deafult for xen_create_contiguou

To: Keir.Fraser@xxxxxxxxxxxx
Subject: [Xen-devel] [Patch] make MEMZONE_DOM as deafult for xen_create_contiguous_region
From: "Siddha, Suresh B" <suresh.b.siddha@xxxxxxxxx>
Date: Thu, 18 Aug 2005 10:29:07 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 18 Aug 2005 17:27:28 +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.2.5.1i
Otherwise, dom0 will just be eating away from MEMZONE_DMADOM for every
xen_create_contiguous_region() call, with out ever giving it back. And 
as it stands today, there is no point in having 
xen_destroy_contiguous_region().

Appended patch will fix this.

Signed-off-by: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>

diff -r 84ee014ebd41 xen/common/dom_mem_ops.c
--- a/xen/common/dom_mem_ops.c  Wed Aug 17 20:34:38 2005
+++ b/xen/common/dom_mem_ops.c  Thu Aug 18 09:35:34 2005
@@ -158,7 +158,7 @@
     case MEMOP_increase_reservation:
         rc = alloc_dom_mem(
             d, extent_list, start_extent, nr_extents, extent_order,
-            (address_bits_order <= 32) ? ALLOC_DOM_DMA : 0);
+            (address_bits_order == 32) ? ALLOC_DOM_DMA : 0);
         break;
     case MEMOP_decrease_reservation:
         rc = free_dom_mem(

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [Patch] make MEMZONE_DOM as deafult for xen_create_contiguous_region, Siddha, Suresh B <=