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-stub.c | |
parent | 85cf2a8d7435754f685a26f95dcb43a93a84ff60 (diff) | |
download | qemu-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-stub.c')
-rw-r--r-- | kvm-stub.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { } |