VirtualBox

Changeset 109071 in vbox


Ignore:
Timestamp:
Apr 24, 2025 12:34:13 PM (5 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168610
Message:

Runtime/r0drv/linux/memobj-r0drv-linux.c: GFP_REPEAT was renamed to GFP_RETRY_MAYFAIL in 2017 with commit dcda9b04713c3f6ff0875652924844fae28286ea, so we weren't instructing the allocator to try hard to allocate memory with such kernels. Hopefully fixes VERR_NO_LOW_MEMORY errors when starting a VM

File:
1 edited

Legend:

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

    r107034 r109071  
    415415        /* Try hard to allocate the memory, but the allocation attempt might fail. */
    416416        fFlagsLnx |= __GFP_REPEAT;
     417# elif defined (__GFP_RETRY_MAYFAIL) /* Renamed in commit dcda9b04713c3f6ff0875652924844fae28286ea . */
     418        fFlagsLnx |= __GFP_RETRY_MAYFAIL;
     419# else /* This is to notice when the flags are renamed/moved around again. */
     420#  error "Was this flag renamed again?"
    417421# endif
    418422# ifdef __GFP_NOMEMALLOC
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