1. 09 Mar, 2014 1 commit
  2. 17 Oct, 2013 1 commit
  3. 12 Jan, 2013 1 commit
  4. 19 Dec, 2012 1 commit
  5. 13 Jan, 2012 1 commit
  6. 21 Oct, 2011 1 commit
  7. 23 Jul, 2011 1 commit
  8. 10 Jun, 2011 1 commit
    • Alexander Graf's avatar
      sigfd: use pthread_sigmask · 09716e45
      Alexander Graf authored
      Qemu uses signalfd to figure out, if a signal occured without the need
      to actually receive the signal. Instead, it can read from the fd to receive
      its news.
      
      Now, we obviously don't always have signalfd around. Especially not on
      non-Linux systems. So what we do there is that we create a new thread,
      block that thread on all signals and simply call sigwait to wait for a
      signal we're interested in to occur.
      
      This all sounds great, but what we're really doing is:
      
          sigset_t all;
      
          sigfillset(&all);
          sigprocmask(SIG_BLOCK, &all, NULL);
      
      which - on Darwin - blocks all signals on the current _process_, not only
      on the current thread. To block signals on the thread, we can use
      pthread_sigmask().
      
      This patch does that, assuming that my above analysis is correct, and thus
      renders Qemu useable on Darwin again.
      Reported-by: default avatarAndreas Färber <andreas.faerber@web.de>
      Acked-by: default avatarPaolo Bonizni <pbonzini@redhat.com>
      CC: Jan Kiszka <jan.kiszka@siemens.com>
      CC: Anthony Liguori <anthony@codemonkey.ws>
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@gmail.com>
      09716e45
  9. 25 Feb, 2011 1 commit
  10. 20 Oct, 2010 1 commit
    • Marcelo Tosatti's avatar
      signalfd compatibility · dcc38d1c
      Marcelo Tosatti authored
      Port qemu-kvm's signalfd compat code.
      
      commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5
      Author: Anthony Liguori <aliguori@us.ibm.com>
      Date:   Wed May 7 11:55:47 2008 -0500
      
          Use signalfd() in io-thread
      
          This patch reworks the IO thread to use signalfd() instead of sigtimedwait()
          This will eliminate the need to use SIGIO everywhere.
      Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
      dcc38d1c
  11. 08 Oct, 2008 1 commit
    • aliguori's avatar
      Fix IO performance regression in sparc · 9e472e10
      aliguori authored
      Replace signalfd with signal handler/pipe.  There is no way to interrupt
      the CPU execution loop when a file descriptor becomes readable.  This
      results in a large performance regression in sparc emulation during
      bootup.
         
      This patch switches us to signal handler/pipe which was originally
      suggested by Ian Jackson.  The signal handler lets us interrupt the
      CPU emulation loop while the write to a pipe lets us avoid the
      select/signal race condition.
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5451 c046a42c-6fe2-441c-8c8c-71466251a162
      9e472e10
  12. 27 Sep, 2008 2 commits
  13. 10 Sep, 2008 1 commit