Add support for eventfd()
commitde629884eaa8e14e06f0383b31b7248a73b22881
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 May 2008 16:55:44 +0000 (7 11:55 -0500)
committerAvi Kivity <avi@qumranet.com>
Thu, 8 May 2008 17:38:24 +0000 (8 20:38 +0300)
treea7c8c603e6622e931afcf14a17ce03b11f7f75eb
parent19ef530164f2f2864ab15faeba3c962f1d70f401
Add support for eventfd()

This patch adds compatibility code so that we can make use of eventfd() within
QEMU.  eventfd() is a pretty useful mechanism as it allows multiple
notifications to be batched in a single system call.

We emulate eventfd() using a standard pipe().

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Makefile.target
kvm-compatfd.c [new file with mode: 0644]
qemu-kvm.h