Skip to content
  • Pavel Dovgaluk's avatar
    1ffc2665
    audio: make audio poll timer deterministic · 1ffc2665
    Pavel Dovgaluk authored
    
    
    This patch changes resetting strategy of the audio polling timer.
    It does not change expiration time if the timer is already set.
    This patch is needed to make this timer deterministic and to use execution
    record/replay for audio devices.
    
    audio_reset_timer is used in the function audio_vm_change_state_handler.
    Therefore every time VM is stopped or restarted the timer will be reset
    to new timeout. Virtual clock does not proceed while VM is stopped.
    Therefore there is no need in resetting the timeout when VM restarts.
    
    v2: updated commit message
    v3: now using timer_mod_anticipate function (as suggested by Yurii Zubrytskyi)
    
    Signed-off-by: default avatarPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
    Message-id: 20170214071510.6112.76764.stgit@PASHA-ISP
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    1ffc2665
    audio: make audio poll timer deterministic
    Pavel Dovgaluk authored
    
    
    This patch changes resetting strategy of the audio polling timer.
    It does not change expiration time if the timer is already set.
    This patch is needed to make this timer deterministic and to use execution
    record/replay for audio devices.
    
    audio_reset_timer is used in the function audio_vm_change_state_handler.
    Therefore every time VM is stopped or restarted the timer will be reset
    to new timeout. Virtual clock does not proceed while VM is stopped.
    Therefore there is no need in resetting the timeout when VM restarts.
    
    v2: updated commit message
    v3: now using timer_mod_anticipate function (as suggested by Yurii Zubrytskyi)
    
    Signed-off-by: default avatarPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
    Message-id: 20170214071510.6112.76764.stgit@PASHA-ISP
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Loading