Skip to content
Snippets Groups Projects
  1. Jan 15, 2021
  2. Oct 21, 2020
  3. Sep 23, 2020
  4. Oct 18, 2019
  5. Sep 23, 2019
  6. Aug 21, 2019
  7. Aug 16, 2019
  8. Jun 12, 2019
  9. Mar 11, 2019
  10. Mar 12, 2018
  11. May 19, 2016
  12. Mar 22, 2016
    • Rutuja Shah's avatar
      Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND · 73bcb24d
      Rutuja Shah authored
      
      This patch replaces get_ticks_per_sec() calls with the macro
      NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec()
      is then removed.  This replacement improves the readability and
      understandability of code.
      
      For example,
      
          timer_mod(fdctrl->result_timer,
      	      qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50));
      
      NANOSECONDS_PER_SECOND makes it obvious that qemu_clock_get_ns
      matches the unit of the expression on the right side of the plus.
      
      Signed-off-by: default avatarRutuja Shah <rutu.shah.26@gmail.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      73bcb24d
  13. Feb 02, 2016
  14. Jun 22, 2015
  15. Jun 15, 2015
  16. May 26, 2014
  17. Feb 03, 2014
  18. Aug 22, 2013
  19. Dec 19, 2012
  20. Apr 17, 2012
  21. Mar 21, 2011
    • 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
  22. Jan 12, 2011
  23. Nov 11, 2010
  24. Nov 09, 2010
    • Gerd Hoffmann's avatar
      spice: add audio · 3e313753
      Gerd Hoffmann authored
      
      Add support for the spice audio interface.  With this patch applied
      audio can be forwarded over the network from/to the spice client.  Both
      recording and playback is supported.
      
      The driver is first in the driver list, but the can_be_default flag is
      set only in case spice is active.  So if you have the spice protocol
      enabled the spice audio driver is the default one, otherwise whatever
      comes first after spice in the list.  Overriding the default using
      QEMU_AUDIO_DRV works in any case.
      
      [ v2: audio codestyle: add spaces before open parenthesis ]
      [ v2: add const to silence array ]
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Cc: malc <av1474@comtv.ru>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
      3e313753
Loading