Fix IO performance regression in sparc
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 8 Oct 2008 19:50:24 +0000 (19:50 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 8 Oct 2008 19:50:24 +0000 (19:50 +0000)
commitf32f06ffa4445c5f7ae648abc8d2bcf3c2f39033
tree11355529c87a6dce782b8500ce53236b4744600c
parent096f46a6a8dad1ec0d5ce916cb8504488686731b
Fix IO performance regression in sparc

Replace signalfd with signal handler/pipe.  There is no way to interrupt
the CPU execution loop when a file descriptor becomes readable.  This
results in a large performance regression in sparc emulation during
bootup.

This patch switches us to signal handler/pipe which was originally
suggested by Ian Jackson.  The signal handler lets us interrupt the
CPU emulation loop while the write to a pipe lets us avoid the
select/signal race condition.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5451 c046a42c-6fe2-441c-8c8c-71466251a162
Makefile
Makefile.target
block-raw-posix.c
compatfd.c [deleted file]
compatfd.h [deleted file]
configure
qemu-common.h
qemu-tool.c
vl.c