VirtualBox

Ignore:
Timestamp:
Aug 19, 2009 8:09:45 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51283
Message:

Runtime/Linux: don't allow to pass pages above 4GB to remap_page_range(); some remarks about GFP_USER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r21337 r22355  
    239239    cPages = cb >> PAGE_SHIFT;
    240240    cOrder = CalcPowerOf2Order(cPages);
    241 #ifdef RT_ARCH_AMD64 /** @todo check out if there is a correct way of getting memory below 4GB (physically). */
     241#ifdef RT_ARCH_AMD64
     242    /** @todo check out if there is a correct way of getting memory below 4GB (physically).
     243     * GFP_DMA32 is available since Linux 2.6.15 */
    242244    paPages = alloc_pages(GFP_DMA, cOrder);
    243245#else
     246    /** XXX Wrong: GFP_USER can return page frames above 4GB! */
    244247    paPages = alloc_pages(GFP_USER, cOrder);
    245248#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette