VirtualBox

Changeset 92556 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 23, 2021 1:12:29 AM (3 years ago)
Author:
vboxsync
Message:

SUP,VMM: Added a fFlags parameter to SUPR3PageAlloc so we can indicate a desire for large pages and other things. HM must enable large pages when configred for the NEM code paths too. bugref:9044 bugref:5324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r91836 r92556  
    13891389 * @returns VBox status.
    13901390 * @param   cPages          Number of pages to allocate.
     1391 * @param   fFlags          SUP_PAGE_ALLOC_F_XXX
    13911392 * @param   ppvPages        Where to store the base pointer to the allocated pages.
    13921393 */
    1393 SUPR3DECL(int) SUPR3PageAlloc(size_t cPages, void **ppvPages);
     1394SUPR3DECL(int) SUPR3PageAlloc(size_t cPages, uint32_t fFlags, void **ppvPages);
     1395
     1396/** @name SUP_PAGE_ALLOC_F_XXX - SUPR3PageAlloc flags.
     1397 * @{ */
     1398/** Use large pages if available. */
     1399#define SUP_PAGE_ALLOC_F_LARGE_PAGES    RT_BIT_32(0)
     1400/** Advice that the allocated pages will probably be locked by
     1401 * RTR0MemObjLockUser later, so play nice if needed. */
     1402#define SUP_PAGE_ALLOC_F_FOR_LOCKING    RT_BIT_32(1)
     1403/** Mask of valid flags. */
     1404#define SUP_PAGE_ALLOC_F_VALID_MASK     UINT32_C(0x00000003)
     1405/** @} */
    13941406
    13951407/**
Note: See TracChangeset for help on using the changeset viewer.

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