VirtualBox

Ignore:
Timestamp:
Jul 20, 2021 8:12:41 PM (3 years ago)
Author:
vboxsync
Message:

VMMDev: Reduce the HGCM accounting categories to the same three as we use in HGCM for connections and pending calls. bugref:9379

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r90264 r90265  
    355355
    356356
     357/** @name VMMDev/HGCM accounting categories (indexes into VMMDEVR3::aHgcmAcc)
     358 * @{  */
     359/** Legacy, VMMDEV_REQUESTOR_USR_NOT_GIVEN, VMMDEV_REQUESTOR_USR_DRV,
     360 *  VMMDEV_REQUESTOR_USR_DRV_OTHER. */
     361#define VMMDEV_HGCM_CATEGORY_KERNEL   0
     362/** VMMDEV_REQUESTOR_USR_ROOT, VMMDEV_REQUESTOR_USR_SYSTEM   */
     363#define VMMDEV_HGCM_CATEGORY_ROOT     1
     364/** VMMDEV_REQUESTOR_USR_RESERVED1, VMMDEV_REQUESTOR_USR_USER,
     365 *  VMMDEV_REQUESTOR_USR_GUEST */
     366#define VMMDEV_HGCM_CATEGORY_USER     2
     367/** Array size. */
     368#define VMMDEV_HGCM_CATEGORY_MAX      3
     369/** @} */
     370
    357371/**
    358372 * State structure for the VMM device, ring-3 edition.
     
    412426        /** Total number of message. */
    413427        STAMCOUNTER                 cTotalMessages;
    414     } aHgcmAcc[VMMDEV_REQUESTOR_USR_MASK + 1];
     428    } aHgcmAcc[VMMDEV_HGCM_CATEGORY_MAX];
    415429    STAMPROFILE                     StatHgcmCmdArrival;
    416430    STAMPROFILE                     StatHgcmCmdCompletion;
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