VirtualBox

Ignore:
Timestamp:
Sep 21, 2007 4:00:02 PM (17 years ago)
Author:
vboxsync
Message:

Allow allocations up to the maximum guest VRAM size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r4963 r4965  
    17821782
    17831783    /*
    1784      * Validate input.
     1784     * Validate input. The allowed allocation size must be at least equal to the maximum guest VRAM size.
    17851785     */
    17861786    AssertReturn(SUP_IS_SESSION_VALID(pSession), VERR_INVALID_PARAMETER);
    17871787    AssertPtrReturn(ppvR3, VERR_INVALID_POINTER);
    1788     if (cPages < 1 || cPages >= 4096)
    1789     {
    1790         dprintf(("SUPR0PageAlloc: Illegal request cb=%u; must be greater than 0 and smaller than 16MB.\n", cPages));
     1788    if (cPages < 1 || cPages > (128 * _1M)/PAGE_SIZE)
     1789    {
     1790        dprintf(("SUPR0PageAlloc: Illegal request cb=%u; must be greater than 0 and smaller than 128MB.\n", cPages));
    17911791        return VERR_INVALID_PARAMETER;
    17921792    }
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