diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-01-10 13:50:05 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-01-10 14:44:16 +0200 |
commit | d2f2b8a740c82319f9eea51ebed50815fbc3da3e (patch) | |
tree | c4ef0f8473f35374ce472fd9212596d2a45cce3f /kvm.h | |
parent | 85cf2a8d7435754f685a26f95dcb43a93a84ff60 (diff) | |
download | qemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.tar.gz qemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.tar.bz2 qemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.zip |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |