Displaying 1 result from an estimated 1 matches for "qemu_next_deadline_dyntick".
2012 Mar 16
2
[PATCH v3] use INT64_MAX as max expiration
...imers[QEMU_TIMER_VIRTUAL]->expire_time -
qemu_get_clock(vm_clock);
} else {
- /* To avoid problems with overflow limit this to 2^32. */
- delta = INT32_MAX;
+ delta = INT64_MAX;
}
if (delta < 0)
@@ -1427,9 +1426,11 @@ static uint64_t qemu_next_deadline_dyntick(void)
int64_t rtdelta;
if (use_icount)
- delta = INT32_MAX;
- else
- delta = (qemu_next_deadline() + 999) / 1000;
+ delta = INT64_MAX;
+ else {
+ delta = qemu_next_deadline();
+ delta = (delta / 1000) + (delta % 1000 > 0 ? 1 : 0);
+ }...