]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Do not poll ioeventfd if vhost is enabled
authorAsias He <asias.hejun@gmail.com>
Wed, 11 Jul 2012 16:08:14 +0000 (00:08 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 12 Jul 2012 07:09:34 +0000 (10:09 +0300)
commit2672f2fdde2d991115282c7650e9f7580b38953c
tree82576542587e619ac9b713e6e857df5027f7519e
parent0ce52d60ed1d42b7b56070ab1c69cbd592e83d8b
kvm tools: Do not poll ioeventfd if vhost is enabled

If vhost is enabled for a virtio device, vhost will poll the ioeventfd
in kernel side and there is no need to poll it in userspace. Otherwise,
both vhost kernel and userspace will race to poll.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/ioeventfd.h
tools/kvm/include/kvm/virtio.h
tools/kvm/ioeventfd.c
tools/kvm/virtio/mmio.c
tools/kvm/virtio/net.c
tools/kvm/virtio/pci.c