1. 23 3月, 2011 2 次提交
  2. 22 3月, 2011 35 次提交
  3. 21 3月, 2011 3 次提交
    • P
      remove qemu_get_clock · 6d5ad9bf
      Paolo Bonzini 提交于
      These patches are already not doing a great service to out-of-tree
      modifications to QEMU.  However, at least we can warn them by getting
      rid of the old confusing functions, or otherwise causing compilation
      errors.  This patch removes qemu_get_clock; the previous one changed
      qemu_new_timer's signature.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6d5ad9bf
    • P
      add a generic scaling mechanism for timers · 4a998740
      Paolo Bonzini 提交于
      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: NPaolo Bonzini <pbonzini@redhat.com>
      4a998740
    • P
      change all other clock references to use nanosecond resolution accessors · 74475455
      Paolo Bonzini 提交于
      This was done with:
      
          sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
              $(git grep -l 'qemu_get_clock\>' )
          sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
              $(git grep -l 'qemu_new_timer\>' )
      
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      
      There was exactly one false positive in qemu_run_timers:
      
           -    current_time = qemu_get_clock (clock);
           +    current_time = qemu_get_clock_ns (clock);
      
      which is of course not in this patch.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      74475455