qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: qemu-devel@nongnu.org
Cc: Jason Wang <jasowang@redhat.com>, mst@redhat.com
Subject: [Qemu-devel] [PATCH 0/5] Support more virtio queues
Date: Fri,  6 Feb 2015 15:54:08 +0800	[thread overview]
Message-ID: <1423209253-22222-1-git-send-email-jasowang@redhat.com> (raw)

We current limit the max virtio queues to 64. This is not sufficient
to support some multiqueue deivces (e.g recent Linux support up to 256
tap queues). So this series try to let virtio to support more queues.

No much works needs to be done except:

- Patch 1 renames VIRTIO_PCI_QUEUE_MAX to a more generic name:
  VIRTIO_QUEUE_MAX
- Patch 2 simply increase the the limitation to 513 (256 queue pairs)
- Patch 3 fixes a bug in virtio_del_queue()
- Patch 4 tries to remove the hard coded MSI-X bar size (4096) and allow up to
  2048 MSI-X entries.
- Patch 5 add a boolean property to let the virtio-net can calculate
  the MSI-X bar size based on the number of MSI-X vectors and keep
  migration compability with legacy version whose bar size is 4096.

With this patch, we can support up to 256 queues.Since x86 can only
allow about 240 interrupt vectors for MSI-X, current Linux driver can
only have about 80 queue pairs has their private MSI-X interrupt
vectors. With sharing IRQ with queue pairs (RFC posted in
https://lkml.org/lkml/2014/12/25/169), Linux driver can have up
to about 186 queue pairs has their private MSI-X interrupt vectors.

Thanks

Jason Wang (5):
  virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX
  virtio: increase VIRITO_QUEUE_MAX to 513
  virtio-net: fix the upper bound when trying to delete queues
  pci: remove hard-coded bar size in msix_init_exclusive_bar()
  virtio-pci: introduce auto_msix_bar_size property

 hw/block/nvme.c              |  2 +-
 hw/char/virtio-serial-bus.c  |  2 +-
 hw/i386/pc_piix.c            |  4 ++++
 hw/i386/pc_q35.c             |  4 ++++
 hw/misc/ivshmem.c            |  2 +-
 hw/net/virtio-net.c          |  2 +-
 hw/pci/msix.c                | 18 +++++++-----------
 hw/ppc/spapr.c               |  5 +++++
 hw/s390x/s390-virtio-bus.c   |  4 ++--
 hw/s390x/s390-virtio-ccw.c   |  2 +-
 hw/s390x/virtio-ccw.c        | 10 +++++-----
 hw/scsi/virtio-scsi.c        |  4 ++--
 hw/virtio/virtio-mmio.c      |  4 ++--
 hw/virtio/virtio-pci.c       | 27 ++++++++++++++++++++-------
 hw/virtio/virtio-pci.h       |  3 +++
 hw/virtio/virtio.c           | 26 +++++++++++++-------------
 include/hw/compat.h          |  8 ++++++++
 include/hw/pci/msix.h        |  2 +-
 include/hw/s390x/s390_flic.h |  2 +-
 include/hw/virtio/virtio.h   |  2 +-
 20 files changed, 83 insertions(+), 50 deletions(-)

-- 
1.9.1

             reply	other threads:[~2015-02-06  7:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06  7:54 Jason Wang [this message]
2015-02-06  7:54 ` [Qemu-devel] [PATCH 1/5] virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX Jason Wang
2015-02-06 11:54   ` Cornelia Huck
2015-02-09  5:58     ` Jason Wang
2015-02-06  7:54 ` [Qemu-devel] [PATCH 2/5] virtio: increase VIRITO_QUEUE_MAX to 513 Jason Wang
2015-02-06 16:21   ` Stefan Hajnoczi
2015-02-08 10:51   ` Michael S. Tsirkin
2015-02-09  6:11     ` Jason Wang
2015-02-06  7:54 ` [Qemu-devel] [PATCH 3/5] virtio-net: fix the upper bound when trying to delete queues Jason Wang
2015-02-06  7:54 ` [Qemu-devel] [PATCH 4/5] pci: remove hard-coded bar size in msix_init_exclusive_bar() Jason Wang
2015-02-06  7:54 ` [Qemu-devel] [PATCH 5/5] virtio-pci: introduce auto_msix_bar_size property Jason Wang
2015-02-06 16:26 ` [Qemu-devel] [PATCH 0/5] Support more virtio queues Stefan Hajnoczi

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=1423209253-22222-1-git-send-email-jasowang@redhat.com \
    --to=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).