VirtualBox

Changeset 24804 in vbox for trunk


Ignore:
Timestamp:
Nov 19, 2009 6:15:25 PM (15 years ago)
Author:
vboxsync
Message:

SSM: Added the pass to the statistics (so it's possible to watch progress).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/SSM.cpp

    r24793 r24804  
    919919    if (RT_SUCCESS(rc))
    920920        rc = RTCritSectInit(&pVM->ssm.s.CancelCritSect);
     921    if (RT_SUCCESS(rc))
     922    {
     923        STAM_REL_REG_USED(pVM, &pVM->ssm.s.uPass, STAMTYPE_U32, "/SSM/uPass", STAMUNIT_COUNT, "Current pass");
     924    }
    921925
    922926    pVM->ssm.s.fInitialized = RT_SUCCESS(rc);
     
    40454049{
    40464050    VM_ASSERT_EMT0(pVM);
    4047 
     4051    pVM->ssm.s.uPass = 0;
    40484052
    40494053    /*
     
    49204924    for (uint32_t uPass = 0; uPass < SSM_MAX_PASSES; uPass++)
    49214925    {
     4926        pVM->ssm.s.uPass = uPass;
     4927
    49224928        /*
    49234929         * Save state and vote on whether we need more passes or not.
  • trunk/src/VBox/VMM/SSMInternal.h

    r23709 r24804  
    264264typedef struct SSM
    265265{
     266    /** Critical section for serializing cancellation (pSSM). */
     267    RTCRITSECT              CancelCritSect;
     268    /** The handle of the current save or load operation.
     269     * This is used by SSMR3Cancel.  */
     270    PSSMHANDLE volatile     pSSM;
     271
    266272    /** FIFO of data entity descriptors. */
    267273    R3PTRTYPE(PSSMUNIT)     pHead;
     
    270276    /** For lazy init. */
    271277    bool                    fInitialized;
    272     /** Critical section for serializing cancellation. */
    273     RTCRITSECT              CancelCritSect;
    274     /** The handle of the current save or load operation.
    275      * This is used by SSMR3Cancel.  */
    276     PSSMHANDLE volatile     pSSM;
     278    /** Current pass (for STAM). */
     279    uint32_t                uPass;
     280    uint32_t                u32Alignment;
    277281} SSM;
    278282/** Pointer to SSM VM instance data. */
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