2 * signalfd/eventfd compatibility
4 * Copyright IBM, Corp. 2008
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #include "qemu-common.h"
17 #include <sys/syscall.h>
19 int kvm_eventfd(int *fds
)
21 #if defined(SYS_eventfd)
24 ret
= syscall(SYS_eventfd
, 0);
26 fds
[0] = fds
[1] = ret
;
28 } else if (!(ret
== -1 && errno
== ENOSYS
))