1. 09 Sep, 2014 1 commit
  2. 12 Aug, 2014 4 commits
  3. 09 Jun, 2014 5 commits
  4. 07 May, 2014 2 commits
  5. 25 Mar, 2014 1 commit
    • Stefan Hajnoczi's avatar
      osdep: initialize glib threads in all QEMU tools · ae2990c2
      Stefan Hajnoczi authored
      glib versions prior to 2.31.0 require an explicit g_thread_init() call
      to enable multi-threading.
      
      Failure to initialize threading causes glib to take single-threaded code
      paths without synchronization.  For example, the g_slice allocator will
      crash due to race conditions.
      
      Fix this for all QEMU tool programs (qemu-nbd, qemu-io, qemu-img) by
      moving the g_thread_init() call from vl.c:main() into a new
      osdep.c:thread_init() constructor function.
      
      thread_init() has __attribute__((constructor)) and is automatically
      invoked by the runtime during startup.
      
      We can now drop the "simple" trace backend's g_thread_init() call since
      thread_init() already called it.
      
      Note that we must keep coroutine-gthread.c's g_thread_init() call which
      is located in a constructor function.  There is no guarantee for
      constructor function ordering so thread_init() may only be called later.
      Reported-by: default avatarMario de Chenno <mario.dechenno@unina2.it>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      ae2990c2
  6. 12 Mar, 2014 1 commit
  7. 19 Feb, 2014 1 commit
  8. 27 Jan, 2014 2 commits
  9. 03 May, 2013 1 commit
    • Eiichi Tsukata's avatar
      trace: Add ftrace tracing backend · 781e9545
      Eiichi Tsukata authored
      This patch adds a ftrace tracing backend which sends trace event to
      ftrace marker file. You can effectively compare qemu trace data and
      kernel(especially, kvm.ko when using KVM) trace data.
      The ftrace backend is restricted to Linux only.
      
      To try out the ftrace backend:
      
       $ ./configure --trace-backend=ftrace
       $ make
      
      if you use KVM, enable kvm events in ftrace:
      
       # sudo echo 1 > /sys/kernel/debug/tracing/events/kvm/enable
      
      After running qemu by root user, you can get the trace:
      
       # cat /sys/kernel/debug/tracing/trace
      Signed-off-by: default avatarEiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      781e9545
  10. 28 Mar, 2013 6 commits
  11. 12 Feb, 2013 2 commits
  12. 05 Feb, 2013 3 commits
  13. 29 Jan, 2013 1 commit
  14. 12 Jan, 2013 3 commits
  15. 23 Dec, 2012 1 commit
  16. 19 Dec, 2012 1 commit
  17. 16 Nov, 2012 1 commit
  18. 14 Aug, 2012 4 commits