aboutsummaryrefslogtreecommitdiff
path: root/block-raw-win32.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-10 15:45:19 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-10 15:45:19 +0000
commitbaf35cb90204d75404892aa4e52628ae7a00669b (patch)
tree44d96418e4d0e90c5841692a29743022fbc107c1 /block-raw-win32.c
parent279826619dfb36bac39d8549526a76eabb9d311e (diff)
Use signalfd() to work around signal/select race
This patch introduces signalfd() to work around the signal/select race in checking for AIO completions. For platforms that don't support signalfd(), we emulate it with threads. There was a long discussion about this approach. I don't believe there are any fundamental problems with this approach and I believe eliminating the use of signals is a good thing. I've tested Windows and Linux using Windows and Linux guests. I've also checked for disk IO performance regressions. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5187 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw-win32.c')
-rw-r--r--block-raw-win32.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/block-raw-win32.c b/block-raw-win32.c
index 43d3f6c4c2..7b88dcf482 100644
--- a/block-raw-win32.c
+++ b/block-raw-win32.c
@@ -350,18 +350,10 @@ void qemu_aio_init(void)
{
}
-void qemu_aio_poll(void)
-{
-}
-
void qemu_aio_flush(void)
{
}
-void qemu_aio_wait_start(void)
-{
-}
-
void qemu_aio_wait(void)
{
#ifndef QEMU_IMG
@@ -369,10 +361,6 @@ void qemu_aio_wait(void)
#endif
}
-void qemu_aio_wait_end(void)
-{
-}
-
BlockDriver bdrv_raw = {
"raw",
sizeof(BDRVRawState),