Skip to contentSkip to conversation

make MEMZONE_DOM as deafult for xen_create_contiguous_region

PATCH New Siddha, Suresh B 1 participant 1 message Aug 18, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

xen/common/dom_mem_ops.c +1 -1
diff -r 84ee014ebd41 xen/common/dom_mem_ops.c
@@ -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(