Received: from eggs.gnu.org ([2001:4830:134:3::10]:36548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZU5N-00089u-Pu for qemu-devel@nongnu.org; Tue, 08 Sep 2015 21:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZU5J-0008Nd-Pv for qemu-devel@nongnu.org; Tue, 08 Sep 2015 21:22:05 -0400 From: David Gibson Date: Wed, 9 Sep 2015 11:22:16 +1000 Message-Id: <1441761736-32030-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH] spapr: Reduce advertised max LUNs for spapr_vscsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, benh@kernel.crashing.org Cc: lvivier@redhat.com, thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson The implementation of the PAPR paravirtual SCSI adapter currently allows up to 32 LUNs (max_lun == 31). However the adapter isn't really designed to support lots of devices - the PowerVM implementation only ever puts one disk per vSCSI controller. More specifically, the Linux guest side vscsi driver (the only one we really care about) is hardcoded to allow a maximum of 8 LUNs. So, reduce the number of LUNs on the qemu side to 8, so we don't falsely advertise that more LUNs can work. Signed-off-by: David Gibson --- hw/scsi/spapr_vscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index 891424f..bb1dd6f 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -1192,7 +1192,7 @@ static const struct SCSIBusInfo vscsi_scsi_info = { .tcq = true, .max_channel = 7, /* logical unit addressing format */ .max_target = 63, - .max_lun = 31, + .max_lun = 7, .transfer_data = vscsi_transfer_data, .complete = vscsi_command_complete, -- 2.4.3