mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
f157ed202e
commit
5430a28fe4
9 changed files with 52 additions and 13 deletions
|
@ -6,8 +6,9 @@
|
|||
struct vhost_net;
|
||||
typedef struct vhost_net VHostNetState;
|
||||
|
||||
VHostNetState *vhost_net_init(VLANClientState *backend, int devfd);
|
||||
VHostNetState *vhost_net_init(VLANClientState *backend, int devfd, bool force);
|
||||
|
||||
bool vhost_net_query(VHostNetState *net, VirtIODevice *dev);
|
||||
int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
|
||||
void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue