add a generic scaling mechanism for timers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Mar 2011 15:33:58 +0000 (16:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2011 08:23:23 +0000 (09:23 +0100)
commit94ec7dd5edf8a504e3d4710c263f531f68087b51
tree0bb1de0638c3dadafea4be2adeb5a071a4af8da4
parentd0c2770cb6ac948e679c0d851e6588c7d8252229
add a generic scaling mechanism for timers

This enables rt_clock timers to use nanosecond resolution, just by
using the _ns functions; there is really no reason to forbid that.

Migrated timers are all using vm_clock (of course; but I checked that
anyway) so the timers in the savevm files are already in nanosecond
resolution.  So this patch makes no change to the migration format.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-timer.c
qemu-timer.h