1. 22 10月, 2011 5 次提交
  2. 24 7月, 2011 1 次提交
    • J
      qemu-timer: Introduce clock reset notifier · 691a0c9c
      Jan Kiszka 提交于
      QEMU_CLOCK_HOST is based on the system time which may jump backward in
      case the admin or NTP adjusts it. RTC emulations and other device models
      can suffer in this case as timers will stall for the period the clock
      was tuned back.
      
      This adds a detection mechanism that checks on every host clock readout
      if the new time is before the last result. If that is the case a
      notifier list is informed. Device models interested in this event can
      register a notifier with the clock.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      691a0c9c
  3. 27 4月, 2011 1 次提交
  4. 23 4月, 2011 1 次提交
  5. 16 4月, 2011 1 次提交
  6. 15 4月, 2011 2 次提交
  7. 21 3月, 2011 3 次提交
  8. 30 10月, 2010 1 次提交
  9. 23 10月, 2010 1 次提交
    • B
      qemu-timer: move commonly used timer code to qemu-timer-common · c57c846a
      Blue Swirl 提交于
      Move timer init functions to a new file, qemu-timer-common.c. Make other
      critical timer functions inlined to preserve performance in
      qemu-timer.c, also move muldiv64() (used by the inline functions)
      to qemu-timer.h.
      
      Adjust block/raw-posix.c and simpletrace.c to use get_clock() directly.
      Remove a similar/duplicate definition in qemu-tool.c.
      
      Adjust hw/omap_clk.c to include qemu-timer.h because muldiv64() is used
      there.
      
      After this change, tracing can be used also for user code and
      simpletrace on Win32.
      
      Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Acked-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      c57c846a
  10. 27 4月, 2010 1 次提交
  11. 18 4月, 2010 1 次提交
  12. 03 4月, 2010 1 次提交
    • A
      Make cpu_get_real_ticks use mfspr · 4a9590f3
      Alexander Graf 提交于
      PowerPC CPUs have had two ways to read the time base for quite some time now.
      They provide it using the mfspr instruction or - if a special bit is set in
      that opcode - using mftb. For timekeeping we're currently using mftb.
      
      While trying to get Qemu up and running on an e500v2 system, I stumbled over
      the CPU not supporting mftbu. It just throws an illegal instruction trap.
      
      So let's read the SPR values instead. All PPC CPUs should support them anyways.
      
      I tested this patch on an e500v2 system where it makes qemu work and on my 970MP
      system with 32-bit user space where everything still works with this patch
      applied.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      4a9590f3
  13. 30 3月, 2010 1 次提交
  14. 18 3月, 2010 1 次提交
  15. 10 2月, 2010 1 次提交
  16. 05 10月, 2009 1 次提交
    • J
      Introduce QEMU_CLOCK_HOST · 21d5d12b
      Jan Kiszka 提交于
      Despite its name QEMU_CLOCK_REALTIME is (normally) not using
      CLOCK_REALTIME / the host system time as base. In order to allow also
      non-trivial RTC emulations (MC146818) to follow the host time instead of
      the virtual guest time, introduce the new clock type QEMU_CLOCK_HOST. It
      is unconditionally based on CLOCK_REALTIME, thus will follow system time
      changes of the host.
      
      The only limitation of its current implementation is that pending
      host_clock timers may not fire early if the host time is pushed forward
      beyond their expiry. So far no urgent need to overcome this limitation
      was identified, so it's left as simple as it is (expiry on next alarm
      timer tick).
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      21d5d12b
  17. 12 9月, 2009 1 次提交
    • A
      Make get_ticks_per_sec() a static inline · 274dfed8
      Anthony Liguori 提交于
      ticks_per_sec is a constant.  There's no need to store it as a variable as it
      never changes since our time is based on units.
      
      Convert get_ticks_per_sec() to a static inline and move the constant into
      qemu-timer.h.  Remove all references to QEMU_TIMER_BASE so that we consistently
      use this interface.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      274dfed8
  18. 11 9月, 2009 1 次提交
  19. 11 8月, 2009 1 次提交
  20. 18 11月, 2007 1 次提交