Skip to content
  • Jan Kiszka's avatar
    qdev: Introduce lost tick policy property · 4e4fa398
    Jan Kiszka authored
    
    
    Potentially tick-generating timer devices will gain a common property:
    lock_tick_policy. It allows to encode 4 different ways how to deal with
    tick events the guest did not process in time:
    
    discard - ignore lost ticks (e.g. if the guest compensates for them
              already)
    delay   - replay all lost ticks in a row once the guest accepts them
              again
    merge   - if multiple ticks are lost, all of them are merged into one
              which is replayed once the guest accepts it again
    slew    - lost ticks are gradually replayed at a higher frequency than
              the original tick
    
    Not all timer device will need to support all modes. However, all need
    to accept the configuration via this common property.
    
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    4e4fa398