make SIG_IPI to tcg vcpu thread reliable
commit1a28cac3161f8a85ee0256776068eaed2da025e5
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 4 May 2010 12:45:20 +0000 (4 09:45 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 May 2010 17:02:22 +0000 (11 14:02 -0300)
treed2c07947229fefb3504c26fd13e5853d13c68a0e
parent273faf1b6dbdedd0fe9fc519ec73380eced667c2
make SIG_IPI to tcg vcpu thread reliable

Store tcg loop exit request on a global variable, and transfer it to
per-CPUState exit_request after assignment of cpu_single_env.

This makes exit request signal from robust. Drop the timedlock hack.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
cpu-exec.c
cpus.c
exec-all.h