« Previous | Next » 

Revision 4508bd9e

ID4508bd9ed8053cef0a1a849bf2f1896a5dd86580

Added by Juan Quintela about 12 years ago

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 <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences