aurel32 8a11f5ff08 Fix race condition on access to env->interrupt_request
env->interrupt_request is accessed as the bit level from both main code
and signal handler, making a race condition possible even on CISC CPU.
This causes freeze of QEMU under high load when running the dyntick
clock.

The patch below move the bit corresponding to CPU_INTERRUPT_EXIT in a
separate variable, declared as volatile sig_atomic_t, so it should be
work even on RISC CPU.

We may want to move the cpu_interrupt(env, CPU_INTERRUPT_EXIT) case in
its own function and get rid of CPU_INTERRUPT_EXIT. That can be done
later, I wanted to keep the patch short for easier review.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10_0@6729 c046a42c-6fe2-441c-8c8c-71466251a162
2009-03-06 21:49:37 +00:00
2009-02-09 23:19:44 +00:00
2009-03-03 06:12:14 +00:00
2009-01-14 19:40:27 +00:00
2009-01-22 17:15:25 +00:00
2009-01-05 18:11:53 +00:00
2009-01-14 18:39:49 +00:00
2009-01-14 18:39:49 +00:00
2009-02-05 21:23:54 +00:00
2009-02-09 19:58:22 +00:00
2009-02-05 21:23:58 +00:00
2009-02-08 17:17:52 +00:00
2009-01-05 18:11:53 +00:00
2009-01-24 18:19:25 +00:00
2009-01-14 18:39:49 +00:00
2009-02-11 21:00:32 +00:00
2009-01-14 18:34:22 +00:00
2009-03-03 17:37:21 +00:00
2009-02-09 23:19:32 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%