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

2021-03-08 Thread Jason Wang
On 2021/3/8 6:06 下午, Philippe Mathieu-Daudé wrote: Hi Jason, On 3/8/21 6:30 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.

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

2021-03-08 Thread Stefan Hajnoczi
On Mon, Mar 08, 2021 at 01:30:59PM +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] virtio-net: calculating proper msix vectors on init

2021-03-08 Thread Philippe Mathieu-Daudé
Hi Jason, On 3/8/21 6:30 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

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

2021-03-07 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