Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月17日 12:32, Michael S. Tsirkin wrote: On Thu, Nov 16, 2017 at 08:04:34PM +0800, Jason Wang wrote: On 2017年11月16日 17:32, Longpeng (Mike) wrote: Hi Jason, On 2017/11/16 17:13, Jason Wang wrote: On 2017年11月16日 17:01, Gonglei (Arei) wrote: No, Windows guest + vhost-user/DPDK. BTW

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Longpeng (Mike)
On 2017/11/17 12:32, Michael S. Tsirkin wrote: > On Thu, Nov 16, 2017 at 08:04:34PM +0800, Jason Wang wrote: >> >> >> On 2017年11月16日 17:32, Longpeng (Mike) wrote: >>> Hi Jason, >>> >>> On 2017/11/16 17:13, Jason Wang wrote: >>> On 2017年11月16日 17:01, Gonglei (Arei) wrote: > No,

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Michael S. Tsirkin
On Thu, Nov 16, 2017 at 08:04:34PM +0800, Jason Wang wrote: > > > On 2017年11月16日 17:32, Longpeng (Mike) wrote: > > Hi Jason, > > > > On 2017/11/16 17:13, Jason Wang wrote: > > > > > > > > On 2017年11月16日 17:01, Gonglei (Arei) wrote: > > > > No, Windows guest + vhost-user/DPDK. > > > > > > > >

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月17日 10:01, Longpeng (Mike) wrote: On 2017/11/16 20:04, Jason Wang wrote: On 2017年11月16日 17:32, Longpeng (Mike) wrote: Hi Jason, On 2017/11/16 17:13, Jason Wang wrote: On 2017年11月16日 17:01, Gonglei (Arei) wrote: No, Windows guest + vhost-user/DPDK. BTW pls see virtio spec in

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Longpeng (Mike)
On 2017/11/16 20:04, Jason Wang wrote: > > > On 2017年11月16日 17:32, Longpeng (Mike) wrote: >> Hi Jason, >> >> On 2017/11/16 17:13, Jason Wang wrote: >> >>> >>> On 2017年11月16日 17:01, Gonglei (Arei) wrote: No, Windows guest + vhost-user/DPDK. BTW pls see virtio spec in :

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月16日 17:32, Longpeng (Mike) wrote: Hi Jason, On 2017/11/16 17:13, Jason Wang wrote: On 2017年11月16日 17:01, Gonglei (Arei) wrote: No, Windows guest + vhost-user/DPDK. BTW pls see virtio spec in : "If VIRTIO_NET_F_MQ is negotiated, each of receiveq1. . .receiveqN that will be

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月16日 16:11, Yan Vugenfirer wrote: Hi Jason, Windows driver will initialise only the amount of queue based on the amount of available vCPUs. So if there will be more queues in the device than we have vCPUs on the guest, the driver will not initialise “excessive” queues. This is

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Longpeng (Mike)
Hi Jason, On 2017/11/16 17:13, Jason Wang wrote: > > > On 2017年11月16日 17:01, Gonglei (Arei) wrote: >> No, Windows guest + vhost-user/DPDK. >> >> BTW pls see virtio spec in : >> >> "If VIRTIO_NET_F_MQ is negotiated, each of receiveq1. . .receiveqN that will >> be used SHOULD be populated >>

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月16日 17:01, Gonglei (Arei) wrote: No, Windows guest + vhost-user/DPDK. BTW pls see virtio spec in : "If VIRTIO_NET_F_MQ is negotiated, each of receiveq1. . .receiveqN that will be used SHOULD be populated with receive buffers." It is not mandatory that all queues must be

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Longpeng (Mike)
On 2017/11/16 16:54, Jason Wang wrote: > > > On 2017年11月16日 13:53, Longpeng (Mike) wrote: >> On 2017/11/15 23:54, Longpeng(Mike) wrote: >>> 2017-11-15 23:05 GMT+08:00 Jason Wang: On 2017年11月15日 22:55, Longpeng(Mike) wrote: > Hi guys, > > We got a BUG

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月16日 17:01, Gonglei (Arei) wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Thursday, November 16, 2017 4:55 PM To: longpeng; m...@redhat.com Cc: Longpeng(Mike); qemu-devel@nongnu.org; Gonglei (Arei); Wangjing (King, Euler); Huangweidong (C);

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Gonglei (Arei)
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Thursday, November 16, 2017 4:55 PM > To: longpeng; m...@redhat.com > Cc: Longpeng(Mike); qemu-devel@nongnu.org; Gonglei (Arei); Wangjing (King, > Euler); Huangweidong (C); stefa...@redhat.com > Subject: Re:

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Jason Wang
On 2017年11月16日 13:53, Longpeng (Mike) wrote: On 2017/11/15 23:54, Longpeng(Mike) wrote: 2017-11-15 23:05 GMT+08:00 Jason Wang: On 2017年11月15日 22:55, Longpeng(Mike) wrote: Hi guys, We got a BUG report from our testers yesterday, the testing scenario was migrating a VM

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-16 Thread Yan Vugenfirer
Hi Jason, Windows driver will initialise only the amount of queue based on the amount of available vCPUs. So if there will be more queues in the device than we have vCPUs on the guest, the driver will not initialise “excessive” queues. This is tied to the way RSS on Windows should be

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-15 Thread Longpeng (Mike)
Hi Jason & Michael, Do you have any idea about this problem ? -- Regards, Longpeng(Mike) On 2017/11/15 23:54, Longpeng(Mike) wrote: > 2017-11-15 23:05 GMT+08:00 Jason Wang : >> >> >> On 2017年11月15日 22:55, Longpeng(Mike) wrote: >>> >>> Hi guys, >>> >>> We got a BUG report

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-15 Thread Longpeng(Mike)
2017-11-15 23:05 GMT+08:00 Jason Wang : > > > On 2017年11月15日 22:55, Longpeng(Mike) wrote: >> >> Hi guys, >> >> We got a BUG report from our testers yesterday, the testing scenario was >> migrating a VM (Windows guest, *4 vcpus*, 4GB, vhost-user net: *7 >> queues*). >> >> We

Re: [Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-15 Thread Jason Wang
On 2017年11月15日 22:55, Longpeng(Mike) wrote: Hi guys, We got a BUG report from our testers yesterday, the testing scenario was migrating a VM (Windows guest, *4 vcpus*, 4GB, vhost-user net: *7 queues*). We found the cause reason, and we'll report the BUG or send a fix patch to upstream if

[Qemu-devel] [Question] why need to start all queues in vhost_net_start

2017-11-15 Thread Longpeng(Mike)
Hi guys, We got a BUG report from our testers yesterday, the testing scenario was migrating a VM (Windows guest, *4 vcpus*, 4GB, vhost-user net: *7 queues*). We found the cause reason, and we'll report the BUG or send a fix patch to upstream if necessary( we haven't test the upstream yet,