Skip to content
  • Alex Bligh's avatar
    aio / timers: Use all timerlists in icount warp calculations · ac70aafc
    Alex Bligh authored
    
    
    Notify all timerlists derived from vm_clock in icount warp
    calculations.
    
    When calculating timer delay based on vm_clock deadline, use
    all timerlists.
    
    For compatibility, maintain an apparent bug where when using
    icount, if no vm_clock timer was set, qemu_clock_deadline
    would return INT32_MAX and always set an icount clock expiry
    about 2 seconds ahead.
    
    NB: thread safety - when different timerlists sit on different
    threads, this will need some locking.
    
    Signed-off-by: default avatarAlex Bligh <alex@alex.org.uk>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    ac70aafc