summaryrefslogtreecommitdiff
path: root/exec-obsolete.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-05-22 16:27:59 +0200
committerJuan Quintela <quintela@redhat.com>2012-06-29 13:31:04 +0200
commit4508bd9ed8053cef0a1a849bf2f1896a5dd86580 (patch)
tree68ae1cf5495a0c97dbfdad293b7e80e79c7e99ab /exec-obsolete.h
parent5b3c96388741a99988497d734edec19c4f995cd7 (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>
Diffstat (limited to 'exec-obsolete.h')
0 files changed, 0 insertions, 0 deletions