qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [CFT PATCH 00/12] Tricky parts of my iothread-for-win32 stuff
@ 2011-02-08 17:18 Paolo Bonzini
  2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 01/12] io-thread: make sure to initialize qemu_work_cond and qemu_cpu_cond Paolo Bonzini
                   ` (13 more replies)
  0 siblings, 14 replies; 24+ messages in thread
From: Paolo Bonzini @ 2011-02-08 17:18 UTC (permalink / raw)
  To: qemu-devel

Ok, so let's start the dance...

These are the generic parts of the iothread-for-win32 work I made
last year, rebased to today's qemu (qemu-kvm.git/uq/master merged
with qemu.git/master, because it conflicts with some patches from Jan).
I never tested them too much, and that's one of the reasons why I never
submitted the stuff.  Perhaps with some help they can make it this time.

Testing I made now is still a bit limited, but the patches can boot
RHEL and Fedora under both Windows iothread and Linux iothread.  FWIW,
under Wine I need iothread to boot Linux.

The main idea is to replace timedwaits with waits.  First because the
timedwaits were such only out of laziness; second because timedwait
is a pain to implement for Win32 where we have to manually implement
condvars.

Anthony Liguori (1):
  io-thread: make sure to initialize qemu_work_cond and qemu_cpu_cond

Paolo Bonzini (11):
  cris, microblaze: use cpu_has_work
  inline cpu_halted into sole caller
  change qemu_thread_equal API to always compare with current thread
  always qemu_cpu_kick after unhalting a cpu
  exit round-robin vcpu loop if cpu->stopped is true
  always signal pause_cond after stopping a VCPU
  do not use timedwait on qemu_halt_cond
  do not use timedwait on qemu_system_cond
  do not use timedwait on qemu_pause_cond
  do not use timedwait on qemu_cpu_cond
  iothread stops the vcpu thread via IPI

 cpu-defs.h               |    1 +
 cpu-exec.c               |    9 +++++++--
 cpus.c                   |   38 +++++++++++++++++++-------------------
 hw/apic.c                |    1 +
 hw/ppc.c                 |    2 ++
 hw/sun4m.c               |   11 +++++++++--
 hw/sun4u.c               |    4 ++--
 qemu-thread.c            |    4 ++--
 qemu-thread.h            |    2 +-
 target-alpha/exec.h      |   11 -----------
 target-arm/exec.h        |   13 -------------
 target-cris/exec.h       |   13 -------------
 target-i386/exec.h       |   12 ------------
 target-m68k/exec.h       |   10 ----------
 target-microblaze/exec.h |   13 -------------
 target-mips/exec.h       |   11 -----------
 target-ppc/exec.h        |   11 -----------
 target-s390x/exec.h      |   12 ------------
 target-s390x/kvm.c       |    1 +
 target-sh4/cpu.h         |    1 -
 target-sh4/exec.h        |   11 -----------
 target-sparc/exec.h      |   10 ----------
 22 files changed, 45 insertions(+), 156 deletions(-)

-- 
1.7.3.5

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-02-14 19:22 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 17:18 [Qemu-devel] [CFT PATCH 00/12] Tricky parts of my iothread-for-win32 stuff Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 01/12] io-thread: make sure to initialize qemu_work_cond and qemu_cpu_cond Paolo Bonzini
2011-02-14 19:21   ` Anthony Liguori
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 02/12] cris, microblaze: use cpu_has_work Paolo Bonzini
2011-02-08 19:42   ` Edgar E. Iglesias
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 03/12] inline cpu_halted into sole caller Paolo Bonzini
2011-02-08 20:24   ` [Qemu-devel] " Jan Kiszka
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 04/12] change qemu_thread_equal API to always compare with current thread Paolo Bonzini
2011-02-08 20:25   ` [Qemu-devel] " Jan Kiszka
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 05/12] always qemu_cpu_kick after unhalting a cpu Paolo Bonzini
2011-02-08 20:25   ` [Qemu-devel] " Jan Kiszka
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 06/12] exit round-robin vcpu loop if cpu->stopped is true Paolo Bonzini
2011-02-08 20:24   ` [Qemu-devel] " Jan Kiszka
2011-02-09  7:24     ` Paolo Bonzini
2011-02-09  7:24     ` Paolo Bonzini
2011-02-09  8:40       ` Jan Kiszka
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 07/12] always signal pause_cond after stopping a VCPU Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 08/12] do not use timedwait on qemu_halt_cond Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 09/12] do not use timedwait on qemu_system_cond Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 10/12] do not use timedwait on qemu_pause_cond Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 11/12] do not use timedwait on qemu_cpu_cond Paolo Bonzini
2011-02-08 17:18 ` [Qemu-devel] [CFT PATCH 12/12] iothread stops the vcpu thread via IPI Paolo Bonzini
2011-02-08 19:31 ` [Qemu-devel] [CFT PATCH 00/12] Tricky parts of my iothread-for-win32 stuff Aurelien Jarno
2011-02-08 20:38 ` [Qemu-devel] " Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).