From: "Siddha, Suresh B" Subject: [Patch] make MEMZONE_DOM as deafult for xen_create_contiguous_region Date: Thu, 18 Aug 2005 10:29:07 -0700 Message-ID: <20050818102906.A17270@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir.Fraser@cl.cam.ac.uk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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(