qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] vhost-net issue with multiples interfaces using MQ
@ 2014-08-18 11:42 William Dauchy
  2014-08-19  3:40 ` Jason Wang
  0 siblings, 1 reply; 4+ messages in thread
From: William Dauchy @ 2014-08-18 11:42 UTC (permalink / raw)
  To: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

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,
-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Qemu-devel] vhost-net issue with multiples interfaces using MQ
  2014-08-18 11:42 [Qemu-devel] vhost-net issue with multiples interfaces using MQ William Dauchy
@ 2014-08-19  3:40 ` Jason Wang
  2014-08-19 13:02   ` William Dauchy
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Wang @ 2014-08-19  3:40 UTC (permalink / raw)
  To: William Dauchy, QEMU Developers

On 08/18/2014 07:42 PM, William Dauchy wrote:
> 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

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 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

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

* Re: [Qemu-devel] vhost-net issue with multiples interfaces using MQ
  2014-08-19  3:40 ` Jason Wang
@ 2014-08-19 13:02   ` William Dauchy
  2014-08-20 11:27     ` William Dauchy
  0 siblings, 1 reply; 4+ messages in thread
From: William Dauchy @ 2014-08-19 13:02 UTC (permalink / raw)
  To: Jason Wang; +Cc: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

On Aug19 11:40, Jason Wang wrote:
> 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

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

nope first time I'm using it

-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Qemu-devel] vhost-net issue with multiples interfaces using MQ
  2014-08-19 13:02   ` William Dauchy
@ 2014-08-20 11:27     ` William Dauchy
  0 siblings, 0 replies; 4+ messages in thread
From: William Dauchy @ 2014-08-20 11:27 UTC (permalink / raw)
  To: William Dauchy; +Cc: Jason Wang, QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

On Aug19 15:02, William Dauchy wrote:
> 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.
-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

end of thread, other threads:[~2014-08-20 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 11:42 [Qemu-devel] vhost-net issue with multiples interfaces using MQ William Dauchy
2014-08-19  3:40 ` Jason Wang
2014-08-19 13:02   ` William Dauchy
2014-08-20 11:27     ` William Dauchy

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).