virtio-pci: Disable virtio-ioeventfd when !CONFIG_IOTHREAD
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 25 Jan 2011 16:17:14 +0000 (16:17 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:03:00 +0000 (10:03 +0100)
commitbd3c32792ebb6072436fe9d31066c2a7ed04196d
tree44424b95b63e18b1dc4bca9c40739664d959aa86
parent69c381d8ab6eb9ff84e1a55f961cf2587d347049
virtio-pci: Disable virtio-ioeventfd when !CONFIG_IOTHREAD

It is not possible to use virtio-ioeventfd when building without an I/O
thread.  We rely on a signal to kick us out of vcpu execution.  Timers
and AIO use SIGALRM and SIGUSR2 respectively.  Unfortunately eventfd
does not support O_ASYNC (SIGIO) so eventfd cannot be used in a signal
driven manner.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
kvm-all.c