diff options
| author | Paolo Bonzini | 2015-07-24 13:42:55 +0200 |
|---|---|---|
| committer | Peter Maydell | 2015-07-27 18:12:19 +0200 |
| commit | edec47cfef96209987cb7922286cb384916aae02 (patch) | |
| tree | 72ba93a5e646a5b83526ecda1c5b16006c10c9b1 /target-mips | |
| parent | configure: Work around broken static pkg-config info for Ubuntu gnutls (diff) | |
| download | qemu-edec47cfef96209987cb7922286cb384916aae02.tar.gz qemu-edec47cfef96209987cb7922286cb384916aae02.tar.xz qemu-edec47cfef96209987cb7922286cb384916aae02.zip | |
main-loop: fix qemu_notify_event for aio_notify optimization
aio_notify can be optimized away, and in fact almost always will. However,
qemu_notify_event is used in places where this is incorrect---most notably,
when handling SIGTERM. When aio_notify is optimized away, it is possible that
QEMU enters a blocking ppoll immediately afterwards and stays there, without
reaching main_loop_should_exit().
Fix this by using a bottom half. The bottom half can be optimized too, but
scheduling it is enough for the ppoll not to block. The hang is thus avoided.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1437738175-23624-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-mips')
0 files changed, 0 insertions, 0 deletions
