VirtualBox

Changeset 65897 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 28, 2017 2:34:11 PM (8 years ago)
Author:
vboxsync
Message:

TMR3TimerSkip: No need to to set ssm handle status on failure when the error came from an SSM API.
TMR3TimerSkip,TMR3TimerLoad: Clearified the r47786 workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TM.cpp

    r65896 r65897  
    26312631    if (RT_FAILURE(rc))
    26322632        return rc;
    2633 #if 1 /* Workaround for accidental state shift in r47786 (2009-05-26 19:12:12). */  /** @todo remove this in a few weeks! */
     2633
     2634    /* TMTIMERSTATE_SAVED_XXX: Workaround for accidental state shift in r47786 (2009-05-26 19:12:12). */
    26342635    if (    u8State == TMTIMERSTATE_SAVED_PENDING_STOP + 1
    26352636        ||  u8State == TMTIMERSTATE_SAVED_PENDING_SCHEDULE + 1)
    26362637        u8State--;
    2637 #endif
     2638
    26382639    if (    u8State != TMTIMERSTATE_SAVED_PENDING_STOP
    26392640        &&  u8State != TMTIMERSTATE_SAVED_PENDING_SCHEDULE)
     
    27092710    if (RT_FAILURE(rc))
    27102711        return rc;
    2711 #if 1 /* Workaround for accidental state shift in r47786 (2009-05-26 19:12:12). */  /** @todo remove this in a few weeks! */
     2712
     2713    /* TMTIMERSTATE_SAVED_XXX: Workaround for accidental state shift in r47786 (2009-05-26 19:12:12). */
    27122714    if (    u8State == TMTIMERSTATE_SAVED_PENDING_STOP + 1
    27132715        ||  u8State == TMTIMERSTATE_SAVED_PENDING_SCHEDULE + 1)
    27142716        u8State--;
    2715 #endif
     2717
    27162718    if (    u8State != TMTIMERSTATE_SAVED_PENDING_STOP
    27172719        &&  u8State != TMTIMERSTATE_SAVED_PENDING_SCHEDULE)
     
    27292731        uint64_t u64Expire;
    27302732        rc = SSMR3GetU64(pSSM, &u64Expire);
    2731         if (RT_FAILURE(rc))
    2732             return rc;
    2733     }
    2734 
    2735     /*
    2736      * On failure set SSM status.
    2737      */
    2738     if (RT_FAILURE(rc))
    2739         rc = SSMR3HandleSetStatus(pSSM, rc);
     2733    }
     2734
    27402735    return rc;
    27412736}
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