aliguori c96f1a48d2 Fix alarm_timer race with select - v3 (Jan Kiszka)
Changing the default IO timeout to 5 s (#5578) made a race visible
between the alarm_timer and select() in main_loop_wait(): If the timer
fired before select was able to block, the full select() timeout could
have been applied instead of returning immediately. Since #5578, this
causes heavy problems to the Musicpal board emulation with stalls up to
5 s, but also with some older Linux guest kernels.

The following patch introduces a pipe that is written to by
host_alarm_handler and select()'ed in main_loop_wait(). This avoids
prevents that select() blocks though a timer has fired and waits for
processing.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5633 c046a42c-6fe2-441c-8c8c-71466251a162
2008-11-05 20:29:45 +00:00
2008-11-04 12:33:21 +00:00
2008-11-05 20:24:35 +00:00
2008-10-26 15:26:09 +00:00
2008-11-03 19:09:29 +00:00
2008-11-01 13:44:52 +00:00
2008-11-04 13:17:17 +00:00
2008-10-04 03:27:44 +00:00
2008-09-09 17:15:28 +00:00
2008-10-12 21:19:57 +00:00
2008-10-12 17:54:42 +00:00
2008-11-05 16:04:33 +00:00
2008-11-05 16:04:33 +00:00
2008-10-27 19:49:12 +00:00
2008-11-05 16:04:33 +00:00
2008-10-02 18:26:42 +00:00
2008-11-05 16:29:27 +00:00
2008-11-05 16:29:27 +00:00
2008-08-25 22:26:03 +00:00
2008-11-05 20:24:35 +00:00
2008-10-25 11:25:48 +00:00
2008-10-24 22:10:31 +00:00
2008-11-05 16:04:33 +00:00
2008-11-01 00:53:09 +00:00
2008-10-29 14:37:18 +00:00
2008-10-02 18:26:42 +00:00
2008-10-26 19:13:20 +00:00
2008-10-05 10:51:10 +00:00
2008-10-05 10:51:10 +00:00
2008-10-28 18:22:59 +00:00
2008-09-06 16:31:30 +00:00
2008-10-02 18:26:42 +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%