VirtualBox

Changeset 22986 in vbox for trunk/src/VBox/VMM/VMInternal.h


Ignore:
Timestamp:
Sep 14, 2009 6:36:15 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52265
Message:

VMM: Removed the AtReset callbacks. Rewrote the AtState registration and deregistration to no involve EMT (doens't matter really as they are usually called on EMT anyway, but it simplifies the code quite a bit.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMInternal.h

    r22980 r22986  
    3636 * @{
    3737 */
    38 
    39 
    40 /**
    41  * At-reset callback type.
    42  */
    43 typedef enum VMATRESETTYPE
    44 {
    45     /** Device callback. */
    46     VMATRESETTYPE_DEV = 1,
    47     /** Internal callback . */
    48     VMATRESETTYPE_INTERNAL,
    49     /** External callback. */
    50     VMATRESETTYPE_EXTERNAL
    51 } VMATRESETTYPE;
    52 
    53 
    54 /** Pointer to at-reset callback. */
    55 typedef struct VMATRESET *PVMATRESET;
    56 
    57 /**
    58  * At reset callback.
    59  */
    60 typedef struct VMATRESET
    61 {
    62     /** Pointer to the next one in the list. */
    63     PVMATRESET                      pNext;
    64     /** Callback type. */
    65     VMATRESETTYPE                   enmType;
    66     /** User argument for the callback. */
    67     void                           *pvUser;
    68     /** Description. */
    69     const char                     *pszDesc;
    70     /** Type specific data. */
    71     union
    72     {
    73         /** VMATRESETTYPE_DEV. */
    74         struct
    75         {
    76             /** Callback. */
    77             PFNVMATRESET            pfnCallback;
    78             /** Device instance. */
    79             PPDMDEVINS              pDevIns;
    80         } Dev;
    81 
    82         /** VMATRESETTYPE_INTERNAL. */
    83         struct
    84         {
    85             /** Callback. */
    86             PFNVMATRESETINT         pfnCallback;
    87         } Internal;
    88 
    89         /** VMATRESETTYPE_EXTERNAL. */
    90         struct
    91         {
    92             /** Callback. */
    93             PFNVMATRESETEXT         pfnCallback;
    94         } External;
    95     } u;
    96 } VMATRESET;
    9738
    9839
     
    270211    bool                            fEMTDoesTheCleanup;
    271212
    272     /** Critical section for pAtReset and pAtState. */
     213    /** Critical section for pAtState. */
    273214    RTCRITSECT                      AtStateCritSect;
    274 
    275     /** List of registered reset callbacks. */
    276     PVMATRESET                      pAtReset;
    277     /** List of registered reset callbacks. */
    278     PVMATRESET                     *ppAtResetNext;
    279 
    280215    /** List of registered state change callbacks. */
    281216    PVMATSTATE                      pAtState;
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