* [PATCHv2] qemu-kvm: add compat eventfd
@ 2009-08-17 8:13 Michael S. Tsirkin
2009-08-17 9:11 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2009-08-17 8:13 UTC (permalink / raw)
To: avi, kvm
Support build on rhel 5.3 where we have syscall for eventfd but not
userspace wrapper.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
compat/sys/eventfd.h | 13 +++++++++++++
configure | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
create mode 100644 compat/sys/eventfd.h
diff --git a/compat/sys/eventfd.h b/compat/sys/eventfd.h
new file mode 100644
index 0000000..f55d96a
--- /dev/null
+++ b/compat/sys/eventfd.h
@@ -0,0 +1,13 @@
+#ifndef _COMPAT_SYS_EVENTFD
+#define _COMPAT_SYS_EVENTFD
+
+#include <unistd.h>
+#include <syscall.h>
+
+
+static inline int eventfd (int count, int flags)
+{
+ return syscall(SYS_eventfd, count, flags);
+}
+
+#endif
diff --git a/configure b/configure
index 84af8bd..2dd0ce8 100755
--- a/configure
+++ b/configure
@@ -866,6 +866,7 @@ if test "$kvm" = "yes" ; then
kvm_cflags="-I$source_path/kvm/include"
kvm_cflags="$kvm_cflags -I$source_path/kvm/include/$kvm_arch"
+kvm_cflags="$kvm_cflags -idirafter $source_path/compat"
# test for KVM_CAP_PIT
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv2] qemu-kvm: add compat eventfd
2009-08-17 8:13 [PATCHv2] qemu-kvm: add compat eventfd Michael S. Tsirkin
@ 2009-08-17 9:11 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-08-17 9:11 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: kvm
On 08/17/2009 11:13 AM, Michael S. Tsirkin wrote:
> Support build on rhel 5.3 where we have syscall for eventfd but not
> userspace wrapper.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-17 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 8:13 [PATCHv2] qemu-kvm: add compat eventfd Michael S. Tsirkin
2009-08-17 9:11 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).