Rusty Russell abd41f037e lguest: fix race in halt code
When the Guest does the LHCALL_HALT hypercall, we go to sleep, expecting
that a timer or the Waker will wake_up_process() us.

But we do it in a stupid way, leaving a classic missing wakeup race.

So split maybe_do_interrupt() into interrupt_pending() and
try_deliver_interrupt(), and check maybe_do_interrupt() and the
"break_out" flag before calling schedule.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-06-12 22:27:02 +09:30
..
2009-06-10 23:07:16 +02:00
2009-05-26 23:50:40 +09:00
2009-06-12 22:27:02 +09:30
2009-06-05 08:05:23 -07:00
2009-05-07 17:28:59 +02:00
2009-06-01 21:06:21 +02:00
2009-06-11 10:33:09 +03:00
2009-06-11 21:36:11 -04:00