Exit loop if we have been there too long
commit4508bd9ed8053cef0a1a849bf2f1896a5dd86580
authorJuan Quintela <quintela@redhat.com>
Tue, 22 May 2012 14:27:59 +0000 (22 16:27 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 29 Jun 2012 11:31:04 +0000 (29 13:31 +0200)
tree68ae1cf5495a0c97dbfdad293b7e80e79c7e99ab
parent5b3c96388741a99988497d734edec19c4f995cd7
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>
arch_init.c