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