Re: [Qemu-devel] [PATCH] virtio-net: calculate proper msix vectors on init

2014-02-23 Thread Jason Wang
On 02/23/2014 02:34 PM, Michael S. Tsirkin wrote: > On Fri, Feb 21, 2014 at 01:00:57PM +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 ve

Re: [Qemu-devel] [PATCH] virtio-net: calculate proper msix vectors on init

2014-02-22 Thread Michael S. Tsirkin
On Fri, Feb 21, 2014 at 01:00:57PM +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: [Qemu-devel] [PATCH] virtio-net: calculate proper msix vectors on init

2014-02-21 Thread Jason Wang
On 02/21/2014 01:00 PM, 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 calculate the numb

[Qemu-devel] [PATCH] virtio-net: calculate proper msix vectors on init

2014-02-20 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 calculate the number of vectors on init. Consider we have N queues,