1. 14 1月, 2012 1 次提交
  2. 21 12月, 2011 1 次提交
  3. 15 12月, 2011 1 次提交
  4. 11 10月, 2011 1 次提交
  5. 24 7月, 2011 1 次提交
  6. 21 3月, 2011 1 次提交
    • 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
  7. 29 1月, 2011 2 次提交
  8. 12 12月, 2010 1 次提交
  9. 06 7月, 2010 1 次提交
  10. 13 6月, 2010 1 次提交
    • J
      hpet/rtc: Rework RTC IRQ replacement by HPET · 7d932dfd
      Jan Kiszka 提交于
      Allow the intercept the RTC IRQ for the HPET legacy mode. Then push
      routing to IRQ8 completely into the HPET. This allows to turn
      hpet_in_legacy_mode() into a private function. Furthermore, this stops
      the RTC from clearing IRQ8 even if the HPET is in control.
      
      This patch comes with a side effect: The RTC timers will no longer be
      stoppend when there is no IRQ consumer, possibly causing a minor
      performance degration. But as the guest may want to redirect the RTC to
      the SCI in that mode, it should normally disable unused IRQ source
      anyway.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      7d932dfd
  11. 31 5月, 2010 1 次提交
  12. 16 5月, 2010 2 次提交
  13. 15 5月, 2010 1 次提交
  14. 22 3月, 2010 1 次提交
  15. 09 3月, 2010 1 次提交
  16. 20 1月, 2010 1 次提交
    • G
      reduce number of reinjects on ACK · dd17765b
      Gleb Natapov 提交于
      Windows 7 BSODs under load with HAL_RTC_IRQF_WILL_NOT_CLEAR error.
      
      It happens here:
      hal!HalpRtcUnmaskClock:
      8281b93a 8bff            mov     edi,edi
      8281b93c 56              push    esi
      8281b93d 33f6            xor     esi,esi
      8281b93f 6a0c            push    0Ch
      8281b941 e8b2ffffff      call    hal!CMOS_READ (8281b8f8)
      8281b946 84c0            test    al,al
      8281b948 7920            jns     hal!HalpRtcUnmaskClock+0x30 (8281b96a)
      8281b94a 6a0a            push    0Ah
      8281b94c 46              inc     esi
      8281b94d e854c8ffff      call    hal!KeStallExecutionProcessor (828181a6)
      8281b952 83fe64          cmp     esi,64h
      8281b955 72e8            jb      hal!HalpRtcUnmaskClock+0x5 (8281b93f)
      8281b957 6a00            push    0
      8281b959 6a00            push    0
      8281b95b 6a00            push    0
      8281b95d 680a010000      push    10Ah
      8281b962 6a5c            push    5Ch
      8281b964 ff1500c38082    call    dword ptr [hal!_imp__KeBugCheckEx (8280c300)]
      8281b96a 5e              pop     esi
      8281b96b c3              ret
      
      So it loops for 100(64h) times reading register C before BSOD. Lets
      reduce number of immediate reinjection well under this limit.
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      dd17765b
  17. 12 12月, 2009 1 次提交
    • G
      fix rtc-td-hack on host without high-res timers · ba32edab
      Gleb Natapov 提交于
      On hosts without high-res timers it is impossible to inject rtc interrupt
      faster then 1kHz. Windows sometimes configures RTC to generate 1kHz
      interrupts, so we can't inject missed interrupts when running on such
      hosts. Always injecting an interrupt on REG_C read is also not an option
      since Windows wait for REG_C to become zero with interrupt disabled
      during boot. This patch uses mixed approach: accelerate timer + inject
      up to 1000 interrupts on REG_C read.
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ba32edab
  18. 23 11月, 2009 1 次提交
  19. 28 10月, 2009 4 次提交
  20. 12 10月, 2009 1 次提交
  21. 07 10月, 2009 1 次提交
    • M
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster 提交于
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33
  22. 05 10月, 2009 1 次提交
    • J
      Enable host-clock-based RTC · 6875204c
      Jan Kiszka 提交于
      Switch RTC emulations to the new host_clock instead of vm_clock by
      default. This has the advantage that the emulated RTC will follow
      automatically the host time while it might be tuned via NTP. vm_clock
      can still be selected by passing '-rtc clock=vm' on the command line.
      
      Note that some RTC emulations (at least M48T59) already use the host
      time unconditionally while others (namely MC146818) do not. This patch
      introduces the required infrastructure for selecting the base clock but
      only converts MC146818 for now.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6875204c
  23. 02 10月, 2009 2 次提交
  24. 11 9月, 2009 1 次提交
  25. 10 9月, 2009 2 次提交
  26. 26 8月, 2009 1 次提交
  27. 30 6月, 2009 1 次提交
  28. 17 6月, 2009 1 次提交
  29. 16 6月, 2009 1 次提交
  30. 15 6月, 2009 1 次提交
    • G
      Add rtc reset function. · eeb7c03c
      Gleb Natapov 提交于
      On reset:
      Periodic Interrupt Enable (PIE) bit is cleared to zero
      Alarm Interrupt Enable (AIE) bit is cleared to zero
      Update ended Interrupt Flag (UF) bit is cleared to zero
      Interrupt Request status Flag (IRQF) bit is cleared to zero
      Periodic Interrupt Flag (PF) bit is cleared to zero
      Alarm Interrupt Flag (AF) bit is cleared to zero
      Square Wave output Enable (SQWE) zero
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      eeb7c03c
  31. 23 4月, 2009 1 次提交
  32. 10 4月, 2009 1 次提交
  33. 08 4月, 2009 1 次提交