[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 5/7] virtio-scsi-pci: default num_queues to -smp N
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v6 5/7] virtio-scsi-pci: default num_queues to -smp N |
Date: |
Tue, 18 Aug 2020 17:16:37 +0200 |
On Tue, 18 Aug 2020 15:33:46 +0100
Stefan Hajnoczi <stefanha@redhat.com> wrote:
> Automatically size the number of virtio-scsi-pci, vhost-scsi-pci, and
> vhost-user-scsi-pci request virtqueues to match the number of vCPUs.
> Other transports continue to default to 1 request virtqueue.
>
> A 1:1 virtqueue:vCPU mapping ensures that completion interrupts are
> handled on the same vCPU that submitted the request. No IPI is
> necessary to complete an I/O request and performance is improved. The
> maximum number of MSI-X vectors and virtqueues limit are respected.
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> include/hw/virtio/virtio-scsi.h | 2 ++
> hw/core/machine.c | 3 +++
> hw/scsi/vhost-scsi.c | 3 ++-
> hw/scsi/vhost-user-scsi.c | 3 ++-
> hw/scsi/virtio-scsi.c | 6 +++++-
> hw/virtio/vhost-scsi-pci.c | 10 +++++++---
> hw/virtio/vhost-user-scsi-pci.c | 10 +++++++---
> hw/virtio/virtio-scsi-pci.c | 10 +++++++---
> 8 files changed, 35 insertions(+), 12 deletions(-)
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Re: [PATCH v6 2/7] hw: add 5.2 machine types and 5.1 compat options, Igor Mammedov, 2020/08/19
[PATCH v6 4/7] virtio-scsi: introduce a constant for fixed virtqueues, Stefan Hajnoczi, 2020/08/18
[PATCH v6 3/7] virtio-pci: add virtio_pci_optimal_num_queues() helper, Stefan Hajnoczi, 2020/08/18
[PATCH v6 6/7] virtio-blk-pci: default num_queues to -smp N, Stefan Hajnoczi, 2020/08/18
[PATCH v6 5/7] virtio-scsi-pci: default num_queues to -smp N, Stefan Hajnoczi, 2020/08/18
[PATCH v6 7/7] vhost-user-blk-pci: default num_queues to -smp N, Stefan Hajnoczi, 2020/08/18