aboutsummaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-01-10 13:50:05 +0200
committerMichael S. Tsirkin <mst@redhat.com>2011-01-10 14:44:16 +0200
commitd2f2b8a740c82319f9eea51ebed50815fbc3da3e (patch)
treec4ef0f8473f35374ce472fd9212596d2a45cce3f /kvm.h
parent85cf2a8d7435754f685a26f95dcb43a93a84ff60 (diff)
downloadqemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.zip
qemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.tar.gz
qemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.tar.bz2
kvm: test for ioeventfd support on old kernels
There used to be a limit of 6 KVM io bus devices in the kernel. On such a kernel, we can't use many ioeventfds for host notification since the limit is reached too easily. Add an API to test for this condition. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm.h b/kvm.h
index 60a9b42..ce08d42 100644
--- a/kvm.h
+++ b/kvm.h
@@ -42,6 +42,7 @@ int kvm_has_robust_singlestep(void);
int kvm_has_debugregs(void);
int kvm_has_xsave(void);
int kvm_has_xcrs(void);
+int kvm_has_many_ioeventfds(void);
#ifdef NEED_CPU_H
int kvm_init_vcpu(CPUState *env);