commit | 4508bd9ed8053cef0a1a849bf2f1896a5dd86580 | [log] [tgz] |
---|---|---|
author | Juan Quintela <quintela@redhat.com> | Tue May 22 16:27:59 2012 +0200 |
committer | Juan Quintela <quintela@redhat.com> | Fri Jun 29 13:31:04 2012 +0200 |
tree | 68ae1cf5495a0c97dbfdad293b7e80e79c7e99ab | |
parent | 5b3c96388741a99988497d734edec19c4f995cd7 [diff] |
Exit loop if we have been there too long 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: Juan Quintela <quintela@redhat.com>