1. 24 5月, 2012 1 次提交
    • J
      audio: Always call fini on exit · aeb29b64
      Jan Kiszka 提交于
      Not only clean up enabled voices but any registered one. Backends like
      pulsaudio rely on unconditional fini handler invocations.
      
      This fixes "Memory pool destroyed but not all memory blocks freed!"
      warnings on VM shutdowns when pa is used and lockups of QEMU on shutdown
      as it got stuck on some pa-internal synchronization point.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      aeb29b64
  2. 17 4月, 2012 2 次提交
  3. 25 2月, 2012 1 次提交
  4. 14 12月, 2011 1 次提交
  5. 16 9月, 2011 1 次提交
    • L
      Replace the VMSTOP macros with a proper state type · 1dfb4dd9
      Luiz Capitulino 提交于
      Today, when notifying a VM state change with vm_state_notify(),
      we pass a VMSTOP macro as the 'reason' argument. This is not ideal
      because the VMSTOP macros tell why qemu stopped and not exactly
      what the current VM state is.
      
      One example to demonstrate this problem is that vm_start() calls
      vm_state_notify() with reason=0, which turns out to be VMSTOP_USER.
      
      This commit fixes that by replacing the VMSTOP macros with a proper
      state type called RunState.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      1dfb4dd9
  6. 21 8月, 2011 1 次提交
  7. 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
  8. 12 1月, 2011 1 次提交
  9. 18 11月, 2010 1 次提交
  10. 10 11月, 2010 1 次提交
    • G
      spice: add audio · 3e313753
      Gerd Hoffmann 提交于
      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: NGerd Hoffmann <kraxel@redhat.com>
      Cc: malc <av1474@comtv.ru>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      3e313753
  11. 06 7月, 2010 1 次提交
  12. 16 3月, 2010 1 次提交
    • M
      monitor: Separate "default monitor" and "current monitor" cleanly · 8631b608
      Markus Armbruster 提交于
      Commits 376253ec..731b0364 introduced global variable cur_mon, which
      points to the "default monitor" (if any), except during execution of
      monitor_read() or monitor_control_read() it points to the monitor from
      which we're reading instead (the "current monitor").  Monitor command
      handlers run within monitor_read() or monitor_control_read().
      
      Default monitor and current monitor are really separate things, and
      squashing them together is confusing and error-prone.
      
      For instance, usb_host_scan() can run both in "info usbhost" and
      periodically via usb_host_auto_check().  It prints to cur_mon, which
      is what we want in the former case: the monitor executing "info
      usbhost".  But since that's the default monitor in the latter case, it
      periodically spams the default monitor there.
      
      A few places use cur_mon to log stuff to the default monitor.  If we
      ever log something while cur_mon points to current monitor instead of
      default monitor, the log temporarily "jumps" to another monitor.
      Whether that can or cannot happen isn't always obvious.
      
      Maybe logging to the default monitor (which may not even exist) is a
      bad idea, and we should log to stderr or a logfile instead.  But
      that's outside the scope of this commit.
      
      Change cur_mon to point to the current monitor.  Create new
      default_mon to point to the default monitor.  Update users of cur_mon
      accordingly.
      
      This fixes the periodical spamming of the default monitor by
      usb_host_scan().  It also stops "log jumping", should that problem
      exist.
      8631b608
  13. 17 1月, 2010 1 次提交
  14. 03 12月, 2009 1 次提交
  15. 18 9月, 2009 4 次提交
  16. 14 9月, 2009 1 次提交
  17. 12 9月, 2009 3 次提交
  18. 11 9月, 2009 1 次提交
  19. 13 8月, 2009 1 次提交
    • M
      Fix typo · 197bc219
      malc 提交于
      197bc219
  20. 12 8月, 2009 2 次提交
  21. 28 7月, 2009 1 次提交
  22. 24 7月, 2009 1 次提交
  23. 22 7月, 2009 1 次提交
  24. 14 5月, 2009 1 次提交
  25. 12 5月, 2009 1 次提交
    • P
      Make AUD_init failure fatal · 0d9acba8
      Paul Brook 提交于
      Failure to initialize the audio subsystem is not handled consistently.
      Where it is handled it has guest visible effects, which is wrong.
      We already have a "nosound" audio driver as a last resort, so trying to
      proceed without an audio backend seems pointless.
      
      Also protect against multiple calls to AUD_init so that this can be
      pushed down into individual devices.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      0d9acba8
  26. 06 3月, 2009 1 次提交
    • A
      monitor: Rework API (Jan Kiszka) · 376253ec
      aliguori 提交于
      Refactor the monitor API and prepare it for decoupled terminals:
      term_print functions are renamed to monitor_* and all monitor services
      gain a new parameter (mon) that will once refer to the monitor instance
      the output is supposed to appear on. However, the argument remains
      unused for now. All monitor command callbacks are also extended by a mon
      parameter so that command handlers are able to pass an appropriate
      reference to monitor output services.
      
      For the case that monitor outputs so far happen without clearly
      identifiable context, the global variable cur_mon is introduced that
      shall once provide a pointer either to the current active monitor (while
      processing commands) or to the default one. On the mid or long term,
      those use case will be obsoleted so that this variable can be removed
      again.
      
      Due to the broad usage of the monitor interface, this patch mostly deals
      with converting users of the monitor API. A few of them are already
      extended to pass 'mon' from the command handler further down to internal
      functions that invoke monitor_printf.
      
      At this chance, monitor-related prototypes are moved from console.h to
      a new monitor.h. The same is done for the readline API.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
      376253ec
  27. 19 2月, 2009 1 次提交
  28. 06 2月, 2009 1 次提交
  29. 23 1月, 2009 1 次提交
  30. 23 12月, 2008 1 次提交
  31. 04 12月, 2008 1 次提交
  32. 16 11月, 2008 1 次提交
  33. 13 11月, 2008 1 次提交