summaryrefslogtreecommitdiffstats
path: root/kvm-stub.c
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-stub.c
parent85cf2a8d7435754f685a26f95dcb43a93a84ff60 (diff)
downloadhqemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.zip
hqemu-d2f2b8a740c82319f9eea51ebed50815fbc3da3e.tar.gz
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-stub.c')
-rw-r--r--kvm-stub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvm-stub.c b/kvm-stub.c
index 5384a4b..33d4476 100644
--- a/kvm-stub.c
+++ b/kvm-stub.c
@@ -99,6 +99,11 @@ int kvm_has_robust_singlestep(void)
return 0;
}
+int kvm_has_many_ioeventfds(void)
+{
+ return 0;
+}
+
void kvm_setup_guest_memory(void *start, size_t size)
{
}
OpenPOWER on IntegriCloud