kvm: test for ioeventfd support on old kernels
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 10 Jan 2011 11:50:05 +0000 (13:50 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jan 2011 12:44:16 +0000 (14:44 +0200)
commit6b698481efa06ee3390ff7ed486dad5d70640173
treec4ef0f8473f35374ce472fd9212596d2a45cce3f
parent8ab5f0a694d4904f40e4c2a9320910718957a0f1
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>
kvm-all.c
kvm-stub.c
kvm.h