VirtualBox

Changeset 75533 in vbox for trunk/include


Ignore:
Timestamp:
Nov 17, 2018 12:16:33 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126691
Message:

VMMDev.h: Reduce the VMMDEV_MAX_HGCM_PARMS and VMMDEV_MAX_HGCM_DATA_SIZE values to something more sane.

File:
1 edited

Legend:

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

    r75131 r75533  
    8888#define VMMDEV_MAX_VMMDEVREQ_SIZE           _1M
    8989/** Maximum number of HGCM parameters.
    90  * @todo r=bird: This is wrong wrt user land calls. For them it iss 61.
     90 * @note This used to be 1024, which is kind of insane.  Was changed to 32,
     91 *       given that (guest) user land can only pass 61 anyway.
    9192 *       See comments on VBGLIOCHGCMCALL::cParms. */
    92 #define VMMDEV_MAX_HGCM_PARMS               1024
    93 /** Maximum total size of hgcm buffers in one call. */
    94 #define VMMDEV_MAX_HGCM_DATA_SIZE           UINT32_C(0x7FFFFFFF)
     93#define VMMDEV_MAX_HGCM_PARMS               32
     94/** Maximum total size of hgcm buffers in one call.
     95 * @note Used to be 2G, since reduced to 128MB.  */
     96#define VMMDEV_MAX_HGCM_DATA_SIZE           _128M
    9597
    9698/**
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