VirtualBox

Changeset 43036 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Aug 28, 2012 1:22:39 PM (12 years ago)
Author:
vboxsync
Message:

Main/GuestCtrl: Reduce number of maximum guest sessions at once to 32 in favor of having up to 2048 objects (processes, files, ...) per session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r42897 r43036  
    3838
    3939/** Maximum number of guest sessions a VM can have. */
    40 #define VBOX_GUESTCTRL_MAX_SESSIONS     255
     40#define VBOX_GUESTCTRL_MAX_SESSIONS     32
    4141/** Maximum number of guest objects (processes, files, ...)
    4242 *  a guest session can have. */
    43 #define VBOX_GUESTCTRL_MAX_OBJECTS      255
     43#define VBOX_GUESTCTRL_MAX_OBJECTS      _2K
    4444/** Maximum of callback contexts a guest process can have. */
    45 #define VBOX_GUESTCTRL_MAX_CONTEXTS     _64K - 1
     45#define VBOX_GUESTCTRL_MAX_CONTEXTS     _64K
    4646
    4747/** Builds a context ID out of the session ID, object ID and an
    4848 *  increasing count. */
    4949#define VBOX_GUESTCTRL_CONTEXTID_MAKE(uSession, uObject, uCount) \
    50     (  (uint32_t)((uSession) &   0xff) << 24 \
    51      | (uint32_t)((uObject)  &   0xff) << 16 \
     50    (  (uint32_t)((uSession) &   0x1f) << 27 \
     51     | (uint32_t)((uObject)  &  0x7ff) << 16 \
    5252     | (uint32_t)((uCount)   & 0xffff)       \
    5353    )
    5454/** Gets the session ID out of a context ID. */
    5555#define VBOX_GUESTCTRL_CONTEXTID_GET_SESSION(uContextID) \
    56     ((uContextID) >> 24)
     56    ((uContextID) >> 27)
    5757/** Gets the process ID out of a context ID. */
    5858#define VBOX_GUESTCTRL_CONTEXTID_GET_OBJECT(uContextID) \
    59     (((uContextID) >> 16) & 0xff)
     59    (((uContextID) >> 16) & 0x7ff)
    6060/** Gets the conext count of a process out of a context ID. */
    6161#define VBOX_GUESTCTRL_CONTEXTID_GET_COUNT(uContextID) \
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