vhost: force vhost off for non-MSI guests
authormst@redhat.com <mst@redhat.com>
Tue, 1 Feb 2011 20:13:42 +0000 (22:13 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Feb 2011 22:50:44 +0000 (16:50 -0600)
commitffd7ddd1aac6b036891356ce6d758880304a380f
tree066db9fdbac5a5ddca922b5d282161e9b6141b0e
parent658c9b79d32df0c64e980fe7decf0285b1a692dc
vhost: force vhost off for non-MSI guests

When MSI is off, each interrupt needs to be bounced through the io
thread when it's set/cleared, so vhost-net causes more context switches and
higher CPU utilization than userspace virtio which handles networking in
the same thread.

We'll need to fix this by adding level irq support in kvm irqfd,
for now disable vhost-net in these configurations.

Added a vhostforce flag to force vhost-net back on.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vhost.c
hw/vhost.h
hw/vhost_net.c
hw/vhost_net.h
hw/virtio-net.c
hw/virtio-pci.c
hw/virtio.h
net/tap.c
qemu-options.hx