1. 21 Mar, 2011 5 commits
    • Paolo Bonzini's avatar
      remove qemu_get_clock · 6d5ad9bf
      Paolo Bonzini authored
      
      
      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: default avatarPaolo Bonzini <pbonzini@redhat.com>
      6d5ad9bf
    • 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
    • Paolo Bonzini's avatar
      change all other clock references to use nanosecond resolution accessors · 74475455
      Paolo Bonzini authored
      
      
      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: default avatarPaolo Bonzini <pbonzini@redhat.com>
      74475455
    • Paolo Bonzini's avatar
      change all rt_clock references to use millisecond resolution accessors · 7bd427d8
      Paolo Bonzini authored
      
      
      This was done with:
      
          sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
              $(git grep -l 'get_clock\>.*rt_clock' )
          sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \
              $(git grep -l 'new_timer\>.*rt_clock' )
      
      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.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      7bd427d8
    • Paolo Bonzini's avatar
      add more helper functions with explicit milli/nanosecond resolution · 0ce1b948
      Paolo Bonzini authored
      
      
      The code doesn't make much sense right now, but it will as
      soon as timers will be able to scale their resolution arbitrarily.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0ce1b948
  2. 20 Mar, 2011 1 commit
  3. 19 Mar, 2011 4 commits
  4. 16 Mar, 2011 3 commits
  5. 15 Mar, 2011 2 commits
  6. 13 Mar, 2011 23 commits
  7. 12 Mar, 2011 1 commit
  8. 11 Mar, 2011 1 commit