• Paolo Bonzini's avatar
    add a generic scaling mechanism for timers · 4a998740
    Paolo Bonzini authored
    
    
    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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4a998740
qemu-timer.c 27.9 KB