|
|
9bac43 |
From 9eadef5817e22891efc509ff1af6f0d14545b2b0 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: David Gibson <dgibson@redhat.com>
|
|
|
9bac43 |
Date: Wed, 9 Sep 2015 02:03:04 +0200
|
|
|
9bac43 |
Subject: spapr: Reduce advertised max LUNs for spapr_vscsi
|
|
|
9bac43 |
|
|
|
9bac43 |
Patchwork-id: 67711
|
|
|
9bac43 |
O-Subject: [RHEL7.2 qemu-kvm-rhev PATCH] spapr: Reduce advertised max LUNs for spapr_vscsi
|
|
|
9bac43 |
Bugzilla: 1260464
|
|
|
9bac43 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
The implementation of the PAPR paravirtual SCSI adapter currently
|
|
|
9bac43 |
allows up to 32 LUNs (max_lun == 31). However the adapter isn't really
|
|
|
9bac43 |
designed to support lots of devices - the PowerVM implementation only
|
|
|
9bac43 |
ever puts one disk per vSCSI controller.
|
|
|
9bac43 |
|
|
|
9bac43 |
More specifically, the Linux guest side vscsi driver (the only one we
|
|
|
9bac43 |
really care about) is hardcoded to allow a maximum of 8 LUNs.
|
|
|
9bac43 |
|
|
|
9bac43 |
So, reduce the number of LUNs on the qemu side to 8, so we don't
|
|
|
9bac43 |
falsely advertise that more LUNs can work.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: David Gibson <dgibson@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit 6c166e382c232ba4e527b4fc5ca9fdea151498d9)
|
|
|
9bac43 |
---
|
|
|
9bac43 |
hw/scsi/spapr_vscsi.c | 2 +-
|
|
|
9bac43 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
|
|
|
9bac43 |
index 55ee48c..92a3de3 100644
|
|
|
9bac43 |
--- a/hw/scsi/spapr_vscsi.c
|
|
|
9bac43 |
+++ b/hw/scsi/spapr_vscsi.c
|
|
|
9bac43 |
@@ -1178,7 +1178,7 @@ static const struct SCSIBusInfo vscsi_scsi_info = {
|
|
|
9bac43 |
.tcq = true,
|
|
|
9bac43 |
.max_channel = 7, /* logical unit addressing format */
|
|
|
9bac43 |
.max_target = 63,
|
|
|
9bac43 |
- .max_lun = 31,
|
|
|
9bac43 |
+ .max_lun = 7,
|
|
|
9bac43 |
|
|
|
9bac43 |
.transfer_data = vscsi_transfer_data,
|
|
|
9bac43 |
.complete = vscsi_command_complete,
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|