Siddha, Suresh B
2005-Aug-18 17:29 UTC
[Xen-devel] [Patch] make MEMZONE_DOM as deafult for xen_create_contiguous_region
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@intel.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel