VirtualBox

Ignore:
Timestamp:
Jul 19, 2021 1:48:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145776
Message:

HGCM,HostServices: Extended VBOXHGCMSVCFNTABLE with client and call limits. Tried to pick reasonable values for all services. bugref:9379

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp

    r87624 r90238  
    25342534                pTable->cbClient = sizeof(ClientState);
    25352535
     2536                /* Limit pending calls to 8 pending per connection (doubt we need more than
     2537                   one).  Map legacy clients to the root and limit kernel to 1 (zero would
     2538                   be default) and use defaults for root and user clients. */
     2539                for (uintptr_t i = 0; i < RT_ELEMENTS(pTable->acMaxClients); i++)
     2540                    pTable->acMaxCallsPerClient[i] = 8;
     2541
     2542                pTable->idxLegacyClientCategory = HGCM_CLIENT_CATEGORY_ROOT;
     2543                pTable->acMaxClients[HGCM_CLIENT_CATEGORY_KERNEL] = 1;
     2544
    25362545                /* Register functions. */
    25372546                pTable->pfnUnload               = GstCtrlService::svcUnload;
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