[lkml]   [2009]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Xen-devel] [PATCH 10/27] xen: make sure swiotlb allocation isphysically contigious
    >>> Jeremy Fitzhardinge <> 13.03.09 17:59 >>>
    > void * __init swiotlb_alloc_boot(size_t size, unsigned long nslabs)
    > {
    >- return alloc_bootmem_low_pages(size);
    >+ void *ret = alloc_bootmem_low_pages(size);
    >+ if (ret && xen_pv_domain())
    >+ xen_swiotlb_fixup(ret, size, nslabs);
    >+ return ret;
    > }

    While on native using alloc_bootmem_low_pages() is a requirement here,
    on Xen this should explicitly not be used, as we realized just a couple of
    days ago: The way the bootmem allocator works, running out of space
    below 4Gb is pretty easy on machines with lots of memory, and since the
    swiotlb is a requirement for Dom0, the risk of allocation failures must be
    kept as low as possible.


     \ /
      Last update: 2009-03-16 14:33    [W:0.020 / U:118.336 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site