Re: [PATCH V2] virtio-net: calculating proper msix vectors on init

2021-03-11 Thread Jason Wang
On 2021/3/9 12:23 下午, Jason Wang wrote: Currently, the default msix vectors for virtio-net-pci is 3 which is obvious not suitable for multiqueue guest, so we depends on the user or management tools to pass a correct vectors parameter. In fact, we can simplifying this by calculating the number o

Re: [PATCH V2] virtio-net: calculating proper msix vectors on init

2021-03-09 Thread Stefano Garzarella
On Tue, Mar 09, 2021 at 12:23:14PM +0800, Jason Wang wrote: Currently, the default msix vectors for virtio-net-pci is 3 which is obvious not suitable for multiqueue guest, so we depends on the user or management tools to pass a correct vectors parameter. In fact, we can simplifying this by calcul

Re: [PATCH V2] virtio-net: calculating proper msix vectors on init

2021-03-09 Thread Stefan Hajnoczi
On Tue, Mar 09, 2021 at 12:23:14PM +0800, Jason Wang wrote: > Currently, the default msix vectors for virtio-net-pci is 3 which is > obvious not suitable for multiqueue guest, so we depends on the user > or management tools to pass a correct vectors parameter. In fact, we > can simplifying this by

Re: [PATCH V2] virtio-net: calculating proper msix vectors on init

2021-03-09 Thread Philippe Mathieu-Daudé
On 3/9/21 5:23 AM, Jason Wang wrote: > Currently, the default msix vectors for virtio-net-pci is 3 which is > obvious not suitable for multiqueue guest, so we depends on the user > or management tools to pass a correct vectors parameter. In fact, we > can simplifying this by calculating the number

[PATCH V2] virtio-net: calculating proper msix vectors on init

2021-03-08 Thread Jason Wang
Currently, the default msix vectors for virtio-net-pci is 3 which is obvious not suitable for multiqueue guest, so we depends on the user or management tools to pass a correct vectors parameter. In fact, we can simplifying this by calculating the number of vectors on realize. Consider we have N qu