Skip to content
  • Juan Quintela's avatar
    Exit loop if we have been there too long · 4508bd9e
    Juan Quintela authored
    
    
    Checking each 64 pages is a random magic number as good as any other.
    We don't want to test too many times, but on the other hand,
    qemu_get_clock_ns() is not so expensive either.  We want to be sure
    that we spent less than 50ms (half of buffered_file timer), if we
    spent more than 100ms, all the accounting got wrong.
    
    Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
    4508bd9e