From: Stefan Hajnoczi <stefanha@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel@nongnu.org, ehabkost@redhat.com, mst@redhat.com
Subject: Re: [PATCH] virtio-net: calculating proper msix vectors on init
Date: Mon, 8 Mar 2021 14:39:11 +0000 [thread overview]
Message-ID: <YEY3D/DysDwK7Kbe@stefanha-x1.localdomain> (raw)
In-Reply-To: <20210308053059.28753-1-jasowang@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
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 calculating the number of vectors on realize.
>
> Consider we have N queues, the number of vectors needed is 2*N + 2
> (#queue pais + plus one config interrupt and control vq). We didn't
Maybe this can be squashed in but it's not important:
s/pais/pairs/
> check whether or not host support control vq because it was added
> unconditionally by qemu to avoid breaking legacy guests such as Minix.
>
> Signed-off-by: Jason Wang <jasowang@redhat.com>
> ---
> hw/core/machine.c | 1 +
> hw/virtio/virtio-net-pci.c | 8 +++++++-
> 2 files changed, 8 insertions(+), 1 deletion(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2021-03-08 14:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 5:30 [PATCH] virtio-net: calculating proper msix vectors on init Jason Wang
2021-03-08 10:06 ` Philippe Mathieu-Daudé
2021-03-09 4:24 ` Jason Wang
2021-03-08 14:39 ` Stefan Hajnoczi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YEY3D/DysDwK7Kbe@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).