Skip to contentSkip to conversation

vhost-net issue with multiples interfaces using MQ

Qemu-devel William Dauchy 2 participants 4 messages Aug 18, 2014 – Aug 20, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

Using qemu2.1.0, a linux v3.14.X x86_64 as host and a linux v3.12.X x86_64 as guest I'm starting a VM with these network interfaces:

[netdev "vifA.0"]
  type = "tap"
  vhost = "on"
  ifname = "vifA.0"
  downscript = "no"
  script = "no"
  queues = "2"

[device "vifA.0"]
  driver = "virtio-net-pci"
  netdev = "vifA.0"
  mac = "00:16:3e:1a:4e:11"
  mq = "on"
  vectors = "5"

(and same config for two other interfaces but with a different MAC address)

In the error message I'm getting during startup:
unable to start vhost net: 95: falling back on userspace virtio

I saw that it's failing in vhost_dev_start where vhost_dev_set_features is returning an error. r = vhost_dev_set_features(hdev, hdev->log_enabled);
I'm hitting the issue starting from three interfaces, i.e no problem with one or two. I also don't have the issue with disabling multi queue.

Am I wrong on something? What can I do to help debug this situation?

Regards,

Signature · 1 line
William
#1 lore raw
Quoted 20 lines · William Dauchy

Hello,

Using qemu2.1.0, a linux v3.14.X x86_64 as host and a linux v3.12.X x86_64 as guest I'm starting a VM with these network interfaces:

[netdev "vifA.0"]
type = "tap"
vhost = "on"
ifname = "vifA.0"
downscript = "no"
script = "no"
queues = "2"

[device "vifA.0"]
driver = "virtio-net-pci"
netdev = "vifA.0"
mac = "00:16:3e:1a:4e:11"
mq = "on"
vectors = "5"

Quoted 4 lines

(and same config for two other interfaces but with a different MAC address)

In the error message I'm getting during startup:
unable to start vhost net: 95: falling back on userspace virtio

What's the qemu command line for your testing? I try simple command line with 3 mq cards in qemu 2.1. Everything works fine.

Quoted 8 lines

I saw that it's failing in vhost_dev_start where vhost_dev_set_features is returning an error. r = vhost_dev_set_features(hdev, hdev->log_enabled);
I'm hitting the issue starting from three interfaces, i.e no problem with one or two. I also don't have the issue with disabling multi queue.

Am I wrong on something? What can I do to help debug this situation?

Regards,

Is this a regression? If yes, you can probably bisect to find the first bad commit.

Thanks

#2 lore raw
Quoted 2 lines · Jason Wang

What's the qemu command line for your testing? I try simple command line with 3 mq cards in qemu 2.1. Everything works fine.

I'm using readconfig option to read the three vif interfaces. thanks for testing I will re-triple test to see what's wrong

Quoted 2 lines

Is this a regression? If yes, you can probably bisect to find the first bad commit.

nope first time I'm using it

Signature · 1 line
William
#3 lore raw
Quoted 2 lines · William Dauchy

I'm using readconfig option to read the three vif interfaces. thanks for testing I will re-triple test to see what's wrong

so indeed sorry for the noise, I was wrong in my tests.

Signature · 1 line
William