Skip to content
Snippets Groups Projects
  1. Aug 08, 2017
  2. Jul 17, 2016
  3. Jun 16, 2016
  4. Mar 22, 2016
  5. Feb 22, 2016
  6. Feb 04, 2016
  7. Apr 01, 2015
    • Paolo Bonzini's avatar
      rcu: do not create thread in pthread_atfork callback · a59629fc
      Paolo Bonzini authored
      
      If QEMU forks after the CPU threads have been created, qemu_mutex_lock_iothread
      will not be able to do qemu_cpu_kick_thread.  There is no solution other than
      assuming that forks after the CPU threads have been created will end up in an
      exec.  Forks before the CPU threads have been created (such as -daemonize)
      have to call rcu_after_fork manually.
      
      Notably, the oxygen theme for GTK+ forks and shows a "No such process" error
      without this patch.
      
      This patch can be reverted once the iothread loses the "kick the TCG thread"
      magic.
      
      User-mode emulation does not use the iothread, so it can also call
      rcu_after_fork.
      
      Reported by: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Tested by: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a59629fc
  8. Nov 02, 2014
  9. Sep 26, 2014
  10. Mar 13, 2014
  11. Feb 20, 2014
  12. Apr 22, 2013
  13. Dec 19, 2012
  14. Oct 05, 2012
  15. Sep 23, 2012
    • Hitoshi Mitake's avatar
      curses: don't initialize curses when qemu is daemonized · 995ee2bf
      Hitoshi Mitake authored
      
      Current qemu initializes curses even if -daemonize option is
      passed. This cause problem because shell prompt appears without
      calling endwin().
      
      This patch adds new function, is_daemonized(), to OS dependent
      code. With this function, curses_display_init() can check that qemu is
      daemonized or not. If daemonized, curses_display_init() isn't called
      and the problem is avoided.
      
      Of course, -daemonize && -curses doesn't make sense. Users shouldn't
      pass the arguments at the same time. But the problem is very painful
      because Ctrl-C cannot be delivered to the terminal.
      
      Cc: Andrzej Zaborowski  <balrog@zabor.org>
      Cc: Stefan Hajnoczi <stefanha@gmail.com>
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: default avatarHitoshi Mitake <h.mitake@gmail.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
      995ee2bf
  16. Aug 03, 2012
  17. Apr 26, 2012
  18. Feb 01, 2012
  19. Dec 22, 2011
  20. Nov 11, 2011
  21. Aug 21, 2011
  22. Jul 12, 2011
  23. Jun 15, 2011
    • Andreas Färber's avatar
      Introduce format string for pid_t · 953ffe0f
      Andreas Färber authored
      
      BeOS and Haiku on i386 use long for 32-bit types, including pid_t.
      Using %d with pid_t therefore results in a warning.
      
      Unfortunately POSIX:2008 does not define a PRId* string for pid_t.
      
      In some places pid_t was previously casted to long and %ld hardcoded.
      The predecessor of this patch added another upcast for the simpletrace
      filename but was not applied to date.
      
      Since new uses of pid_t with %d keep creeping in, let's instead define
      an OS-dependent format string and use that consistently.
      
      Cc: Stefan Hajnoczi <stefanha@gmail.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Ingo Weinhold <ingo_weinhold@gmx.de>
      Cc: Gleb Natapov <gleb@redhat.com>
      Signed-off-by: default avatarAndreas Färber <andreas.faerber@web.de>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      953ffe0f
  24. Mar 29, 2011
  25. Mar 26, 2011
  26. Mar 16, 2011
  27. Oct 30, 2010
  28. Aug 20, 2010
    • Blue Swirl's avatar
      Use ARRAY_SIZE macro · 66fe09ee
      Blue Swirl authored
      
      Replace array size calculations with ARRAY_SIZE macro.
      
      Implemented with this Coccinelle semantic patch, adapted from
      Linux kernel:
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(*E))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(E[...]))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(T))
      + ARRAY_SIZE(E)
      
      Some files (*-dis.c, tests/*) had to be filtered out.
      
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      66fe09ee
  29. Jul 06, 2010
  30. Jun 12, 2010
Loading