Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp640688ybi; Thu, 30 May 2019 04:30:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9qHEp5MqPmhXMh8WzSjgh165YyatjLqKsMC23W5Nx/djvWbxZYC0Q1fVxde3dAsbv+b4V X-Received: by 2002:a17:90a:65c2:: with SMTP id i2mr3210599pjs.54.1559215834181; Thu, 30 May 2019 04:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559215834; cv=none; d=google.com; s=arc-20160816; b=tlUUdrFC2NcJx1h5zL8CAvssN3z/C4c+aaFVV5O2P5JNwksoc6R3RwJW+NZYrq6b1y XO7jBIfMZx6ti0sHqA0VbpdNbuYXL1kwPXmOXKG3MwZY3kEepPZBb1zZRJsNJp3hm0gz 9do0tm42dXBSW9yliiuwp0UO/vLBPIzQjGQT36lmN0AaIOWMB0Umt4ZFcbWcHIW+CqVJ H0NDuBpOTaCq3pWE40U2TfXWVG4V1haUSsoEL9OR7KSEqD04m4cdBGxapxkIGfYQf2jp 5RSxRtfVaIXbaF/d4YBoa9Z2Z1VCEOOB6csSgw7f+sLHVHPxxYFuHKrtgYuK0zl/v6lG oNoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hnYCxGJZKcT1U2WS36X5u87tJhTuR53JcMerladDNc0=; b=BQNiHA4RS1eG6o1ezBA/O+5Z1blPalImHa8A5SqOeW1lfeJpsmkRm/35sXf8B2QrQY IqeYEF2cOVc7hRcSrCz4OKnnzdLHG63Y6VaAJrjrtYYWPsLlv+FBRoyRLRCnwRwEpjTX R2NxHgtYpTV/nmQJEuHnwUMjQittnBjKr1WdZlA0gJrOEG5evkBvcYXQYtvUee75SfLi Hwyi+QmgooHgsB7ijPHuO8CHOBop6AIrLtR1Vfd1hZ6P37NeKMUvkbbwjjkoCf+807LL E0CJUVJHvBhXSs5r4GF7dW54ceGhsFg02XJByjrGX/SwBTbvrySF1iKBiyUa8WGx4AM+ iJ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=i5X2x8yv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si2855349pgv.195.2019.05.30.04.30.18; Thu, 30 May 2019 04:30:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=i5X2x8yv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726800AbfE3L2Q (ORCPT + 99 others); Thu, 30 May 2019 07:28:16 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33353 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfE3L2Q (ORCPT ); Thu, 30 May 2019 07:28:16 -0400 Received: by mail-wm1-f67.google.com with SMTP id v19so5819526wmh.0; Thu, 30 May 2019 04:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hnYCxGJZKcT1U2WS36X5u87tJhTuR53JcMerladDNc0=; b=i5X2x8yvViOlOAIO56aMVL1XacEOp7aNYpqcl9r2QVBBhlZSsYcMYD0d+M8eOKDW6L HibcDgAMiPhRGwT7oZvc+6mhnR4hubClpgh8jpD7sS8o4dDFbWpdUo7VfEpb+ZD9Awl6 AfxXSAk7B7/zbML24+6rN4BDX80e6yfglSzfNhHq05+O4OIfQR8sxZvr4EK6YjcNq1PT 5f5qUKbZ6fZWy2k+ouU62OC/DfYJLDUSlCvN1I6qeoXl3z4TrQzk701I4riYhyT2pQLc WyZo6kpqP2dJikq2M1fvhXqJZN7fIHdchVJJtyoEoOylP9183TJgOp2GXfnT6p7x1+U/ SH4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=hnYCxGJZKcT1U2WS36X5u87tJhTuR53JcMerladDNc0=; b=djDp1x/zJ/aLIbjUIbqRkqX/DM68wsuKsQXjy01PH6D6sNJAmy/Trynb0VynI4QqRZ R/QMWmVgHJlO6U/8BZij86XuzlXLtxbSMSszFnrwaTooxxqbqWaNFc2FHUAlTkaPWDwQ YYrCD0189Ir2nVjZ9F8kRsIwd+csEOx51smeR556wlf6E9wB3TiiP2miaJAfGZ8vlfQi qpxiUHi9wDS87qN/UmlAjrMpHkTKXFDxZIJjsmti22aB3X1uLE23lgQSIuFzGEKdef1r CM4H+Z7lyWNWA/Y06jXybrUDT4iHzhDXRnoaZI/aVuHRxPLnLjzwcTq+eo9FKGrufhMs RPXg== X-Gm-Message-State: APjAAAX5czVxs5Efs7ccOLoVEfSJrq3bhyFPknMRnpl7bGPJw+wBW1aG d4CLTnZePBZu5YeJGgo0MmNzR3YR X-Received: by 2002:a1c:1947:: with SMTP id 68mr1952400wmz.171.1559215693274; Thu, 30 May 2019 04:28:13 -0700 (PDT) Received: from donizetti.redhat.com ([2001:b07:6468:f312:f91e:ffe0:9205:3b26]) by smtp.gmail.com with ESMTPSA id o14sm2601855wrp.77.2019.05.30.04.28.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 30 May 2019 04:28:12 -0700 (PDT) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, stefanha@redhat.com Subject: [PATCH 0/2] scsi: add support for request batching Date: Thu, 30 May 2019 13:28:09 +0200 Message-Id: <20190530112811.3066-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows a list of requests to be issued, with the LLD only writing the hardware doorbell when necessary, after the last request was prepared. This is more efficient if we have lists of requests to issue, particularly on virtualized hardware, where writing the doorbell is more expensive than on real hardware. This applies to any HBA, either singlequeue or multiqueue; the second patch implements it for virtio-scsi. Paolo Paolo Bonzini (2): scsi_host: add support for request batching virtio_scsi: implement request batching drivers/scsi/scsi_lib.c | 37 ++++++++++++++++++++++--- drivers/scsi/virtio_scsi.c | 55 +++++++++++++++++++++++++++----------- include/scsi/scsi_cmnd.h | 1 + include/scsi/scsi_host.h | 16 +++++++++-- 4 files changed, 89 insertions(+), 20 deletions(-) -- 2.21.0