Received: from eggs.gnu.org ([2001:4830:134:3::10]:33333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJhUT-00064a-Sj for qemu-devel@nongnu.org; Fri, 06 Feb 2015 06:54:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJhUQ-0008Ly-B2 for qemu-devel@nongnu.org; Fri, 06 Feb 2015 06:54:29 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:47857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJhUQ-0008Ls-2i for qemu-devel@nongnu.org; Fri, 06 Feb 2015 06:54:26 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Feb 2015 11:54:24 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2E5CD17D8068 for ; Fri, 6 Feb 2015 11:54:30 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t16BsLX54981152 for ; Fri, 6 Feb 2015 11:54:21 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t16BsK7T005379 for ; Fri, 6 Feb 2015 04:54:21 -0700 Date: Fri, 6 Feb 2015 12:54:15 +0100 From: Cornelia Huck Message-ID: <20150206125415.5c949b76.cornelia.huck@de.ibm.com> In-Reply-To: <1423209253-22222-2-git-send-email-jasowang@redhat.com> References: <1423209253-22222-1-git-send-email-jasowang@redhat.com> <1423209253-22222-2-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/5] virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: mst@redhat.com, Alexander Graf , qemu-devel@nongnu.org, Christian Borntraeger , Anthony Liguori , Amit Shah , Paolo Bonzini , Richard Henderson On Fri, 6 Feb 2015 15:54:09 +0800 Jason Wang wrote: > VIRTIO_PCI_QUEUE_MAX was not specific to pci, so rename it to VIRTIO_QUEUE_MAX. > > Cc: Amit Shah > Cc: Anthony Liguori > Cc: Michael S. Tsirkin > Cc: Alexander Graf > Cc: Richard Henderson > Cc: Cornelia Huck > Cc: Christian Borntraeger > Cc: Paolo Bonzini > Signed-off-by: Jason Wang > --- > 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. You seem to need some changes for this to work for virtio-pci as well, don't you?