qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] vhost acceleration broken?
@ 2013-07-25  1:55 Rusty Russell
  2013-07-25  2:08 ` Anthony Liguori
  2013-07-25  5:20 ` Michael S. Tsirkin
  0 siblings, 2 replies; 20+ messages in thread
From: Rusty Russell @ 2013-07-25  1:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Hajnoczi, mst

Hi all,

        Using latest kernel and master qemu, the following doesn't use
vhost acceleration:

sudo qemu-system-x86_64 -machine pc,accel=kvm $ARGS -m 1024 -net tap,script=/home/rusty/bin/kvm-ifup,downscript=no,vhost=on -net nic,model=virtio -drive file=$QEMUIMAGE,index=0,media=disk,if=virtio -kernel arch/x86/boot/bzImage -append "root=/dev/vda1 $KARGS $*"

Culprit is here:

hw/net/virtio-net.c:virtio_net_vhost_status():
    if (nc->peer->info->type != NET_CLIENT_OPTIONS_KIND_TAP) {
        return;
    }

info->type is NET_CLIENT_OPTIONS_KIND_HUBPORT.

At a glance, it seems like vlan is always enabled, and that means a hub,
so that change silently disabled vhost acceleration.

It's quite possible that I've screwed up qemu's impenetrable command
line (-net or -netdev, who knows what's better?).

Frustrated,
Rusty.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2013-07-29  7:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25  1:55 [Qemu-devel] vhost acceleration broken? Rusty Russell
2013-07-25  2:08 ` Anthony Liguori
2013-07-25  3:07   ` Rusty Russell
2013-07-25 13:28     ` Anthony Liguori
2013-07-25 14:52       ` Michael S. Tsirkin
2013-07-25 14:56         ` Andreas Färber
2013-07-25 15:24           ` Michael S. Tsirkin
2013-07-25 16:16             ` Anthony Liguori
2013-07-25 16:20               ` Peter Maydell
2013-07-25 16:32                 ` Michael S. Tsirkin
2013-07-28 23:55               ` Rusty Russell
2013-07-29  2:10                 ` Anthony Liguori
2013-07-29  7:33                   ` Michael S. Tsirkin
2013-07-29  7:09                 ` Michael S. Tsirkin
2013-07-25 14:12   ` Peter Maydell
2013-07-25 14:53     ` Michael S. Tsirkin
2013-07-26  9:25       ` Stefan Hajnoczi
2013-07-26  9:43         ` Peter Maydell
2013-07-28  8:10           ` Michael S. Tsirkin
2013-07-25  5:20 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).