All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: mst@redhat.com, Alexander Graf <agraf@suse.de>,
	qemu-devel@nongnu.org,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	Anthony Liguori <aliguori@amazon.com>,
	Amit Shah <amit.shah@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH 1/5] virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX
Date: Mon, 09 Feb 2015 06:06:51 +0008	[thread overview]
Message-ID: <1423461531.4366.1@smtp.corp.redhat.com> (raw)
In-Reply-To: <20150206125415.5c949b76.cornelia.huck@de.ibm.com>



On Fri, Feb 6, 2015 at 7:54 PM, Cornelia Huck 
<cornelia.huck@de.ibm.com> wrote:
> On Fri,  6 Feb 2015 15:54:09 +0800
> Jason Wang <jasowang@redhat.com> wrote:
> 
>>  VIRTIO_PCI_QUEUE_MAX was not specific to pci, so rename it to 
>> VIRTIO_QUEUE_MAX.
>>  
>>  Cc: Amit Shah <amit.shah@redhat.com>
>>  Cc: Anthony Liguori <aliguori@amazon.com>
>>  Cc: Michael S. Tsirkin <mst@redhat.com>
>>  Cc: Alexander Graf <agraf@suse.de>
>>  Cc: Richard Henderson <rth@twiddle.net>
>>  Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
>>  Cc: Christian Borntraeger <borntraeger@de.ibm.com>
>>  Cc: Paolo Bonzini <pbonzini@redhat.com>
>>  Signed-off-by: Jason Wang <jasowang@redhat.com>
>>  ---
>>   hw/char/virtio-serial-bus.c  |  2 +-
>>   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       | 10 +++++-----
>>   hw/virtio/virtio.c           | 26 +++++++++++++-------------
>>   include/hw/s390x/s390_flic.h |  2 +-
>>   include/hw/virtio/virtio.h   |  2 +-
>>   10 files changed, 33 insertions(+), 33 deletions(-)
> 
> While I certainly agree with the patch on its own, I read through your
> complete patch series as well and I have some additional comments.
> 
> Your patch series bumps up the maximum number of virtqueues for all
> transports, but I think we need to consider carefully what this means
> for each transport.
> 
> For virtio-ccw, for example, we'll run into trouble when the guest 
> uses
> classic queue indicators: These are limited to 64 per device (as I
> assumed 64 virtqueues per device initially and they fit quite nicely
> into a 64 bit integer). If the guest uses adapter interrupts with
> two-stage indicators, we should probably be fine. The guest will
> hopefully care about that, but we need to describe failure modes for
> this in the spec.
> 
> For s390-virtio, I frankly have no idea what large numbers of queues
> will do :) Maybe we just run out of space for devices much earlier.

I see the issue, thanks. So looks like we need a transport specific 
limitation for this.
> 
> 
> You seem to need some changes for this to work for virtio-pci as well,
> don't you?

PCI allows at most 2048 MSI-X entires, and also allow one entry to be 
shared by several virtqueues which looks fine for even thousands of 
virtqueues. If there's a architecture limitation (e.g x86 only allow 
240 interrupt vectors for MSI-X), the rest work was in the driver. If 
not, probably no much work needs to be done for PCI.

Thanks

  reply	other threads:[~2015-02-09  5:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06  7:54 [Qemu-devel] [PATCH 0/5] Support more virtio queues Jason Wang
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 [this message]
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=1423461531.4366.1@smtp.corp.redhat.com \
    --to=jasowang@redhat.com \
    --cc=agraf@suse.de \
    --cc=aliguori@amazon.com \
    --cc=amit.shah@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.